Homemade IR remote
| Attachment | Size |
|---|---|
| tsal5100.pdf | 111.64 KB |
| ifrared_receiverZD-1952.pdf | 156.88 KB |
This is a walkthrough on how to make a simple IR controller. It is relatively cheap and easy to make. Programming is simple since the picaxe basic already has commands supporting IR communication.
I found an old PS2 clone controller with those wicked little joysticks in it. I would have loved to use the entire controller for a remote except it has way more buttons than I need or want plus it wasn't really designed to hold batteries as well.
This is what I ended up with after some debautury (desoldering and butchery :)
As you can see these little beauties have two 10K linear pots (103 is 10K and B means linear) and as a bonus that I wasn't aware of, a button thats activated by pressing down on the stick (far left on the left joystick). I've used a picaxe 14M to keep the cost down but a 18X or 28X1 could also be used. This now gives me 4 analog inputs for the joysticks and 4 buttons for future camera hacking possibilities. Since I'm using 4x AAA NiMh batteries (4.8V) I've done away with a regulator and will disable the brownout detect in the chip (see disablebod command).
I want to have one joystick set up as a normal up/down left/right and the other set up for skid steer which is normally done with 2 seperate up/down controls. This means I'll need to show you a little trick ;)
Instead of the 14M trying to translate the forward/reverse/left/right movement of the joystick into the equivalent of two forward/reverse joysticks I'm going to turn that joystick 45 degrees. Now when you push forward both the X axis and the Y axis move forward together. Pull backwards and they both move backward together. pull to one side and one motor will go forwards while the other goes backwards etc.
This is how it looks so far.
The 15mm nylon spacers I'm using give just enough clearance for the batteries and poke the sticks about the right height above the lid. I can always add a few washers to fine tune the height as it needs to be right otherwise the sticks won't get full movement.

I've fitted two sockets, one for the program cable and the other is to recharge the batteries from a 6V power supply.

I've used two Vishay TSAL5100 IR LEDs designed specifically for IR remotes. They can handle 200mA and have a narrow viewing angle to improve range. This means that up close you need to be pointing directly at the receiver. I may add some additional LEDs with a wide viewing angle later to help at close range.
The IR receiver is from a local electronics store and has the same frequency as the picaxe version. I've attached datasheets for both the LEDs and the IR receiver.
I've found that due to limitations in the IR protocols the response can be a bit slow. The IR only works indoors as bright sunlight swamps the signal. Guibot is building a similar remote using an Xbee transmitter. I think that is a better way to go as you'll have more range and it can be used outdoors. I suspect it will also have a superior data transfer rate.






@ Sat, 2011-01-22 14:43
Thank you for this tutorial
Thank you for this tutorial I am maing something similer but with these transmitter and reciever http://www.sparkfun.com/products/8948 and http://www.sparkfun.com/products/8945
@ Mon, 2009-03-02 16:40
flippin' awesome
@ Sun, 2009-03-01 10:56
Thank you for making this walkthrough!
Brilliant, this is a walkthrough that I always wanted to make. People should know how much it helps development to have made a good remote, it will always return to you as a good idea.
On my controller, that was one of the first things I made when I got into robotcs, I use
* An old Joystick (placed on top of the box) - but only one joystick, that then has 2 buttons (fire)
* 2 potmeters
* An LCD-screen
* Easy Radio modules
I write this to inspire anyone consiedering making something like this. To my experience it is a really nice development / debugging tool to have:
2 fire-buttons joystick provides so many posebilities: One can be down, both can be down, one can be pressed but released, left button down while joystick moved to right etc etc.
2 potmeters is very nice, because you can then send any number to your robot, and mix: Left button down; send value of potmeter A. Right potmeter changes value; send new value to robot etc etc.
LCD-screen is extremely nice as well; Turn your potmeter till robot is holding arm right, read on the LCD what the value is, write it into code of the robot etc..
Easy radio modules do not take anything but a single input-port on the robot. Click on, and your robot is remotecontrolled in 2 seconds, no soldering or modifications - and no worries of line-of-sight.

Examples:
http://letsmakerobots.com/node/101 (Video made by controlling robot. Click on "fire"; Robot spins 360 and similar tricks)
http://letsmakerobots.com/node/35 (at the end of the video)
@ Sun, 2009-03-01 12:48
a remote from Fritsl ?! :D
@ Sun, 2009-03-01 13:16
Why should I hate remotes?Oh
Why should I hate remotes?
Oh - because I think that remote-controlled robots are not "reall robots"? :)
Well, That is true. But since almost day one of my robot building, I have used all sorts of homemade tools & ways to quickly develop and prototype. being an arty, it is the result, the autonomous robot, that counts.
I also have robots remote control each other.. and right now I am working on a robot that is having it's own trailer to remote control :)
So I think remotes are cool.. I just don't think a remote controlled thing is a robot!
Remotes are to me just tools to make better robots in shorter time :)
@ Sun, 2009-03-01 13:54
I was playing with you :)
I was playing with you :) once you posted a comment saying that you hated the fact that a bot was remoted hehe :)
http://letsmakerobots.com/node/5126?page=1
I love remotes because I kinda fell that the robot becomes an extension of myself... but yes, being remoted its not a robot anymore, its a mechanical/electronical/digital vehicle with a human brain controling it :)
@ Sun, 2009-03-01 14:43
To take this all the way;In
To take this all the way;
In fact I think the future for robots are to be remote controlled: Not as we know it from an RC-car, but more like we know it from a dishwasher; It is us that tells it what to do, but not in details.
I think first step in theis new age is to make things that are able to be autonomous.. But I also think that all fear of robots taking over the world is lame: Human is, have always, and always will just build tools for themselves!
A tool needs to be operated. A good tool is one that does complex tasks at the flick of a button. The best tool thinks by itself, like a fully automated airconditioner; Sensors output is computed, action is done.. but only because we, the humans have asked it to keep the temperature at a comfortable level .. maby by romote :)
@ Sun, 2009-03-01 10:56
The truth is out! the secret
The truth is out! the secret to your fantastic robots is a black box with a big red knob and a LCD :D
It's only a basic walkthrough derived from Pictomatix. I've noticed that remotes are the flavor of the week and thought I'd throw in my two cents!
Thanks for the encouragement :-)
@ Sun, 2009-03-01 02:05
sweet...