Electronic – Choosing a PID controller

control systemdc motorpid controller

I need to find a PID controller for a 12V 1hp DC motor.

I am currently building a tachometer for velocity feedback.

My question is if anyone can suggest PID control hardware and software that is good for this type of motor?

I was thinking about using this driver from Pololu with an Arduino microcontroller but I am not sure if this is a robust enough solution. Also I dont believe that this can handle the current from the motor. Still doing calculations on that.

I will need to program a routine for the motor to run through. It will speed up, slow down, and change direction over time. Actually I will be using two motors but I figured it would be hard to find a dual motor PID controller. Any suggestion would be greatly appreciated.

Best Answer

It sounds like you have some things there that makes it hard to find a ready device that can do the work (but I'm not sure).

It sounds like you have to either write a PID yourself, or use a PID in some library (like the Arduino).

I am unsure about the stability of the Arduino solutions, will this solution still be stable after a year? Or do you need to reboot it every day? But maybe it is good enough? (Test it for a month a see what it can do)

If you decide to write a PID yourself, the paper called PID-without-a-PhD is a good start:

And you also have application notes on this topic from more or less every MCU maker out there.