GithubHelp home page GithubHelp logo

arch-ci / f2812_pmsm_svpwm_pi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from natsu1211/f2812_pmsm_svpwm_pi

0.0 0.0 0.0 8.07 MB

SVPWM PI control program for PMSM on TMS320F2812 DSP

Shell 2.15% C++ 35.31% C 61.30% Assembly 1.23%

f2812_pmsm_svpwm_pi's Introduction

F2812_PMSM_SVPWM_PI

This is a C language implementation of Space Vector Pulse Width Modulation(SVPWM) with speed, position and current PI controller for Permanent Magnet Synchronous Motor(PMSM). By this program, we can control the speed and position of PMSM accurately, which is suitable for industrial control.

This program should excuted on Texas Instrument's DSP TMS320F2812 since some codes are hardware dependant. However, if you pay attention to the hardware dependant codes (especially the codes relevent to Event Manager), you can still port this program to other platform.

main.c
Program entry. Almost all logic is implemented in this file, including SVPWM and PI.

display.c
LED driver program based on BC7281 driver chip. Using to display the speed of motor.

table.c
Since TMS320F2812 is a 32-bit Fixed-point DSP, which means it's powerless when facing Float-point calculation.
To accelerate the Float-point calculation, we store the results of trigonometric functions at certain interval in this table. Then we can query this table to approximate Float-point calculation. (Notice: these 3 files contain some Chinese character comments, which may not display properly in your editor or IDE.)

Position.mp4
Shows the position contorl of motor.

Other files
automatic generated by Texas Instrument's Code Composer Studio(CCS) IDE, provide initialization for different hardware module or memory configuration.

f2812_pmsm_svpwm_pi's People

Contributors

natsu1211 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.