pekkaroi / bldc-drive

Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller
GNU General Public License v2.0
182 stars 92 forks source link

STM32 PMSM FOC Software Development Kit - MC library #3

Open nionut opened 8 years ago

nionut commented 8 years ago

Hello What do you think it is possible to add PID position conttol of the mcm_xyz user from cnczone to this SDK. It auto generates code and project for IAR or Keil. From what i looked it is implemented only Speed and Torque in the ST Motor SDK. FOC (Field Oriented Control) of 3-phase Permanent Magnet motors (PMSM, BLDC) brings increase torque ,efficiency, and reduce noise and torque ripple. https://www.youtube.com/watch?v=yFecre8dacY

pekkaroi commented 8 years ago

I'm quite sure it is possible, if it has some way to input speed, you need to add the pid loop and make the pid output control the speed. I read some papers and manuals about that devkit.. Personally I don't like that kind of stuff that much. I do all this for learning and that software hides most the learning. Of course, if you want to create a functional device quickly, I'm sure that is a good way to go.