forked from EFeru/hoverboard-firmware-hack-FOC
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
SusanneThroner edited this page Mar 6, 2020
·
6 revisions
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 modified bobbycar having one (or two) hoverboards as wheels and controlled by a single xbox trigger acting as gas lever.
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 ``