Git Product home page Git Product logo

foc_openloop's Introduction

FOC Open Loop Control

实现了开环FOC控制, 将STM32的PWM输出封装于setPWM函数之中,

注意事项:

  1. 电机颤抖, 噪声大, 电流大:

检查PWM输出频率, 至少应在10k以上, 推荐20k+

  1. 速度加大之后电机开始颤动:

与力矩Uq有关, KV值大的电机, 想要提高速度, 需保证力矩充足

  1. 实现非线性拖拽的效果:

在开环控制部分使用for循环进行值的设定, 如:

static float i;
for (i = 1.0f; i <= 30.0f; i += 0.5f){
    velocityOpenLoop(i);
    osDelay(5);
}
for (i = 30.0f; i >= 1.0f; i -= 0.5f){
    velocityOpenLoop(i);
    osDelay(5);
}

即可实现非线性拖拽的效果

foc_openloop's People

Contributors

ninoc137 avatar

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.