PJRC.COM Offline Archive, February 07, 2004 Visit this page on the live site |
| ||
Shopping Cart Checkout Shipping Cost Download Website |
Home | MP3 Player | 8051 Tools | All Projects | PJRC Store | Site Map |
You are here: MP3 Player Technical Docs IR Remote Control | Search PJRC |
The IR decoder is designed to work with Paul's MP3 player to allow use of any IR controller you may have by 'learning' up to 32 buttons. It only learns enough of the code to distinguish between buttons. It is a generic enough scheme that it can learn a variety of remote controllers. It has been tested with 5 different remotes so far. Probably need to try some more... Once a button is 'learned', pressing the button will produce a command string on the serial output. The codes are stored in the interal EEPROM memory. Once they are learned, you don't have to do it again for this remote.
The Decoder serial port runs at 19200 baud 8,n,1
It should be connected to the 4-pin serial port on the MP3 player
To initiate the learn function press the ] key followed by 01,02,03,...31 while running the MP3 Player connected to a terminal emulator. This will generate a 'Press XX' message. You can then press the corresponding button on your IR remote. Don't hold the remote too close to the decoder board. I have best results at least 2 or 3 feet away. After learning the button code, the IR decoder will output a ascii/visual representation of the key-code. Now pressing the button on the remote should produce the corresponding command string for control of the MP3 player on the serial port output.
Sample output:
IR DECODER PRESS 10 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DONEEnd sample output
Now pressing the button on your remote control will produce the string 'play' on the serial port output.
Codes 14-31 could be things like GOTOXXXX, BANDXXXX,NEXTBAND,NEXTALB,ETC.
Obviously, this hardware/software could be used to control other serial devices. It is hoped that making this design Free will inspire other uses and designs, just as Paul's enormous contribution with the MP3 player has inspired me to contribute this small project.
TODO: