You are here

FW=ADC1, REV=ADC2

5 posts / 0 new
Last post
ProgramThyself
Offline
Last seen: 2 months 2 weeks ago
Joined: 2020-07-24 01:10
Posts: 16
FW=ADC1, REV=ADC2

I'd like to setup my VESC 6 with two ADC throttles so #1 goes forward (current control) and #2 goes backwards and can also act as a brake.  Can the standard software do this?  Otherwise, I'd like to program it myself.  Any advice is appreciated.

district9prawn
Offline
Last seen: 1 year 4 months ago
Joined: 2018-04-26 12:18
Posts: 123

The stock firmware allows adc2 to be used as a brake. For reverse, a button needs to be setup and adc2 acts as reverse if the button is held down.

On my bike I modified this control mode to allow adc2 to act as reverse without the button. So if you are moving forward and hold adc2, the motor regens until zero speed and immediately reverses, without any delay or transition.

ProgramThyself
Offline
Last seen: 2 months 2 weeks ago
Joined: 2020-07-24 01:10
Posts: 16

That's exactly what I'm looking for.  Do you have any code to share?  It's a personal project for a motorized front wheel for a wheelchair.  The stock controller uses two throttles, but doesn't have the sweetness of FOC.


Writes: Firefly blog

district9prawn
Offline
Last seen: 1 year 4 months ago
Joined: 2018-04-26 12:18
Posts: 123

Try compile with this app.adc source file. It should remove the need for a button from the adc2 rev button brake control mode. https://1drv.ms/u/s!An3SFyJipS1KhJcbzk9bXphJM-G-lQ?e=ibx47a

Interesting project. I've never that sort of contraption before. Also love the field weakening wheelchair motor!

ProgramThyself
Offline
Last seen: 2 months 2 weeks ago
Joined: 2020-07-24 01:10
Posts: 16

Your code works like a charm on my test stand and I hope to try it outside later this week.  Thanks a lot!


Writes: Firefly blog