Active suspension
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ichiha68
- Posts: 1
- Joined: Thu May 12, 2022 5:37 am
Active suspension
Right now im working on an active suspension system, and I have a gyroscope and four servo that I made into linear motion acutators. For my code, I divided all possible inclinations into 8 cases, including pure pitching, pure rolling and a mix of both. In my code I used if-loops for each of the cases to control servo motion if the car is pitching / rolling in a certain way. However, the response time is slow (probs due to if loop), and Im looking to implement a PID loop somewhere, but Im not sure if I can as I have 2 inputs and 4 outputs which I need to class into each of the 8 cases before doing the output. Can someone help?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Active suspension
A PID has only one input and one output. You probably want one control loop per servo.
Please be positive and constructive with your questions and comments.