RC5 component not working
RC5 component not working
I create Flowchart for rc5 that encode data from remote control and display on port-C to on off LEDs, but it not working. My remote and sensor is ok and work fine with Arduino IDE but not working with Flowchart and RC5.
- Attachments
-
- RC5_Test_Rx (1).fcfx
- (10.59 KiB) Downloaded 204 times
-
- 3.jpg (72.03 KiB) Viewed 28770 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: RC5 component not working
Hi kg300,
As you have posted in the General Programming section we won't know what Flowcode version you are referring to?
I have just tested RC5 component.
Working correctly with Flowcode V7,8 & 9.
Have you tried the 1 Sec flash test?
Your circuit shows no crystal or resonator connected, your flowchart is configured as though there is!
Looking at your flowchart, you have the output of RC5 component connected to pin RA4.
However, on the circuit you posted, the output is connected to pin RB0.
You need bare in mind that the RC5 component goes from high to low when receiving a signal.
Therefore within RC5 properties the Invert Signal should be set for Yes.
You have it set to No.
Try the attached flowchart, which is configured as your circuit diagram.
As you have posted in the General Programming section we won't know what Flowcode version you are referring to?
I have just tested RC5 component.
Working correctly with Flowcode V7,8 & 9.
Have you tried the 1 Sec flash test?
Your circuit shows no crystal or resonator connected, your flowchart is configured as though there is!
Looking at your flowchart, you have the output of RC5 component connected to pin RA4.
However, on the circuit you posted, the output is connected to pin RB0.
You need bare in mind that the RC5 component goes from high to low when receiving a signal.
Therefore within RC5 properties the Invert Signal should be set for Yes.
You have it set to No.
Try the attached flowchart, which is configured as your circuit diagram.
- Attachments
-
- RC5_Test_Rx v2.fcfx
- (11.17 KiB) Downloaded 210 times
Martin
- 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: RC5 component not working
Thanks Martin,
Appreciate you testing it for us
Appreciate you testing it for us
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: RC5 component not working
Flowcode version 8, attached a 20mHz crystal and connect output to RA4 but nothing will happen. Added an led point in flowchart to check where RC5 detect an IR signal but there is no response.medelec35 wrote: ↑Sun Jan 03, 2021 3:16 amHi kg300,
As you have posted in the General Programming section we won't know what Flowcode version you are referring to?
I have just tested RC5 component.
Working correctly with Flowcode V7,8 & 9.
Have you tried the 1 Sec flash test?
Your circuit shows no crystal or resonator connected, your flowchart is configured as though there is!
Looking at your flowchart, you have the output of RC5 component connected to pin RA4.
However, on the circuit you posted, the output is connected to pin RB0.
You need bare in mind that the RC5 component goes from high to low when receiving a signal.
Therefore within RC5 properties the Invert Signal should be set for Yes.
You have it set to No.
Try the attached flowchart, which is configured as your circuit diagram.
- Attachments
-
- cir.jpg (113.76 KiB) Viewed 28640 times
-
- 1.jpg (19.25 KiB) Viewed 28642 times
-
- webn.jpg (69.94 KiB) Viewed 28642 times
Re: RC5 component not working
when i attached the IR sensor and remote with Nano and IDE the result is here
- Attachments
-
- 23.png (48.33 KiB) Viewed 28635 times
-
- webgt.jpg (97.26 KiB) Viewed 28635 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: RC5 component not working
Did you try the 1 sec flash test first as it's important timing is correct?
Does the crystal you are using not require load capacitors to make sure frequency is correct?
Does the crystal you are using not require load capacitors to make sure frequency is correct?
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: RC5 component not working
I have changed to the flowchart to run with 8MHz internal osc.
RC5 IR input has been changed to RA4.
if it does not work for you, I will try on hardware with internal osc.
RC5 IR input has been changed to RA4.
if it does not work for you, I will try on hardware with internal osc.
- Attachments
-
- RC5_Test_Rx v2 Int Osc.fcfx
- (11.3 KiB) Downloaded 198 times
Martin
Re: RC5 component not working
thanks Martin for your responce. I checked your flowchart but it not working on hardware, even it not detect any IR signal from remote. I downloaded a flowchart from web created in V5 and tested it on hardware, it take some response to me. It detect IR signals and blink the LED but not decode the signals. Lcd always showing the same value
- Attachments
-
- asdr.jpg (126.11 KiB) Viewed 28561 times
-
- RC5-cesf-int4MHz (1).fcf
- (15 KiB) Downloaded 199 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: RC5 component not working
Hi kg300!
I follow this cause soon I want to play with this. Do you managed to get it work?
Jorgen
I follow this cause soon I want to play with this. Do you managed to get it work?
Jorgen
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: RC5 component not working
Don't forget to take in account, this is the RC5 type decoder.
Therefore it's not compatible with all remotes.
Could you be trying with a non c5 remote?
Therefore it's not compatible with all remotes.
Could you be trying with a non c5 remote?
Martin
- Bachman
- Posts: 116
- Joined: Sun Sep 07, 2014 11:37 am
- Location: Hungary
- Has thanked: 9 times
- Been thanked: 53 times
- Contact:
Re: RC5 component not working
If you know how UART (RS232) is working, try IR remote decoder module. Works fine and it has UART input and output. I've tested all IR remotes at home, it's sees all one of them.
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: RC5 component not working
Hi Backman!
Very interesting, do you have the name of it and where did you bougth this please.
Br Jorgen
Very interesting, do you have the name of it and where did you bougth this please.
Br Jorgen
- Bachman
- Posts: 116
- Joined: Sun Sep 07, 2014 11:37 am
- Location: Hungary
- Has thanked: 9 times
- Been thanked: 53 times
- Contact:
Re: RC5 component not working
Hello!
Searc for: ir remote decoder module. eBay, Amazon, AliExpress etc.
Searc for: ir remote decoder module. eBay, Amazon, AliExpress etc.
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
Re: RC5 component not working
Hey Guys,
Let me hook up with this RC5 issue.
I'm also working on implementing the RC5 receiver in a project.
I started with the projects MCU (PIC24) on a high clock frequency. Got no results.
This was in FC9.
So I took out my e-Block kit with a simple MCU, PIC16F877A.
At first test (FC9) no results, switched over to FC8 and booked results.
The receiver is now working with a Xtal of 8mHz, option clock speed settings of 8mHz and in timer receive mode.
It's working flawless in this mode.
I prefer Interupt mode..
Can anyone tel me how this should work?
I also put in the 1second led flash for timing check.
With the right setting the timing is 2 second and not one as expected.
Something wrong here!!
I changed to 4MHz option clock speed and timing is 1sec. flash now.
With this setting i lose my display. Only strange characters. I expect the dispaly can't handle the higher bus rate.
The build in optical check is still working.
I also tested with a 16MHz xtal but this is not working.
So my conclusion is the timer is hooked on the xtal and this is only working at 8MHz, the devider settings do not work properly.
Changing the option clock does not influence the timers timing. It's still working. I tested this in FC8 and FC9.
Working RC5 receiver@8MHz:
There is still some homework for Matrix here.
I also like to use this RC5 macro but for now i can't.
Let me hook up with this RC5 issue.
I'm also working on implementing the RC5 receiver in a project.
I started with the projects MCU (PIC24) on a high clock frequency. Got no results.
This was in FC9.
So I took out my e-Block kit with a simple MCU, PIC16F877A.
At first test (FC9) no results, switched over to FC8 and booked results.
The receiver is now working with a Xtal of 8mHz, option clock speed settings of 8mHz and in timer receive mode.
It's working flawless in this mode.
I prefer Interupt mode..
Can anyone tel me how this should work?
I also put in the 1second led flash for timing check.
With the right setting the timing is 2 second and not one as expected.
Something wrong here!!
I changed to 4MHz option clock speed and timing is 1sec. flash now.
With this setting i lose my display. Only strange characters. I expect the dispaly can't handle the higher bus rate.
The build in optical check is still working.
I also tested with a 16MHz xtal but this is not working.
So my conclusion is the timer is hooked on the xtal and this is only working at 8MHz, the devider settings do not work properly.
Changing the option clock does not influence the timers timing. It's still working. I tested this in FC8 and FC9.
Working RC5 receiver@8MHz:
There is still some homework for Matrix here.
I also like to use this RC5 macro but for now i can't.