Sending universal remote keycodes
Microcontrolled
Posts: 2,461
Is there a way to use a Prop to send universal remote keycodes to control a TV? Is there a list of supported codes for something other then sony? Please help as this is needed in a project I am working on now!
Thanks in advance!
··············· -- Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
Thanks in advance!
··············· -- Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
Comments
first thing to do is to search through the obex with suitable keywords like "remote"
there is the IR Kit
IR Kit contain objects to get and buffer key codes from virtually any IR remote, identify and obtain timing information, transmit IR codes, and understand IR transmission codes. (IR_kit.zip)
best regards
Stefan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
to analyze the bitstream and the timing it is good to use the file ir_capture
as this gives information about how many bits and the timing
now the code to send is specific about some things
it is adjusted for a 38 kHz carrier-frequency. On common IR-remote-controls the carrierfrequency varies from 36 to 40 kHz
the code to send is only the file ir_tx_nec which is specific to NEC
I'm not familiar with IR-signals but I guess that the bitstreams vary between brands
from this quick overview I came to the conclusion that the description in the obex promises more than the code can do
to record really ANY kind of IR-bitsequences the IR-capture can be used as a start.
you will have to record the on/off-timings of each key and combine this with a send-routine
that switches on/off the IR-Led with the recorded timings before
if you have access to the specification of the bitstream like how does
- the leadin
- the databits
- the leadout
look like
you can write your own asm-driver more directly.
so there are two levels:
level 1: you know the carrierfrequency and can use a carrier-to-bitstream-decoder device and simply sample the bitstream
level 2: analyse the carrierfrequency of the IR-remote-control by the propeller using a photo-diode with an amplification-circuit
and demodulate the carrierfrequency by software
maybee a way inbetween level 1 and 2 is to analyse the carrierfrequency and switch the bitstream-sample IO-pin between
different pins which were connected to three different hardware-carrierdecoders for 36 kHz, 38 KHz and 40 kHz
this is no ready to use IR-recording-object nor a complete explaining of IR-signals but I hope this helps some steps
best regards
Stefan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
Post Edited (jazzed) : 8/15/2009 4:50:02 PM GMT