Skip to content

Candas1/Split_Hoverboard_SimpleFOC

Repository files navigation

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

  • Install Vscode
  • Install Platformio from the website or from VSCODE's extensions
  • Download the project or use git to clone this repository in VSCODE
  • Select the GD32F103C8 or GD32F103C6 environment that matches with your chip in platformio's bottom bar
  • Unlock the chip
  • Press the 'PlatformIO:Upload' button (bottom left in vscode) to build and upload the firmwware

About

Split Hoverboards with C++ SimpleFOC (not yet)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published