Saturday, April 16, 2022
Throttle
If you got all the step right your hoverboard will turn both motors in the same direction using only one gyro board.At this point you can hold the gyro board to the bike´s handle bar and tilt it to accelerate or run backwards the way i did for short time to see if the bike was strong enough to keep me moving, but its DANGER in this way as the bike can suddenly accelerate when going over curbs or a steep obstacle.
I was looking on how to use a potentiometer in place of the gyro board and found a blog created by Drew dibble
there he explains how the serial comm between the gyro board and the main board works. I modifie Drew dibble
original arduino code to work with a arduino due and voala, it works nice no problems so far.
So, i made a panel that holds a arduino due with front led lights , it takes the signal from a s41 hall sensor 0 to 3.3v and converts this signal to a serial communication that the main hoverboard board expects.
I´ve made my own thumb trottle from the bike´s front shifter using a s41 hall sensor and 2 very small scrap magnets. It´s not a linear throttle but who cares.I can not post the code here , there is no option on this blog to do it. I still have to implement a speedometer lcd etc... the only down side is that i need to turn the controller on and off twice every time i turn the bike on to get the thumb throttle to work but is not a problem as it works like a anti theft device.
Subscribe to:
Post Comments (Atom)
The code
// this code was adapted from Drew Dibble original code to run on arduino due //you´ll need a library called "soft_uart.h" ,elap...
-
04/16/2022 I´ve being thinking to build a electric bike for a long time but acquiring all the parts to make a full size motorcycle prove...
-
i´ve recently ordered 6 Litokala 18650 x 3000mha from the aliexpress store (litokala official store) but I was disapointed, one of 6 batte...
No comments:
Post a Comment