Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
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!
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