Control power of the board programatically - RoboDurden/Hoverboard-Firmware-Hack-Gen2.x GitHub Wiki
If you want to use your board in a automated project, you might want to control the power of the board programatically via the ESP32 when not in use, or you may want to control power to multiple board at the same time, this is the place for you
this is the simplified schematic of the power section of the board
2 boards with one switch:
the button connector have 2 pins, one is connected to the 42V through a high value resistor, other one goes into the power control circuit
you can identify them by using a multimeter, connect one probe to gnd, other to one of the button connector pin, one will have 42v on it other have close to 0v
if you want to control the power by other means, first you need to disable the self hold and button of the board
mm32: w latch 65535
gd32: uncomment //#define DISABLE_BUTTON
(https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x-GD32/blob/dbde6381dd2461cd99f70d692b243a3c9df0b6a0/HoverBoardGigaDevice/Inc/config.h#L64)
then you can connect a GPIO of your microcontroller of choice (3V3 and 5V is OK) to the button connector pin with low voltage (connect to the pin with high voltage can damage your microcontroller!) your microcontroller must have common ground to the hoverboard, but the 3v3 and 5v must not be connected together when you set the gpio to high the board will power on, when you set to low the board powers off
you can connect the low voltage side of multiple boards together, in series with a switch to one of the boards high voltage pin, that way multiple board can be controlled at the same time