Send IR code with arduino

33 views
Skip to first unread message

dumpa

unread,
Sep 28, 2009, 12:52:39 PM9/28/09
to NYCResistor:Microcontrollers
Hi
I'm trying to hack my dvd player to be able to watch multizone DVDs.
For that I'm supposed to send with a remote control the following
code:

0082 0015 0089 0004 00F2 0033 0017 0010 0091 0013

That is taken from
http://www.avforums.com/forums/dvd-player-hacks/368649-panasonic-dvd-players-region-free-hack-now-available.html

I know that with my arduino and an IR Led I'm supposed to be able to
send this code, but haven't been able to find what does a number mean
in terms of pulses. (http://zovirl.com/2008/11/12/building-a-universal-
remote-with-an-arduino/)

I'm able to find several types of files related to remote controls
with this code, but not anything I can read with a textpad in order to
be able to understand.

If anyone knows what does codes mean, or how to send them with
arduino, i'll appreciate the information.

Ryan Micallef

unread,
Sep 28, 2009, 7:27:49 PM9/28/09
to nycresistormi...@googlegroups.com
I've worked a fair bit with IR and arduinos.  This is the best website I've come across to explain the fundamentals.

http://www.sbprojects.com/knowledge/ir/ir.htm

See if it helps you understand the encoding.  Basically, you take a carrier square wave (often at 38 kHz) and turn that square wave on and off to signal the device.  The timing of the signal pulses determines whether you're sending a zero or one.  Then, you group those zeroes and ones into chunks and convert them to decimal -- that's the "number" you're sending.  The specific mappings of pulse timing to the number sent depends on what protocol your device uses.  NEC is the most common protocol.  Many other protocols are similar, so I'd start here.

http://www.sbprojects.com/knowledge/ir/nec.htm

If you don't know what protocol your device is using, you can figure it out with a logic analyzer or use the arduino itself as a quick-and-dirty logic analyzer.  I can send you a program for this or, if you're in NYC, show you how at a craft night.

The link below is another way to go about generating the carrier pulse that lets a cheap 555 chip worry about the carrier wave, so you don't have to generate the carrier with the arduino.  You still use the 'duino to switch the carrier pulse on and off, but this little external circuit makes it easier to program the codes and more accurate to implement them -- some devices can be finicky.

http://www.robotroom.com/Infrared555.html

Justin Kelly

unread,
Sep 29, 2009, 4:17:53 AM9/29/09
to nycresistormi...@googlegroups.com
Just a thought it may be easier to build a decoder, and see if your remote control can produce the codes you need.

trandi

unread,
Sep 29, 2009, 6:26:00 AM9/29/09
to NYCResistor:Microcontrollers
Have also a look at this post, as per one of me previous threads about
reverse-engineering a toy remote IR remote control:
http://trandi.wordpress.com/2009/09/20/arduino-processing-helicopter-ir-remote/

It shows how to easilly use Arduino + Processing as a " quick-and-
dirty logic analyzer" as Ryan was saying...

dan

On Sep 29, 12:27 am, Ryan Micallef <mical...@gmail.com> wrote:
> I've worked a fair bit with IR and arduinos. This is the best website I've
> come across to explain the fundamentals.
>
> http://www.sbprojects.com/knowledge/ir/ir.htm
>
> See if it helps you understand the encoding. Basically, you take a carrier
> square wave (often at 38 kHz) and turn that square wave on and off to signal
> the device. The timing of the signal pulses determines whether you're
> sending a zero or one. Then, you group those zeroes and ones into chunks
> and convert them to decimal -- that's the "number" you're sending. The
> specific mappings of pulse timing to the number sent depends on what
> protocol your device uses. NEC is the most common protocol. Many other
> protocols are similar, so I'd start here.
>
> http://www.sbprojects.com/knowledge/ir/nec.htm
>
> If you don't know what protocol your device is using, you can figure it out
> with a logic analyzer or use the arduino itself as a quick-and-dirty logic
> analyzer. I can send you a program for this or, if you're in NYC, show you
> how at a craft night.
>
> The link below is another way to go about generating the carrier pulse that
> lets a cheap 555 chip worry about the carrier wave, so you don't have to
> generate the carrier with the arduino. You still use the 'duino to switch
> the carrier pulse on and off, but this little external circuit makes it
> easier to program the codes and more accurate to implement them -- some
> devices can be finicky.
>
> http://www.robotroom.com/Infrared555.html
>
> On Mon, Sep 28, 2009 at 12:52, dumpa <juanpablocalde...@gmail.com> wrote:
>
> > Hi
> > I'm trying to hack my dvd player to be able to watch multizone DVDs.
> > For that I'm supposed to send with a remote control the following
> > code:
>
> > 0082 0015 0089 0004 00F2 0033 0017 0010 0091 0013
>
> > That is taken from
>
> >http://www.avforums.com/forums/dvd-player-hacks/368649-panasonic-dvd-...
>
> > I know that with my arduino and an IR Led I'm supposed to be able to
> > send this code, but haven't been able to find what does a number mean
> > in terms of pulses. (http://zovirl.com/2008/11/12/building-a-universal-
> > remote-with-an-arduino/<http://zovirl.com/2008/11/12/building-a-universal-%0Aremote-with-an-a...>
> > )
Reply all
Reply to author
Forward
0 new messages