I like the features that the DIYEBoard ESC has where one can auto turn on the board via pushing and after a while of inactivity, the board turns off. How can one program that into a Focbox/VESC?
An Arduino that controls a FET anti spark switch with an accelerometer?
It would need a separate buck converter though.
You could probably do without the arduino and just use a FET antispark with accelerometer and a couple other discrete pieces if you didn’t need to be able to reprogram the delays, or maybe just an ATtiny85 / ADXL354
Powering the circuit would probably be a challenge too though like @SOICDIP noted. 10S and 12S are beyond the max input voltage for most 5 volt regulators
If you use an anti spark switch and add a soft latch using an micro controller it doesn’t even need to be implemented
On the soft latch you hold the button until the micro controller turns on and the first task on the routine is to activate the FET of the switch
If you push the board, the back EMF of the motors would power the VESC on which in turns turn the micro controller and latch’s the board at ON state
Actually would be harder to do the opposite of that since the button itself would need to be wired to the micro controller, it would only power on if it detects the button pressed
What kind of interest is there around here for this stuff
- I don’t want auto turn-ON
- I might want auto turn-ON
- I definitely want auto turn-ON
- I don’t want auto turn-OFF
- I might want auto turn-OFF
- I definitely want auto turn-OFF
The DieBieMS BMS will turn off automatically after 30min or so if you don’t exceed a current threshold in that period (eg; 0.5a). I should probably keep that in mind if I ever plan on rolling down a long hill .
It might be worth having a look through the power management schematic about how it uses a momentary switch and keeps itself turned on. Admittedly it all makes little sense to me…
It could be as simple as the VESC powers on the micro controller which as you said powers it on and turns a mosfet on and that mosfet would be on only if the arduino or other micro controller would be on so the pushbutton would disconnect the power to the controller which would turn of and turn the mosfet off which would turn the vesc off. But I might be missing something it is 3am here
I think that’s right, the two possibilities would be
turns on with the board rolling Micro controller turns on and latch the mosfet
don’t turn on
Micro controller turns on, checks of the power button is pressed and then turn on the mosfet, in this case the switch must be 2 poles, one for the initial current flow and another hooked up to an input
This can only work if the BMS is in control.