Skip to content
SusanneThroner edited this page Mar 6, 2020 · 6 revisions

Most important/used stuff

Mainboard STM32 Pinout picture: https://raw.githubusercontent.com/NiklasFauth/hoverboard-firmware-hack/master/pinout.png

Build software

make

Flashing

st-flash --reset write build/hover.bin 0x8000000

Unlock (first time of flashing only)

openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c "reset halt" -c "stm32f1x unlock 0"

If something went wrong check Niklas' page: https://github.com/NiklasFauth/hoverboard-firmware-hack

SETTINGS for optional 2- and or 4-wheel bobbycar

Settings for modified bobbycar having one (or two) hoverboards as wheels and controlled by a single xbox trigger acting as gas lever.

Settings within Inc/config.h file:

Input:

  • ADC input variant is chosen via #define VARIANT_ADC

Battery calibration settings:

  • Why PWM deadtime from 48 to 32
  • BAT_CALIB_REAL_VOLTAGE = 4050
  • BAT_CALIB_ADC = 1533
  • BAT_CELLS = 10

Debug:

  • #define DEBUG_SERIAL_ASCII enabled if not transpotter variant is chosen.
  • DEBUG_SERIAL_USART3 for ADC Input ``