You are here

VESC MAXIM+120 Reverse Button

3 posts / 0 new
Last post
michael.jahrer
Offline
Last seen: 2 weeks 3 days ago
VESC Free
Joined: 2023-10-01 20:38
Posts: 2
VESC MAXIM+120 Reverse Button

Hi,

I bought a Maxim+120 for my Zero 75-7 motor.
I managed to make it running with the sin/cos encoder.
My plan is to put it in a gokart.

So I need a reverse switch.
I have 1xADC (throttle), 1xADC (brake).  <-- this works

When I select Control Type = "Current Reverse ADC2 Brake Button" everything works except reverse.
I used reverse Pin37 (Reverse Input) according to datasheet.
When I connect this pin to GND nothing happens.
The motor spins in the same direction.
When I measure voltage on Pin37 I read 0V (should this not have a pullup to +3.3V or so ??)

When I change "APP to Use" = "ADC"  (and not "ADC and UART) the motor spins wild in both directions when apply throttle.
This is maybe an indicator that the reverse button is mapped to RX (which is one of the sin/cos pins).

Does anybody know how I can make a "REVERSE BUTTON SWITCH" ???
Or maybe a tip what can I try else ?!

Best,
Michael Jahrer

here are some pics of the setup + settings

Screenshot from 2026-04-22 21-01-08.png

Screenshot from 2026-04-22 21-01-19.png20260422_211255.jpg

20260422_211246.jpg

20260422_211300.jpg

speed3r
Offline
Last seen: 5 days 3 hours ago
VESC Free
Joined: 2018-11-15 15:55
Posts: 14

In VESC_Tool in App Settings -> General -> "Button Inputs" there is a question-mark icon.
If you click on it you receive this text:

"A cruise control and a reverse button can be used with the ADC app. The reverse button is only used on the control modes that have button in their name, but cruise control can be used on all control modes when enabled. The buttons can be connected as follows:

 

Comm TX: Cruise Control

Comm RX: Reverse

 

If the UART app is active the PPM-input is used for the button instead. That means you only have one button, which will be the reverse button for the button-modes (not cruise control available) or cruise control for non-button control modes.

 

By default the button inputs have a pull-up resistor and are active low.

 

Enable Cruise Control

Enable cruise control button input.

 

Invert CC Button

Invert the polarity of the cruise control button."

If this does not suit your needs I recommend to build a custom app as control input.

 

michael.jahrer
Offline
Last seen: 2 weeks 3 days ago
VESC Free
Joined: 2023-10-01 20:38
Posts: 2

hi, thanks for the answer.
In the meantime Benjamin V gave me the hint I needed per email.
Under https://www.vesclabs.com/product/vl-maxim-plus-120v/ there is a FAQ section with "Maxim & Pronto: Using the reverse function in APP ADC"

With that I wrote a lisp script and uploaded it to the controller:

(gpio-configure 'pin-ppm 'pin-mode-in)
(app-adc-detach 2 1)
(loopwhile t {
(app-adc-override 2 (if (> (gpio-read 'pin-ppm) 0.5) 1.0 0.0))
(sleep 0.01)
})

Now reverse switch works with the PPM Pin35.
I use a pullup to +5V and a switch to GND which does the motor reverse.
yea!

Best,
Michael