Tuesday, March 29, 2011

Make an Infrared Remote Control for PC

A friend of mine came yesterday to me asking if I can do something for him to control WinAmp via a Remote Control. After some searching I found a very simple to build IR receiver using the serial port on LIRC official page so I started to gather the components from our local electronics shop. It costed me around 1.5$ so it was also cheap enough :D .
The schematic is









and the components are as follows :
  • IC1 = 78L05, 5V regulator
  • IC2 = TSOP1738 , IR receiver
  • D1 = 1N4148
  • C1 = 4.7uF
  • R1 = 4.7K
  • one male or female (depends on your configuration/cables) serial (DB9,RS232) connector

I choosed to put all components on air and in the serial connector’s box (photos below).
The pinouts of the 9-pins connector are :

  • 1 = DCD (Carrier Detect)
  • 2 = RXD (Receive Data)
  • 3 = TXD (Transmit Data)
  • 4 = DTR (Data Terminal Ready)
  • 5 = GND (Ground)
  • 6 = DSR (Data Set Ready)
  • 7 = RTS (Request To Send)
  • 8 = CTS (Clear To Send)
  • 9 = RI (Ring Indicator)
TSOP1738 pinouts

IM000144.JPG
the starting materials

IM000148.JPG
during construction

IM000158.JPG
inside the box

IM000159.JPG
the final product

IM000387.JPG
the remote controls I use
For the software part you can use :

(Edited) As a remote control you can use almost all universal remote controls (you must know its working code for the TSOP1738, for the one from the attached picture the code is 081) and most of the domestic (videorecorder, tv …) remote controls. To see if one is working open WinLirc, press Reconfigure and then Raw Codes. If when you press a button on your remote control you see lots of numbers there then it means it is working.

(Edited) To add a status LED to your receiver, just make the schematic below (I tested it last week and it went ok). The disadvantage of this is that you’ll need a battery so it can run ok.

http://stuff.nekhbet.ro/wp-content/uploads/2007/11/diy_in_receiver_status_led6.gif

Just click the image to see it larger

Hand made GPS receiver




I had bought MStar GPS module for UAV Board. But the datasheet is not very clear for this one. So I have made a test board for test it.

DIY RF Receiver


If you're a hobbyist or just have a fondness for radio, you can make your own RF receiver. Radio frequency receivers have numerous uses, but they often act to pick up local radio stations. You can buy an RF receiver, but that's not nearly as fun as making one yourself. That way, every time a signal comes through, you'll have validation for a job well done.



Instructions

    • 1

      Cut two sets of holes near the top side of your stiff plastic bottle with the nail about a half an inch apart. Parallel to the holes, punch two sets of holes near the bottom of the stiff bottle.

    • 2

      Push one end of the magnet wire through the holes near the top side. Pull through about eight inches of wire. Wrap the long end of the wire down the body of the stiff bottle. Make sure each wrap of the wire comes in contact with the last full wrap. As you wrap the wire, loop every fifth wrap around the pencil. These wire loops will be referred to as wire taps. Wrap this pattern until you get to the bottom of the bottle. Push the end of the wire though the holes at near the bottom side of the stiff bottle.

    • 3

      Strip the vinyl coating from the ends of the wire wrap at the top and bottom of the bottle with your wire cutters. Take care not to cut the wire. Carefully remove the vinyl coating from the wire taps. Take care in not removing too much, as you don't want to remove coating from the wire areas wrapped around the bottle.

    • 4

      Solder one end of the Germanium diode to the end of the wire at the bottom of the bottle.

    • 5

      Snip off the end of the cord to your corded phone handset. Strip off the protective covering to reveal the interior wiring. Find the transmitting yellow and blue wires. Solder the blue one to the free end of the Germanium diode. Solder the yellow wire to the free end of the magnet wire at the top of the bottle.

    • 6

      Clip and attach one end of the alligator jumper to a bare spot on the magnet wire you soldered the yellow wire. Clip and attach the other end of the alligator jumper to a piece of metal that's firm into the ground. This could be something like a pipe.

    • 7

      Clip and attach one end of the other alligator clip to the end of the insulated wire. Attach the insulated wire to a high spot like your roof or a tree branch. This will act as your antenna. Clip and attach the other end of the alligator jumper to one of the wire taps. Use the wire taps to adjust the station your RF receiver will pick up.