hinxx / EBiCS_motor_FOC

Motor control firmware implementing FOC for STM32F103

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This firmware implements FOC motor control on a STM32F103 microcontroller. The code was written from scratch and is relatively simple to understand for developers.

The purpose of this repository FOC motor control code is to be included as a library / git submodule on your project!!

How to use

See the example folder. In that example, a throttle is used to define the motor target current. Here a video showing this example driving a Xiaomi EScooter M365 motor:

Here a video showing this example driving a TSDZ2 Ebike mid drive motor:

About

Motor control firmware implementing FOC for STM32F103


Languages

Language:C 99.7%Language:Assembly 0.2%Language:Makefile 0.1%