5LP PID Control

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi guys, I'm just looking for advice on implementing multiple PID controllers on one psoc. This is for a mechanical engineering capstone project, so none of us have a lot of experience with C programming. Luckily we have a friend who's worked with psoc's a lot but I wanted to get more input from this community. The project is basically a mini SpaceX Facon 9 rocket with 9 total propellers to control pitch and yaw using an IMU sensor. We have a Psoc 5LP and we were hoping to use this for the PID controllers and Kalman filters, and we already have code setting up duty cycles and pin connections and whatever, but I just wanted to know if there are any good guides on PID control with Psoc? We got a good Creator workspace from our friend that was used to fly a drone, but I've been having a hard time deciphering the code since I'm pretty new to Psoc and C programming. Sorry for the wall of text, and thanks for any help!

0 Likes
1 Reply
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

jake, it sounds like you in dire need of some of-the shelf library for controlling whole flying platform, not merely a PID code. Search this forum for IMU and MADGWICK filter projects (there are several available, but no gurantee of performance). The Kalman filter is too slow to operate on PSoC.  Check links below

   

http://www.cypress.com/forum/psoc-5-device-programming/imu-data-fusion

   

http://www.cypress.com/forum/psoc-4-architecture/mpu6050-wpsoc4-implementing-filter

   

http://www.cypress.com/forum/psoc-5-device-programming/newb-reading-values-mpu-6050-accelerometer-gy...

   

http://www.cypress.com/forum/psoc-1-device-programming/madgwick-kalman-or-dmp-filter-mpu-6050-and-ps...

   

http://www.cypress.com/forum/psoc-community-components/flying-psoc4

   

http://www.cypress.com/forum/psoc-5-device-programming/madgwick-imu-filter-define-sample-rate-freq-c...

0 Likes