【Wall E】 in action ?!

You might consider using PID

You might consider using PID control for tracking, I found it to be very complimentary to OpenCV input - it’s also nice in that PID allows easy extensibility to control other actuators besides servos… that is if you ever decided to re-use the code with a motor driven pan / tilt kit.

amazing

Got to say, it’s sooooooooooooo cool !

waiting

looking forward to your next project.

to be honest I don’t know

to be honest I don’t know what is a PID controller yet, could you explain a little? Thanks for the suggestion! :slight_smile:

** Here are some**

 

Here are some links.

The short of it is… it’s a clever function which tries to follow chaotic input.  If you think of tracking as trying to follow 2 chaotic inputs (the X & Y axis) - then you use 2 PID methods to follow them - it becomes smooth tracking… 

There are several constants in the formula you can tweak to suite your specific system and desired attributes - 

Here are some examples of people trying different values with MRL 

http://myrobotlab.org/content/fun-arduino-or-how-i-learned-love-mrl

http://myrobotlab.org/content/second-mrl-tutorial-tracking-service-wiring-diagram-0

Good Luck

Brillant! very informative!

Brillant! very informative! I will definitely try that!

thanks a lot GroG! :slight_smile: