Configuration nRF24L01

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Configuration nRF24L01

Post by Bruno »

Hi at all
In a new project, I need to use 4 nRF24L01 modules as transmitters and one as receiver.
Unfortunately in the FC8 component, there is no possibility to select the Pipe, (there are 6 of them)
How can I do? Who can help me?
Thank you very much

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Configuration nRF24L01

Post by Bruno »

Hi at all
I think I have solved the problem of selecting the pipes.
I made a new component that allows you to do this.
I share it for those who have the same need as me.
I am also attaching an example, tx and rx mode and the photo I used as the component image.
Best regards.
Attachments
nRF24L01_Test_RX_1.0.fcfx
(13.44 KiB) Downloaded 147 times
nRF24L01_Test_TX_1.0.fcfx
(18.59 KiB) Downloaded 136 times
nRF24L01A.fcpx
(6.24 KiB) Downloaded 144 times

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Configuration nRF24L01

Post by Bruno »

I forgot the photo ........... :D :D
Attachments
nRF24L01.jpg
nRF24L01.jpg (18.88 KiB) Viewed 5271 times

claudemir
Posts: 58
Joined: Sat Nov 03, 2012 7:43 am
Has thanked: 12 times
Been thanked: 5 times
Contact:

Re: Configuration nRF24L01

Post by claudemir »

Ola
Criei um programa para cada nrf24l01 e estao conversando entre si, porem um é "TX" e o outro é "RX" modo unidirecional, gostaria com que funcionasse como bidirecional "usar funçao "TX e RX" em cada lado (enviar e receber dados) estou usando ainda o flowcode 7.
Alguem com uma dica como fazer isso?

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Configuration nRF24L01

Post by Bruno »

Ciao claudemir
Ti rispondo in lingua italiana così potrai tradurre facilmente con google.
Io non ho mai usato il modulo in modalità bidirezionale, ma ho usato quattro moduli trasmettitori e uno ricevitore, credo però che basti settare il modulo in modalità TX per inviare dati e poi successivamente in modalitè RX per ricevere i dati. In FC7 è possibile fare questo, basta inserire le istruzioni nel ciclo While. Il componente che ho creato io funziona solo FC8 e penso anche su FC9.
Buon lavoro.
Attachments
Foto_1.jpg
Foto_1.jpg (42.57 KiB) Viewed 5133 times

claudemir
Posts: 58
Joined: Sat Nov 03, 2012 7:43 am
Has thanked: 12 times
Been thanked: 5 times
Contact:

Re: Configuration nRF24L01

Post by claudemir »

Hi Bruno, thank you very much for the reply.

I did as you explained, but it didn't work, but I'll keep trying as soon as I have time to play around, but I realized that I need to change the flow routine, so as not to overload the microcontroller.

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Configuration nRF24L01

Post by Bruno »

Hi claudemir
I did a test to verify the correct functioning in bidirectional mode and, with the component I made myself, it works. The Problem is that for the bidirectional mode, you have to use two different pipes, one to transmit and one to receive. Unfortunately with the FC7 component, it does not seem to me that there is the possibility to select more than one pipe. Anyway if you want I can attach the test files, but they only work with FC8.

best regards

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Configuration nRF24L01

Post by Bruno »

Hello everybody
As I said, I have done a test on the nRF24L01 module as a transceiver and I am attaching the files in case anyone is interested.
I used two different pipes for transmitting and receiving, but I think the same one can be used for both transmitting and receiving.
I am also attaching the new file of the component for the correction of the macro "RX_Select_Pipes", where it was reported: Pipe0 = 1 instead of 0

Best regards
Attachments
nRF24L01A.fcpx
(6.24 KiB) Downloaded 148 times
nRF24L01_TX-RX_1.0.fcfx
(15.57 KiB) Downloaded 144 times
nRF24L01_RX-TX_1.0.fcfx
(16.13 KiB) Downloaded 138 times

claudemir
Posts: 58
Joined: Sat Nov 03, 2012 7:43 am
Has thanked: 12 times
Been thanked: 5 times
Contact:

Re: Configuration nRF24L01

Post by claudemir »

Hello Bruno

I came to resume my project and saw that you modified the component, I'll check if it works, thank you for the effort to help me.

User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times
Contact:

Re: Configuration nRF24L01

Post by Bruno »

Hello claudemir
I'm glad you are continuing with your project.
Changing the component consists only of correcting the indication of pipe 0.
good job

best regards

Post Reply