Summary of RC5 remote control using PIC12F629
This article explains how to build a custom remote control using the RC5 protocol and a PIC12F629 microcontroller with the PIC Basic compiler. It details creating remotes with varying button counts, mapping codes from tables, and expanding functionality via matrix wiring or shift registers like the 74HC165 if input pins are limited. A sample HEX file for a five-button TV remote is provided as a starting point.
Parts used in the Custom RC5 Remote Control:
- PIC12F629 microcontroller
- PIC Basic compiler from Crownhill
- TRANSMIT.HEX file (example code)
- RC5 protocol compatible buttons
- Matrix wiring configuration (optional)
- 74HC165 shift register (optional)
- LC-Display project for code verification
All remote controlled projects from this site can be controlled with remote controls which use the RC5 protocol, like the TV-remotes from Philips.
When all buttons from such a remote are in use then you could make a remote control by yourself.
Your own build remote control with only one button or maybe you want to build a remote with more then hundred buttons.
It is possible, however, you need the PIC Basic compiler from Crownhill seeing that everyone has his own wishes and you have to fill in which button sends which RC5 code (mentioned in the RC5 tables, see here and here).
The TRANSMIT.HEX file underneath is only an example, a TV-remote controller with only 5 buttons, namely Stand-by, Program + and -, Volume + and -.
On basis of the downloaded PIC Basic example you can expand the program to your own wishes.
If you need more buttons but the PIC has not enough inputs free, you have to write your own routine which read the buttons when they are connected in a matrix or with use of i.e. a 74HC165.
To see what system- and command codes your remote-control sends, you can build an other (easy) project: RC5/RC6 codes on a LC-Display.
For more detail: RC5 remote control using PIC12F629
-
What protocol do the remote controls use?
All remote controlled projects on this site use the RC5 protocol. -
Can I build a remote with more than one hundred buttons?
Yes, it is possible to build a remote with more than one hundred buttons. -
Which compiler is required for this project?
You need the PIC Basic compiler from Crownhill to fill in which button sends which RC5 code. -
What does the TRANSMIT.HEX file contain?
The file is an example of a TV remote controller with only 5 buttons: Stand-by, Program + and -, Volume + and -. -
How can I add more buttons if the PIC has no free inputs?
You must write your own routine to read buttons connected in a matrix or use a 74HC165. -
How can I see what system and command codes my remote sends?
You can build another easy project called RC5/RC6 codes on a LC-Display to see the codes. -
Does the example program allow expansion?
Yes, you can expand the downloaded PIC Basic example program to your own wishes.
