Feeds

Vanilla (0.9.3) is a product of Lussumo. More Information: Documentation, Community Support.
Bottom of Page
Makers and Making: Ground Robot (GBOT) Object Tracker with PID Control
  1.  
1 to 4 of 4
Mar 5th 2010
Hello,

This is the GBOT with a PID controller using the ZX-40A microcontroller from http://www.zbasic.net. ZX-40A is based on the ATMEGA644 AVR chip. Inputs include 2 IR range sensors (GP2D12). Outputs include 2 PWM signals to the Pololu motor driver (VNH2SP30).

The GBOT maintains a setpoint distance of 10-inches from a target and maintains that distance, no matter what. The control system was originally coded with P-control only and resulted in excessive overshoot and oscillations. So then I added PID control. See video to observe P-control vs. PID control.

http://www.youtube.com/watch?v=uTh2DBWAbPs

Had trouble with IR sensor noise. Issue mitigated with hardware and software. Hardware... added low ESR 1,000uF capacitors on VIN and VOUT of the LM2940T voltage regulator. Software includes an 8th order butterworth filter to clean IR sensor position and velocity. I did have issues with a fire, probably caused by a short or the motor driver. Not sure yet. Since isolating the regulator with the filters and after adding a large heatsink to the voltage regulator, no more fires. See picture below of "incident".

http://www.zbasic.net/forum/download-329.html

Anyone have experience or information on GP2D12 IR sensor distance variabiability? I have the noise reduced to 0.025" amplitude. Can this be reduced further? Thanks.
Mar 6th 2010
That's one heck of a great demonstration video.

Fast and acurate. Can you ask for anything more?
Mar 8th 2010
Yeah! It's like all of the important bits from controls class wrapped up into a succinct demonstration. Well done!
Mar 9th 2010
Wow, really neat! You made the Make blog with this:

http://blog.makezine.com/archive/2010/03/_spotted_in_the_make.html

Well done!
  1.  
1 to 4 of 4
Top of PageBack to Discussions