G'day there
Here's a circuit I made a while ago. I had read on the internet that certain mobile phones could be used as a remote control for your computer. My old phone wasn't one of these, so I thought: why don't I build something to do this?
My camera wouldn't take a good enough photo of the circuit, so I made a picture using the very marvelous PEBBLE. The IR receiver is the Jaycar ZD-1952 module. My dad bought me a cheap universal remote control and I programmed that to use the Sony codes. The LEDs on the board were for testing purposes, so I could see if the IR unit was receiving a signal.
I wrote a program in Liberty BASIC for the computer, which reads the remote codes from the serial port. It then simulates keyboard keypresses, for example if you press Pause on the remote, the software sends Ctrl+P to Windows Media Player, thus pausing whatever movie you have going. I also made the numbers 0-9 launch various programs.
Picaxe Code:
EDIT: I forgot to add this to the PEBBLE picture, but the 3 way header is for a download cable, and the transistor at the bottom is the IR module, Jaycar model ZD-1952.
Here's a circuit I made a while ago. I had read on the internet that certain mobile phones could be used as a remote control for your computer. My old phone wasn't one of these, so I thought: why don't I build something to do this?
My camera wouldn't take a good enough photo of the circuit, so I made a picture using the very marvelous PEBBLE. The IR receiver is the Jaycar ZD-1952 module. My dad bought me a cheap universal remote control and I programmed that to use the Sony codes. The LEDs on the board were for testing purposes, so I could see if the IR unit was receiving a signal.
I wrote a program in Liberty BASIC for the computer, which reads the remote codes from the serial port. It then simulates keyboard keypresses, for example if you press Pause on the remote, the software sends Ctrl+P to Windows Media Player, thus pausing whatever movie you have going. I also made the numbers 0-9 launch various programs.
Picaxe Code:
Code:
main:
b0 = 1
symbol offset = b0
infrain2
infra = infra + offset
if infra < 42 then
high 0
pause 100
low 0
end if
if infra > 42 and infra <84 then
high 1
pause 100
low 1
end if
if infra > 84 then
high 2
pause 100
low 2
end if
infra = infra + offset
sertxd (#infra)
pause 100
goto main
Attachments
-
63 KB Views: 179
Last edited: