gkasev
Joined 4 years ago
Joined 4 years ago
There is also another detail, that you need to know, in order to understand how it all works.
Trial bikes (not trail bikes) usually have a special kind of drivetrain, where the freewheel is mounted on the crank and not the rear wheel. This allows for a very small rear wheel sprocket and extremely high gear ratios.
So to make this work, I used a trial bike crank [1] on which I'm mounting a special purpose freewheel [2]. The chainrings are mounted to the freewheel using this adapter [3].
[1] https://sickbikeparts.com/cranks-freewheel-isis-crank-set/
[2] https://sickbikeparts.com/front-freewheel-heavy-duty/
[3] https://sickbikeparts.com/freewheel-spider-4-arm-104-mm/
After building this, I'm dreaming of building something very elegant - a 50W to 100W torque generator that is tiny in size and very lightweight, and it fits within the hub of the wheel. Maybe not using batteries at all, but supercapacitors the are charged when you brake and discharged when you accelerate.
On the controls side of thing, I have the ECU and an Arduino Nano. The Arduino uses the BEC port of the ECU as a voltage supply to run a simple routine translating the analog output (potentiometer) from the throttle handle to a PWM signal that the ECU can understand.
The way that the assistance work is that while you are pedaling, you can turn the throttle and adjust until you get the assistance you want - pretty simple. After a while it becomes natural.
Given the KV rating of the motor and your max voltage you can calculate the max rotational speed of the motor = KV*V. From there it is just a matter of multiplying by all gear ratios along the drive train to calculate the rotational speed of the rear wheel. Knowing the circumference of the 26" wheel gives you the max speed.