Lifelong Learning Knowledge should be uncompromisingly sought after and freely given away.

16Aug/090

Controlling a servo with a TV remote using Arduino!

Ardunio IR Servo Controller

I decided today after I got home from work, I'd try to get my next quick project done. I wanted to control a hobby servo using a standard TV remote. I had a RadioShack IR receiver (Part No. 276-640) already as well as a standard hobby servo.

I quickly hooked things up. 10k resistor between the PWM pin on the Arduino and the servo sensor wire. 200ohm resistor between the digial pin on the Arduino and the output of the IR reciever. Hooked up my 5v to both and grounds and I was done.

I found some sample code as referenced in the Ardunio code below and modified it to find out what codes my remote was outputting for different keys. I decided I'd have it move the servo left and right using the left and right arrow keys on the remote and then center it at 90 degrees when the "OK" button was pushed.  I also output the keypresses to the serial port to verify movement...

Worked like a charm! Amazing how simple tasks like this are with such a great community of folks posting example code and a wonderous board like the Ardunio!

Arduino IR Servo Controller

Hi resolution pictures and the Ardunio code can be found in the attached ZIP file.

IRServoProject
Title: IRServoProject (1425 clicks)
Caption:
Filename: irservoproject.zip
Size: 2 MB

IRServoProject
Title: IRServoProject (1425 clicks)
Caption:
Filename: irservoproject.zip
Size: 2 MB

Comments (0) Trackbacks (0)
  1. Just saying thanks for posting information about so many cool projects. Found this blog while trying to hook up the same IR Receiver Module to an Arduino.

  2. Hi Guys
    We have just launched a Crowdfunding campaign on IndieGoGo for AnalysIR – IR Decoder & Analyzer. Currently we support 17 IR protocols and are looking for more to add as part of the campaign. Suggestions Welcome!

    You can find out more about the Campaign on http://bit.ly/1b7oZXH or Screenshot via http://www.AnalysIR.com

  3. Thanks Jay.
    Can you post the electric diagram?
    Thanks a lot


Leave a comment

No trackbacks yet.