GithubHelp home page GithubHelp logo

haotianh9 / dengfoc_on_stm32 Goto Github PK

View Code? Open in Web Editor NEW
63.0 3.0 13.0 43.22 MB

My implementation of Field-Oriented Control(FOC) on STM32 following DengFOC's tutorial

License: MIT License

C 97.08% Assembly 0.19% Makefile 2.67% C++ 0.05% Python 0.01%
foc motor-control motor-controller stm32 stm32f103

dengfoc_on_stm32's Introduction

DengFOC_on_STM32

My implementation of Field-Oriented Control(FOC) on STM32 following DengFOC's tutorial

DengFOC's tutorial: DengFOC

Hardware used:

MCU Development Board:

I first used STM32G4 Nucleo-64 board from motor control kit (used on open loop speed control case). When working on closed loop position control, I found SPI communication is not working on that board. Although spent lots of time on it, I found it hard to debug.

Thus, I switched to bluepill (STM32F103C8T6) from then. If anybody can figure out the SPI communication problem, please Email me or submit a pull request. Thank you!

Driver Board:

motor control kit

Motor with encoder:

iPower Motor GM3506 Brushless Gimbal Motor w/ AS5048A Encoder link

dengfoc_on_stm32's People

Contributors

haotianh9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dengfoc_on_stm32's Issues

It is posible to contro by step/dir???

Hi sir iam interesting with your project.
It is posible to drive motor by step/dir???
And it posible to make big driver for ac servo 220v, amd with 2000ppr encorder sir??
I will wait for your reply.
Thank uou so much.

PWM period != foc period

Hi, the period for the PWM is 2400, but in the foc calculation for duty, 1600 is used. Is this a mistake? thx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.