Candas1 / Split_Hoverboard_SimpleFOC

Split Hoverboards with C++ SimpleFOC (not yet)
MIT License
6 stars 5 forks source link

Split Hoverboards with C++ SimpleFOC :-)

this is just the beginning..

HallSensor class working and three led blinking while rotating the (slave) wheel.

This PlatformIO code is based on Sideboard-Arduino from Candas1 :-)

for choosing your hardware layout look here: Hoverboard-Firmware-Hack-Gen2.x

/include/config.h :

// LAYOUT_2_X is used in defines.h
//#define LAYOUT_2_0    // https://github.com/flo199213/Hoverboard-Firmware-Hack-Gen2
//#define LAYOUT_2_1    // https://github.com/krisstakos/Hoverboard-Firmware-Hack-Gen2.1
//#define LAYOUT_2_2    // 2023/05/11 only MASTER and TEST_SPEED: motor is spinning but needs a push to startup :-/
//#define LAYOUT_2_4    // NOT READY !!! https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/issues/3
#define LAYOUT_2_5  // NOT READY !!! https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/issues/11

Big thanks to ArduinoCore-GD32 for making it possible to build a firmware based on simplefoc :-)

How to use