Something odd - if I do Rx available - the component toggles the Rx pin at 300us intervals.
If I set Tx available - then the pin behaves as expected (held high) and I can see the signal received (on a logic analyser) if I press a button on the control....
Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic
-
mnfisher
- Valued Contributor
- Posts: 2074
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 162 times
- Been thanked: 958 times
-
mnfisher
- Valued Contributor
- Posts: 2074
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 162 times
- Been thanked: 958 times
Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic
Using the Rc5_Receive from the above link - the sensor does receive data correctly (not whilst using the component!)
Somewhere there is a better version that uses a pin change interrupt not the busy_wait as in this code.
There was a lot of discussion with Jan about this...
Somewhere there is a better version that uses a pin change interrupt not the busy_wait as in this code.
There was a lot of discussion with Jan about this...
-
ELECTRONICA67
- Posts: 181
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 31 times
- Been thanked: 9 times
Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic
Hi
I really appreciate your help. I've been working day and night for two weeks on a solution. I was confident there wouldn't be a problem, but sometimes these situations arise. The problem is that I'm pressed for time. I did something simple with an IR photodiode as a pulse counter: it would send 10 pulses and open, then with another IR remote it would send 20 pulses and close. But it wasn't reliable. It had to be at a distance of 10 or 20 cm, and there was a lot of noise in the receiver with the light, not to mention sunlight. I've tried using Flowcode and a receiver like the KC-022, which is commercially available, to at least receive two signals, but I haven't been able to get it to work. That's why I think it might be a bug.
Thanks again, and I really appreciate your help.
Enrique
I really appreciate your help. I've been working day and night for two weeks on a solution. I was confident there wouldn't be a problem, but sometimes these situations arise. The problem is that I'm pressed for time. I did something simple with an IR photodiode as a pulse counter: it would send 10 pulses and open, then with another IR remote it would send 20 pulses and close. But it wasn't reliable. It had to be at a distance of 10 or 20 cm, and there was a lot of noise in the receiver with the light, not to mention sunlight. I've tried using Flowcode and a receiver like the KC-022, which is commercially available, to at least receive two signals, but I haven't been able to get it to work. That's why I think it might be a bug.
Thanks again, and I really appreciate your help.
Enrique
-
mnfisher
- Valued Contributor
- Posts: 2074
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 162 times
- Been thanked: 958 times
Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic
Hi Enrique,
Jan and I managed to get it to work very reliably on AVR and PIC (which didn't support an either edge interrupt). It's not quite the same as a component (no simulation) - but it might do the trick for you?
I'll try and find the latest version / topic....
Martin
Jan and I managed to get it to work very reliably on AVR and PIC (which didn't support an either edge interrupt). It's not quite the same as a component (no simulation) - but it might do the trick for you?
I'll try and find the latest version / topic....
Martin
-
ELECTRONICA67
- Posts: 181
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 31 times
- Been thanked: 9 times
Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic
Hi Martin,
I would really appreciate it if you could do that.
Thanks
Regards
Enrique
I would really appreciate it if you could do that.
Thanks
Regards
Enrique