Skip to content
/ esc32 Public
forked from bn999/esc32

esc32 code ported to work on bluepill Stm32F103 board. Hardware included. Created single layer BLDC PCB.

Notifications You must be signed in to change notification settings

AGenchev/esc32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

code taken from esc32, reworked to compile with GCC/freeware toolchain

I modified this and reformed the project... The goal - to compile with FOSS tools completely and to contain all source. I put in a PCB hardware design to test it. I probably have introduced new bugs.

First "problem": When I compiled with GCC, I got less CPU free time than the binary from esc32. Thus the control loop was closer to take 100% of the CPU time. I considered this dangerous, because the control loop is timer-driven, e.t. in IRQ. Resolution path taken: to rewrite the control loop in integer. Most of it's done, RPM calculation is still in floating point though.

The ESC code is in "onboard" directory.
The "ground" directory contains the utility which tunes the rpm PID and the current limiter PID. It does not work yet with my hardware as I have not modified it. Actually I use the ESC with current limiter turned off.

About

esc32 code ported to work on bluepill Stm32F103 board. Hardware included. Created single layer BLDC PCB.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.9%
  • C++ 1.3%
  • Other 0.8%