Is it possible to modify the vesc firmware?

Sandroforms

100 mW
Joined
Jan 8, 2023
Messages
39
I was thinking, would it be possible to modify the original firmware of the VESC 75100 v2 just to read an external speed sensor? Since I use a bike with a central engine, and the speed shown on the VESC is not from the wheel but from the engine...
 
You probably have more than one gear. If so disregard the info below.

in the motor settings you can tell the VESC what your gear ratio and tire diameter are and the speed will be correct.

You will need to know:
  • Number of Motor poles (total number of magnets)
  • Front sprocket teeth
  • Rear sprocket teeth
  • Wheel diameter
So if is a single gear mid drive setup you can get correct speed.
 
I was thinking, would it be possible to modify the original firmware of the VESC 75100 v2 just to read an external speed sensor?
This function is already in the LunaCycle hw_luna_bbshd.c

You can port it to any other hardware of course, like I've done it for the Flipsky 75100 V2 already.

It will work somehow with a lisp script also, but I'm not familiar with lisp scripting. ;)

regards
stancecoke
 
Last edited:
Back
Top