I am looking for a partner to produce an add-on torque sensor for the BBS01

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
I like ES but their interests are mainly on how far they can push. I'd lose all my hair worrying about replacing kits under warranty.
 

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
  • In the event that you do find someone to work with you on the TS, what about the software development angle?
  • (I'm assuming the signal from the TS needs to work with the OEM formware? Given how long and the number of iterations in the development of OSF for the TSDZ2, that's a long path to tread. Maybe one of the TSDZ2 OSF fdevelopers from ES might be interested?).
I ordered the parts (arduino, strain gauges + HX711, bottom bracket axle). I will have to source the slip ring later but for bench testing, I don't need the slip ring. The parts will be here in about 10 days-2 weeks. Will post the result and pics here when it's done. In the mean time, I will design the PCB to keep the all the electronics together.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,390
3,234
If it turns out that only somewhat woolly power application is possible utilising the throttle control, not precise enough, you could try the Guerney SCEPTA™ - System Cadence Enveloped Power Torque Assistance, as I desrcibed in the post linked below:

https://www.pedelecs.co.uk/forum/threads/has-anyone-heard-of-or-tried-toseven-mid-drive.44959/page-26#post-679582

In my mind, this would provide distraction-free bike operation traversing hilly terrain, enabling the cyclist to better focus upon enemies.

Worry that only woolly power application would be possible, was another reason why I linked to Guerney SCEPTA™ previously in post #20. Also why I suggested writing the code first, to try driving the throttle control in post #17 using modelled or recorded torque sensor data.

_________________

EDIT: For convenience I've copied that post linked above and pasted below:

Making an effort cycling is something I can't do anymore, therefore I like the Bafang BBS01B's cadence sensored operation, which enables me to pedelec for many miles despite being old and unfit - doing so makes me feel like the Superman I (never) was in the 80s. The other advantage is, I don't turn up to work sweaty in need of a shower. However, your mention of your sliding speed control is interesting - sorry, I can't find that post of yours to link, where you also mention you'd like to use a slider strip to control current next time. I assume you were using a KT system. A simpler automated system to increase current at the detection of increased rider effort might be useful and highly desirable for some. A couple of years ago and the year before that, I suggested that a TS system could be added to the Bafang BBSXX(X) series, suggested using a somewhat clunky method:



... Because I'm rather lazy and don't have time to do unpaid programming, I posted that in the hope that someone other than me would take an interest and make available something I could simply buy, and because a torque sensored BBS01B kit isn't something I actually want or have any need for. I also wrote something similar with the same intention the year before under a different username, and I requested the deletion of that username and account by admin, because at the time I found this forum too interesting.

Meandering back to the system I wouldn't mind trying using at least once: Cadence sensored with current set at the cotroller via the PAS buttons 1 to 9 (6% [the minimum required to overcome motor resistance, plus a bit] to 100% of say 15A in 9 increments, with 100% keep current for every level), then automatic increase of motor current (except at level 9) using the throttle wires on the BBS01B, upon detection of more torque being exerted by the rider - the more micro than usual microcomputer would detect increased rider effort using a torque sensor of some sort. Current would increase slowly after n seconds (a user changeable variable) of continuous detection of increased effort, using the control input intended for the throttle, and would reduce power over a couple of seconds after detected rider effort is reduced (the power envelope would be user changeable). Ebrakes could be used to stop power at any stage. Fast responsive accurate control using good and expensive torque sensors wouldn't be necessary for what I have described. The Bafang controller's firmware would need certain settings, but no wholesale rewrite of the configurator would be necessary. While riding, one would simply experience more assistance being applied automatically when going uphill or traversing uneven terrain. Too much/too little assistance? Use the +/- PAS buttons (if throttle power is limited to PAS current levels). And the rider wouldn't experience a sudden unexpected huge dangerous increase in motor power triggered by potholes or rocks. Because it's firmware is open source, I also see this possible for the TSDZ2. Again, I'm hoping someone other than me will make something I can simply buy, because I'm lazy and am gleefully happy with my BBS01B's operation, after firmware setting fiddleage.
 
Last edited:
  • Like
Reactions: Woosh

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
I rerad with interest your post in the other thread. Will keep that in mind.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,390
3,234
I ordered the parts (arduino, strain gauges + HX711, bottom bracket axle). I will have to source the slip ring later but for bench testing, I don't need the slip ring. The parts will be here in about 10 days-2 weeks. Will post the result and pics here when it's done. In the mean time, I will design the PCB to keep the all the electronics together.
This looks like a very serious effort, I can't wait to read about what you come up with!
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,390
3,234
I rerad with interest your post in the other thread. Will keep that in mind.
Attack, decay, sustain, release waterproof numbered rotary dials as controls, to set the torque power envelope for the Guerney SCEPTA™, waterproof buttons and LEDs on a plastic fascia for other parameter settings, might be more convenient to make adjustments on the move than stopping to muck about with a laptop/PC/Pi and a USB lead. Perhaps a choice of curves on the control panel, rather than just linear progression for attack and decay would be OTT and unnecessary.
 
Last edited:

StuartsProjects

Esteemed Pedelecer
May 9, 2021
1,786
1,009
If that works well, I'll make another prototype using ESP32 and micropython.
At last an Arduino topic !

Why an ESP32 in particular, its a bit power hungry I would have thought.

Its 3.3V logic, which is good, but there are smaller, more power friendly Arduino compatible boards out there.
 

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
Why an ESP32 in particular, its a bit power hungry I would have thought.
It's only because of availability.
might try the Ellegoo first. If I could sort out the sensors' inferface, anyone can write their own code using arduino tutorials or micropython and get rid of the proprietary LCD.
 

StuartsProjects

Esteemed Pedelecer
May 9, 2021
1,786
1,009
It's only because of availability.
might try the Ellegoo first. If I could sort out the sensors' inferface, anyone can write their own code using arduino tutorials or micropython and get rid of the proprietary LCD.
Well, one Arduino compatible worth looking at are the Seeeduino XIAO boards, especially the SAMD21 variant, small and power efficient.

I was just yesterday looking at changing the receiver for my LoRa based 'Cycle Alarm Extender' project across for a surface mount board using ATmega328P to a much easier to build version using the SEEED XIAO.
 
  • Like
Reactions: guerney and Woosh

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
Last edited:

guerney

Esteemed Pedelecer
Sep 7, 2021
11,390
3,234
where did you post this project? I'll have a look.
 
  • Like
Reactions: Woosh

StuartsProjects

Esteemed Pedelecer
May 9, 2021
1,786
1,009
where did you post this project? I'll have a look.
This one looks interesting:
https://thepihut.com/products/seeeduino-xiao-pre-soldered
Thats OK for breadboard stuff, but the XIAO boards are fairly easy to assemble as surface mount, the pads are quite big, and this makes for a real small easy build board.

The link was posted by @guerney

The original transmitter\receiver board was this;

51495

51496

Which I dont have any problem building by hand.

But to make it easier for others to DIY, I changed to the XIAO SAMD21 for a very much easier build;


51501


51502


51504
 
Last edited:
  • Like
Reactions: guerney and Woosh

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
Did you design the box too?
 

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
thank you for the suggestions. Finding suitable parts is so time consuming. I need to find a box with the 3 buttons, on/off, + and -. That's why I was thinking of using a touch screen like the Ellegoo or ESP32 + TFT for about £15-£20.
 

StuartsProjects

Esteemed Pedelecer
May 9, 2021
1,786
1,009
thank you for the suggestions. Finding suitable parts is so time consuming. I need to find a box with the 3 buttons, on/off, + and -. That's why I was thinking of using a touch screen like the Ellegoo or ESP32 + TFT for about £15-£20.
The TFT with touch uses 8 IO pins so you would need a micro with a fair number of IO pins ..........................

Arduino themselves do a number of boards with enough IO pins, but they tend not to be low cost.

The Pi Pico RP2040 might be worth a look, low cost, plenty of pins, Arduino and Micropython, even a small XIAO sized version.
 
  • Like
Reactions: Woosh

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
the Pi Pico RP2040 does not have a DAC to simulate the throttle. I know I can use a PWM pin, two resistors and a smoothing capacitor but for ease of connections, can anyone suggest a small board that has a DAC?
 

saneagle

Esteemed Pedelecer
Oct 10, 2010
6,814
3,152
Telford
If it turns out that only somewhat woolly power application is possible utilising the throttle control, not precise enough, you could try the Guerney SCEPTA™ - System Cadence Enveloped Power Torque Assistance, as I desrcibed in the post linked below:

https://www.pedelecs.co.uk/forum/threads/has-anyone-heard-of-or-tried-toseven-mid-drive.44959/page-26#post-679582

In my mind, this would provide distraction-free bike operation traversing hilly terrain, enabling the cyclist to better focus upon enemies.

Worry that only woolly power application would be possible, was another reason why I linked to Guerney SCEPTA™ previously in post #20. Also why I suggested writing the code first, to try driving the throttle control in post #17 using modelled or recorded torque sensor data.

_________________

EDIT: For convenience I've copied that post linked above and pasted below:

Making an effort cycling is something I can't do anymore, therefore I like the Bafang BBS01B's cadence sensored operation, which enables me to pedelec for many miles despite being old and unfit - doing so makes me feel like the Superman I (never) was in the 80s. The other advantage is, I don't turn up to work sweaty in need of a shower. However, your mention of your sliding speed control is interesting - sorry, I can't find that post of yours to link, where you also mention you'd like to use a slider strip to control current next time. I assume you were using a KT system. A simpler automated system to increase current at the detection of increased rider effort might be useful and highly desirable for some. A couple of years ago and the year before that, I suggested that a TS system could be added to the Bafang BBSXX(X) series, suggested using a somewhat clunky method:



... Because I'm rather lazy and don't have time to do unpaid programming, I posted that in the hope that someone other than me would take an interest and make available something I could simply buy, and because a torque sensored BBS01B kit isn't something I actually want or have any need for. I also wrote something similar with the same intention the year before under a different username, and I requested the deletion of that username and account by admin, because at the time I found this forum too interesting.

Meandering back to the system I wouldn't mind trying using at least once: Cadence sensored with current set at the cotroller via the PAS buttons 1 to 9 (6% [the minimum required to overcome motor resistance, plus a bit] to 100% of say 15A in 9 increments, with 100% keep current for every level), then automatic increase of motor current (except at level 9) using the throttle wires on the BBS01B, upon detection of more torque being exerted by the rider - the more micro than usual microcomputer would detect increased rider effort using a torque sensor of some sort. Current would increase slowly after n seconds (a user changeable variable) of continuous detection of increased effort, using the control input intended for the throttle, and would reduce power over a couple of seconds after detected rider effort is reduced (the power envelope would be user changeable). Ebrakes could be used to stop power at any stage. Fast responsive accurate control using good and expensive torque sensors wouldn't be necessary for what I have described. The Bafang controller's firmware would need certain settings, but no wholesale rewrite of the configurator would be necessary. While riding, one would simply experience more assistance being applied automatically when going uphill or traversing uneven terrain. Too much/too little assistance? Use the +/- PAS buttons (if throttle power is limited to PAS current levels). And the rider wouldn't experience a sudden unexpected huge dangerous increase in motor power triggered by potholes or rocks. Because it's firmware is open source, I also see this possible for the TSDZ2. Again, I'm hoping someone other than me will make something I can simply buy, because I'm lazy and am gleefully happy with my BBS01B's operation, after firmware setting fiddleage.
I tried that, but it didn't work so I invented my own system. It works by reading your thoughts about how much power you want at each time interval of one micro second, then it converts it to an ideal value after comparing how much you want with all other factors, like efficiency, safety, legal and some other secret ones, then transfers the data direct to the controller and feeds back to the brain how much you're getting so that you can modify your thinking. I'll be patenting it under the name of Bi-directional Read And Idealise Neural Feedback Algorithm with Rapid Transfer.
 
  • :D
Reactions: Woosh and guerney

Woosh

Trade Member
May 19, 2012
20,366
16,870
Southend on Sea
wooshbikes.co.uk
I like the idea of Morse code though.
Something like one button, one tap (letter E, half a second) for up, one dash (letter T, one second) for down. Long dash (2 seconds or more) to change torque sensor on/off. Or shout at the arduino's microphone (up, down.., off off).
It's easy to wire and easy to program.