Kambodia91 / Hoverboard-firmware-hack-FOC-MASTER-SLAVE

GNU General Public License v3.0
15 stars 2 forks source link

Hoverboard firmware hack FOC MASTER/SLAVE (HOVER-1 RIVAL)

HOVER-1

This repository implements Field Oriented Control (FOC) for hoverboards witch two boards Master and Slave. The boards communicate with each other via UART2, The motors are controlled via UART1 on the master board and Arduino. Communication diagram The left bldc motor was cut from the original program.

The software is being tested.! More info: https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/364


YOUTUBE:


Compared to the commutation method, this new FOC control method offers superior performance featuring:


Hardware

The originals are MM32 processors. We need to replace them with STM32. The program is used to support the STM32F103CBT6 processor. More information can be found in the docs.

Board pinouts: Slave / Master mainboard_pinout


My Project

I am trying to create a 4-wheeled vehicle. Initial sketch idea: vehicle (rigid without turning the wheels) using 2 howerboards for the wheels, communication will be made using uart and esp32. Currently, I was thinking about the actual position in space of the vehicle and came to the conclusion that the best solution would be to use the DW1000. In the future, there may be a lidar sensor. A lawn mower will be installed on the wheels to mow the lawn automatically. I invite you to the docs tab there are more photos from the construction.


To do:


FOC Firmware

In this firmware 3 control types are available, it can be set in config.h file via CTRL_TYP_SEL parameter:


FOC Webview

To explore the controller without a Matlab/Simulink installation click on the link below:

https://eferu.github.io/bldc-motor-control-FOC/


Example Variants

Of course the firmware can be further customized for other needs or projects.


Status

HOVER-1


Projects and Links


Contributions

Every contribution to this repository is highly appreciated! Feel free to create pull requests to improve this firmware as ultimately you are going to help everyone.