Skip to content

jpodavalos/Motor-PID-Controller-using-Arduino-Matlab

Repository files navigation

Motor-PID-Controller-using-Arduino-Matlab

A simple motor PID setup using Arduino and Matlab

alt text

Hardware Requirements:

Software Requirements:

  • Matlab R2016a +
  • Arduino IDE

How to use:

  • Edit COMPORT of Matlab code (PIDController.m) and run the GUI
handles.s = serial('COM5');
  • Input P, I, D, and target speed (in RPM) values

  • Click Send

  • Update P, I, D to get the best response.

NOTES:

  • After clicking Send, the motor should start moving and System Response details should start to populate and update.

  • To test if PID works, try stopping the Motor (be careful - use piece of cloth), it should fight back.

  • Motor response depends on P, I, and D values.

To understand the PID algorith included in the Arduino code, I recommend watching this video: https://www.youtube.com/watch?v=sDd4VOpOnnA

About

A simple motor PID setup using Arduino and Matlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published