G300 Vesc button wiring.

Hi, this might look like a simple question, but how does wiring on this Vesc button works? As in which wires are connected then the button is pushed? It has 5v, and and signal wires.

Second question, how does a momentary push button work? I broke the original one, bought a bunch off momentary non latching buttons, but all of them are instantly “live” as in the Vesc turns on if battery is connected, and the actual function of the button seems to be not working.

What am I doing wrong here?

You have to set up the button in software. It’s normally on, and you need a normally closed switch. In app settings → shutdown mode set that to OFF after 30

1 Like

Could you tell what wires are active when Vesc is off?

It should just be switching sw to gnd. Use a multimeter and check what voltage the switch pin is when not connected to anything. If it’s 3.3 volts or 5 volts, it shorts to ground. If it’s at 0 volts, you have to connect it to 3.3 volts

1 Like

Wire the switch and grounds together on all your g300s. Don’t connect the 5v of different vescs.
The 5v is just to power a switch led when the g300 is turned on.


Could maybe someone explain this issue to me?
I can’t Google out this type of error.

Don’t set it to toggle button. You need to set it to off_after_xxx

But isn’t that the “auto shut off” function?

The Vesc used to work regularly with on/off function with the button.

But the auto shut off doesn’t work in general unfortunately.

I have updated fw, also downgrade it with no better luck.

Any chance to fry something if wrong wires are connected?

I’m 95% sure the button only works when auto shutoff is enabled

I thought so as well, but pretty sure I used it like that.

On the other hand, the Vesc does not shut off in any of the settings, and still turns on when battery is connected, also no matter the setting.

Are you using a normally closed switch?

A momentary button, but not the original one.

Yes. Is it normally closed or open?

1 Like

I didn’t realised such a difference exists, how to check and which one is the right one?

Google should give you a good explanation. You need a normally closed button. Do some testing with the stock button, if you have it still.

1 Like

Unfortunately it’s gone, and I need a non latching button?

Yes

1 Like