/PID_Loop_Demo

Arduino project to demonstrate how to tune a PID controller

Primary LanguageC++

PID_Loop_Demo

Arduino project to demonstrate how to tune a PID controller

Wiring Diagram

Wiring Diagram

Major Tools Needed

  • 3D printer (small parts)
  • Laser cutter (at least 12 in. by 6 in.)

Hardware list

Known Issues

  • Running the servo power on the same circuit as the inputs causes significant voltage drops when the servo starts moving. The input potentiometers see this voltage change as a change in the input and creates noise in the system. This is because the inputs are analog and sensitive to voltage changes. This could be corrected by isolating the control circuit from the servo power draw or by using a digital method for the input, such as pwm.
  • Crossing from -180 deg to 180 deg creates a hiccup in the system. This is likely due to the smoothing algorithm trying to smooth the large change in angle rather than an instantaneous change as it should be.
  • High Kd values cuases jitter in the system, this is likely related to the power draw issue listed ealier.