This project is still experimental. The Master-branch supports sensored motors and Bafang-, Kunteng- and Kingmeter-Displays and debugging.

All user relevant settings have to be done in the config.h

throttle, "torque-simulation" and torquesensor-modes are available.

The sensorless_VESC-branch has adapted the sensorless control of the VESC. Recently optimized for a Fischer ETH 1606 bike. If will work with other motors also, of course.

A short tutorial can be found in the wiki.

Helpful links:

vector-control-for-dummies

space-vector-pwm-intro

UM1052 - STM32F PMSM single/dual FOC SDK v4.3

RM0008 Reference Manual STM32F103xx

System Workbench for STM32

Sensorless approach VESC

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.