Active suspension

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ichiha68
 
Posts: 1
Joined: Thu May 12, 2022 5:37 am

Active suspension

Post by ichiha68 »

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?

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: Active suspension

Post by adafruit_support_bill »

A PID has only one input and one output. You probably want one control loop per servo.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”