Page 5 of 7

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Wed Jul 15, 2026 11:33 am
by mnfisher
Also note - I power the receiver from pins 4 and 5 - $D4 =1 , $D5 = 0.


LabNation_Screenshot60.png
LabNation_Screenshot60.png (136.51 KiB) Viewed 2860 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Wed Jul 15, 2026 1:16 pm
by mnfisher
What MCU do you want to use for transmit and receive?

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Thu Jul 16, 2026 9:26 am
by ELECTRONICA67
PIC12F1840 TX and 16f1847 RX whit crystal de 4 mhz RX

sorry. . . . It took a bit of work and I haven't been able to give it the necessary attention, I managed to do a test with Arduino and the IR control on the laptop monitor but I couldn't receive data

Enrique (in fact it's 2:00 am and I'm barely going to rest)

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Thu Jul 16, 2026 9:59 am
by mnfisher
Okay - is the IR remote RC5 or NEC (which is more common)?

The transmitter program has 50% duty on the signal - which might be better reduced slightly (overloads the gain control on the receiver)?

Hope you get a good sleep!

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Fri Aug 14, 2026 6:07 am
by ELECTRONICA67
Hi Martin,

I ran into a series of setbacks that prevented me from continuing with the project—I apologize for not letting you know. Things have calmed down now, and I appreciate the help and time you took to look into this. I have Flowcode 11 Pro and thought that perhaps the components are updated and could be used more easily via component macros. I created a small program that reads input from an IR remote and displays it on a 4-digit, 7-segment LED display, but it throws an error during compilation. I’ve tried different programs, but they all yield the same result, so I haven't been able to test it on actual hardware. The IR receiver is a TSOP31236, which operates at 36 kHz. Using component macros makes the flowchart much simpler and streamlines the program; I find the current diagrams a bit difficult to understand. :shock:

Best Regards
Enrique

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Fri Aug 14, 2026 6:53 am
by mnfisher
Hi Enrique,

I've not had time to work on this either - but I've just received some PICs including a few of the types mentioned above and might get a chance to depend a little time over the next week.

It would be better to get the component fixed - but i was hoping to get something working - at least as a test of the hardware - but yes it would be a little more complicated (making it a full component if complicated by the interrupts which vary between MCUs) - we'd need some professional help on this 🤔

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Fri Aug 14, 2026 7:41 pm
by ELECTRONICA67
Hi Martin,

I really appreciate your help. In fact, I think there are some bugs in the components: the TM1637 4-digit display doesn't show data in Flowcode 10 or 11—it works in the simulation view, but not on the actual hardware. As for RC5 (TSOP31236), the macros are very practical, simple, and easy to implement, but it doesn't receive a signal in Flowcode 10 or 11 either. I imported the flowcharts into Flowcode 11, thinking the components might be updated there; I had been waiting to use Flowcode 11 until the bugs in the new product were fixed. Actually, the 4x4 keypad was also faulty—it wouldn't save its connection configuration—but that has already been fixed.

When it's a lack of knowledge, there's a solution, but when it's a bug—in my case—there isn't much I can do.

If you can help me out—I have everything implemented, so it's just a matter of testing the components; you don't need to worry about that part.

I am using the PIC16F1847 as the RX and the PIC12F1840 as the TX.

Best Regards
Enrique

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Fri Aug 14, 2026 7:53 pm
by ELECTRONICA67
Hi Martin,

I actually posted this program as a sample in the BUG section. But if we can do something with it... that would be excellent!
The display isn't showing data; it lights up at the start of the program—just as a test to confirm it's taking readings—and I connected an LED to pin A2 to indicate when the RC5 detects incoming data, so the display should show it if that happens.

Enrique

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Fri Aug 14, 2026 8:04 pm
by chipfryer27
Hi

Do you have a logic analyser or a scope?

Regards

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Posted: Fri Aug 14, 2026 8:13 pm
by ELECTRONICA67
Hi

don't have

Enrique