Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

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!

1 Reply
Honored Contributor II

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