You are here

Ebike specific code ?

5 posts / 0 new
Last post
flix
Offline
Last seen: 7 months 2 weeks ago
Joined: 2019-08-14 21:38
Posts: 2
Ebike specific code ?

Hello, 

I'm interested into the compatibility of the vesc 6.0 firmware with standart ebike systems (display, pas, torque sensor). Before trying to reinvent everything myself, I'm investigation what already has been done in the field. Is there a list / compilation somewhere of vesc code optimization for ebike ? For an instance, maybe someone already worked on implementing 5s or bafang display protocols ?

Thank you for your time,

felix

Dennis Freiburg
Offline
Last seen: 1 year 7 months ago
Joined: 2018-12-28 17:42
Posts: 8

I havent seen yet. But i know that the Bafang code is already implemneted in an arduino project. So it should be possible.

vadicus
Offline
Last seen: 1 week 1 day ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

There is nothing too specific about ebikes that's not already in the code. The only thing is the PAS but it's a fairly easy thing to implement and I think Benjamin may be pushing it soon. That doesn't prevent you from writing a simple app if that functionality is critical. 

On my 20kw controller, PAS makes little sense but I use ADC1 as the throttle and ADC2 as the variable brake. Two throttles is all that is needed for an ebike. There is a also cruise control functionality and reverse if you need that. 

 

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

Dennis Freiburg
Offline
Last seen: 1 year 7 months ago
Joined: 2018-12-28 17:42
Posts: 8

Yeah thats right. PAS can be easy done by custom application.

vadicus
Offline
Last seen: 1 week 1 day ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

The logic should be pretty easy, at least for a basic hall based, PAS. you would need to read transitions from the sensor and track the frequency then map it to the throttle. There would need to be settings for speed and current limits. With torque sensor the things get just a bit more complicated.

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)