Page 1 of 1

Configure RC5 component (SOLVED).

Posted: Thu Jan 14, 2021 8:12 am
by bercioiu
Hi guys!
I'm struggling to configure the RC5 component in FC8 and I can't make it work. I want to make a remote control for an old Philips TV. Do I need to add another PWM component? If so, how do I configure that as well? I work with a pic 16lf1824, configured with internal clock at 32MHz, internal MCLR, and the IR LED is connected to the RC5 pin (ccp1).
I am attaching the FC file, maybe you will help me with a correct configuration.
Thank you!

Puiu,

Re: Configure RC5 component.

Posted: Fri Jan 15, 2021 12:16 pm
by Benj
Hello Puiu,

The PWM should be taken care of for you, you don't need a seperate PWM component in your program.

You do however need to use the PWM and TX pins on seperate pins on the MCU.

The pins then need to be connected together using a diode as shown here.
RC5_TX.jpg
RC5_TX.jpg (9.18 KiB) Viewed 2309 times
Hope this helps.

Re: Configure RC5 component.

Posted: Fri Jan 15, 2021 3:26 pm
by bercioiu
Thank you for your help in not knowing how many times, Benj.
I modified the connections according to the received scheme. No positive results. I want to mention that I did not find the SCHOTTKY diode in the drawer, so I put a normal diode. Can this be a cause? If I look at the IR LED through the camera of my mobile phone, I see some pulsating activity in the LED.
IR_LED_mp4.txt
(930.96 KiB) Downloaded 132 times
Rename txt to mp4 to seee the video

Re: Configure RC5 component.

Posted: Fri Jan 15, 2021 9:22 pm
by bercioiu
I figured it out, I exchanged the wires between them pwm with tx and everything is working fine now.
Thanks for the prompt support!

Re: Configure RC5 component (SOLVED).

Posted: Sat Jan 16, 2021 12:49 pm
by Benj
Excellent well done and thanks for letting us know :D