Arduino PID Motor Controller

LINKS TO LEARN : http://forum.arduino.cc/index.php/topic,8652.0.html http://forum.arduino.cc/index.php?topic=13269.0 http://www.billporter.info/2010/08/07/sagar-update-new-motor-controller-and-motors/ http://www.billporter.info/2010/01/01/s-a-g-a-r-s-smart-motor-controller/ 


This is a companion discussion topic for the original entry at https://community.robotshop.com/blog/show/arduino-pid-motor-controller

Uploaded the code for PD motor speed controller using arduino

Let me know if you guys need any help.

Awesome post! I have

Awesome post! 

   I have to implement this on my robot, so I’m now downloading the code to adapt it to Andar

Thank you very much!

welcome

You are most welcome.

Did you use the code? And did it work properly? I am eager to know.

Eagle Schematic

Hi,

I’ve never used EAGLE and find it pretty confusing. Do you have the schematic in PROTEUS?

Download link of the source code

Hi,

May I download the source code? I can’t find the link.

Thanks,

Luc

 

Exactly what I was looking for!

Thanks so much for posting this.  I do have a question as it relates to calculating the RPM:

In your code, is the following calculating the RPM based upon a 30 pulse per rotation encoder?

//Calculating the speed using encoder count

speed_act = ((count - countAnt)(60(1000/LOOPTIME)))/(30);   

This calculates the speed for 30 pulse per rotation encoder

Yes it does