Hello!
I have a question. I want to transmit the string "AD1CB4E1AA2EDDAF" through the serial communication pin (RC6) of the PIC16F877A using a transmitter RF module and receive the string using a receiver RF module connected to the pin (RC7) of the second PIC16F877A, and as confirmation that the string was received to light a led. How should I proceed? I am attaching the two flowcharts.
Thank you very much.
send/receive string
-
- Posts: 28
- http://meble-kuchenne.info.pl
- Joined: Sat Jul 10, 2021 2:43 pm
- Has thanked: 4 times
- Been thanked: 2 times
-
- Valued Contributor
- Posts: 1213
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 297 times
- Been thanked: 429 times
-
- Matrix Staff
- Posts: 1491
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 536 times
- Been thanked: 485 times
Re: send/receive string
Hi.
Just one additional thing to chipfryer27's helpful post.
When converting a Float to a string, you can state how many decimal places to round to.
Take a look at this Wiki entry
Just one additional thing to chipfryer27's helpful post.
When converting a Float to a string, you can state how many decimal places to round to.
Take a look at this Wiki entry
Martin
Re: send/receive string
Hello everybody
I did not get the expected results, the LED does not light up. I did a test by connecting the development boards with wires and it works like that, but in RF it doesn't work. If the data is received in RF, shouldn't the received string be found in the "receiver" variable?
I did not get the expected results, the LED does not light up. I did a test by connecting the development boards with wires and it works like that, but in RF it doesn't work. If the data is received in RF, shouldn't the received string be found in the "receiver" variable?
-
- Valued Contributor
- Posts: 1213
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 297 times
- Been thanked: 429 times
Re: send/receive string
Hi
Do you have a datasheet for the RF modules? Do they perhaps need some configuration or to be paired?
Regards
Do you have a datasheet for the RF modules? Do they perhaps need some configuration or to be paired?
Regards
-
- Valued Contributor
- Posts: 1213
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 297 times
- Been thanked: 429 times
Re: send/receive string
Hi
Can you post your Flowcode file?
Stange it works over wire but not RF which does suggest module related.
Do you have a USB-TTL serial converter? If so run a terminal program and see what is happening at the module Tx/Rx pins.
Regards
Can you post your Flowcode file?
Stange it works over wire but not RF which does suggest module related.
Do you have a USB-TTL serial converter? If so run a terminal program and see what is happening at the module Tx/Rx pins.
Regards
Re: send/receive string
Hi
I don't have HC-05 modules, nor USB-TTL serial converter, I only have RF 433MHz modules that work, for tx a pin in data and for rx a pin out data.
Sorry, I forgot the flowchart.
I don't have HC-05 modules, nor USB-TTL serial converter, I only have RF 433MHz modules that work, for tx a pin in data and for rx a pin out data.
Sorry, I forgot the flowchart.
- Attachments
-
- rx.fcfx
- (17.39 KiB) Downloaded 65 times