Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

For general Flowcode discussion that does not belong in the other sections.
mnfisher
Valued Contributor
Posts: 2110
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 166 times
Been thanked: 969 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post 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 1317 times

mnfisher
Valued Contributor
Posts: 2110
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 166 times
Been thanked: 969 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post by mnfisher »

What MCU do you want to use for transmit and receive?

ELECTRONICA67
Posts: 199
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

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

mnfisher
Valued Contributor
Posts: 2110
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 166 times
Been thanked: 969 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

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

ELECTRONICA67
Posts: 199
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v10 Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post 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

mnfisher
Valued Contributor
Posts: 2110
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 166 times
Been thanked: 969 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

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

ELECTRONICA67
Posts: 199
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v11 Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post 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

ELECTRONICA67
Posts: 199
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v11 Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post 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
Attachments
TSOP31236.jpeg
TSOP31236.jpeg (48.64 KiB) Viewed 28 times
RC5_DISPLAY (1).fcfx
(18.1 KiB) Downloaded 3 times

chipfryer27
Valued Contributor
Posts: 2061
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 451 times
Been thanked: 677 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post by chipfryer27 »

Hi

Do you have a logic analyser or a scope?

Regards

ELECTRONICA67
Posts: 199
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Re: Modulo Ky-022 Sensor Receptor Infrarrojo Ir Pic

Post by ELECTRONICA67 »

Hi

don't have

Enrique

Post Reply