Configure RC5 component (SOLVED).

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Configure RC5 component (SOLVED).

Post 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,
Attachments
remote_philips.fcfx
(8.63 KiB) Downloaded 172 times
Last edited by bercioiu on Fri Jan 15, 2021 9:23 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Configure RC5 component.

Post 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 2581 times
Hope this helps.

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Configure RC5 component.

Post 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 149 times
Rename txt to mp4 to seee the video
Attachments
config.png
config.png (27.07 KiB) Viewed 2567 times

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Configure RC5 component.

Post 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!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Configure RC5 component (SOLVED).

Post by Benj »

Excellent well done and thanks for letting us know :D

Post Reply