Motion Tracking on the Cheap with a PIC

motion tracking

Ever need a cheap motion tracker for very basic object following? Did you know you can throw one together with a few IR distance sensors and a PIC?

The setup is fairly simple. [Aron Horan] is using a┬ádsPIC30F4011 PIC, a SHARP infrared distance sensor, an RC servo, and a PICkit2 for testing. It works by scanning left and right using the servo motor. When the edge of an object is detected, it will turn away from the object until it can no longer detect the edge — then it turns back. Unfortunately this does mean it will always be twitching, even when it’s tracking an object.

Like many of the other projects [Aron] has documented, he’s included everything you need to know to be able to recreate the project yourself. Flowcharts, wiring diagrams, and the code — written in C of course! The following video includes an excellent demonstration, but if you want to skip straight to the action, you can see it start tracking a multimeter at about 0:39 in.

IR sensor look familiar? That’s because we recently featured one of [Aron's] other projects, the Dodgebot!

8 thoughts on “Motion Tracking on the Cheap with a PIC

      1. Because sometimes the spam filter doesn’t catch them. Then we have people replying with sarcastic comments.

        Now I can’t put the ‘reblogged’ post into spam without screwing up the threading of all the comments.

        1. Well I apologize for that then. But I have to say that I couldn’t in my wildest dreams have guessed that removal of comments relied on the order in which they were posted.

      2. I just took it as a compliment. They liked your article and wanted to give you credit for reblogging it. I see it all the time, whats the problem?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s