Using cheap universal remotes with PICAXE.
by, 12-02-2012 at 19:52 (18491 Views)
The test layout uses a PICAXE-14M2 and is powered by a switching regulator. A normal 38KHz IR receiver is wired to pin C.0 as shown under the irin command in PICAXE Manual 2. Below is a picture of my breadboarded circuit.
Test codeThe remotesCode:#picaxe 14m2 #no_data #terminal 4800 do irin C.0,b0 sertxd (#b0,cr,lf) loop
Three different universal remotes all from the local 99p store.
The image below shows what numbers are received by the PICAXE when each button is pressed.
To set up for use with PICAXE, press the SET button then a mode button without releasing the SET button and the LED will light up, then enter 1 - 2 - 9 using the numbered buttons and the LED will go off. I recomment using the stray mode button since that button is not blue like the others and could easily be mistaken for a normal button and pressing it would cause the remote to stop working if one of the other modes were used instead. The code 129 is unsurprisingly listed under Sony in the little instruction booklet and whilst some of the other listed codes will also work with PICAXE not all of them allow use of all buttons.
To set up this remote, hold the SET button until the LED flashes - this 'unlocks' the TV setting. Then press the SET button repeatedly untl the PICAXE receives the power button number (21). Once the PICAXE receives this, leave the remote idle for 20 seconds and it will automatically lock the TV setting preventing an accidental press of the SET button from changing the TV setting which would cause the remote to stop working with the PICAXE.
Setup is the same as remote 1 except all of the mode buttons are in a sensible location without any randomly placed in the middle.
Added: Take a look at the poor soldering in the second remote:
You may or may not be able to tell from the photo that most of the SMD resistors are upside-down and most of the SMD components have far too much solder on them.
Added: I found that Hippy had previously posted about the second remote and he got the same numbers as me.