I've commited first initial working version for the Nunchuk here:
And the modified version of the core-software for the NodeMCU here:
For sure, they can be improved!! Feel free to comment and suggest! And currently no ObjectOriented, sorry...
Today I've performed some testing in the road, I've found three major issues:
- The remaping of the value reading from Nunchuck to have better resolution is generating a "notable" jump in the acceleartion (arround the 90% to the 100%), which is too hard, and makes you inestable over the spine (I fall down once...).
- The brake is too hard... But it's nice to see more than -30A regenerating in the screen!!
- The speed calculation is not working... I'm getting very high values, over 100km/h. Does anybody can have a look at the calculation? What I'm missing? I read the rpm from the rotor, then applied the gear ratio of 16/76, and then converting rpm to km/h.
@Sune, we can have a skype, if you want!! the only issue is to find the time for it, at least for me .