In today’s example we will demonstrates how to create an RC-5 infrared remote control using the PSoC 4 Pioneer kit, implementing a Manchester coding and pulse coding using 2 TCPWM blocks.
In the example you will be able to control the volume of the TV using the CapSense slider and decrease the brightness of the display.
Forum Post Attachments:
At the bottom of this post we are including the following items:
- Example Project Zip File
- Project Images
The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:
- Timer Counter
- Glitch Filter
- Control Register
- CapSense Slider
The main.c firmware is included in the example project. Please review the commented sections for more details.
In this example we are implementing an RC-5 infrared remote control using the PSoC 4 device on the Pioneer board. In this example we are using two TCPWM components to perform the Manchester and Pulse coding for the infrared transmitter information. The project uses a TV1 (TV receiver 1) system as the target address and transmits button presses and CapSense slider information. The button presses will control the brightness while the CapSense slider will control the volume of the target TV.
The hardware connections are already made set for the push button and CapSense inputs.
The user will need to connect the infrared transmitter to P0.0 which is the output of the PWM and Control Register circuitry.
Test Your Project:
Program the Pioneer kit with the example project and connect the infrared transmitter. Power up the kit and begin to send commands at a TV1 device.
I hope this example can help you in your design.