This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I broadcast text message on serial monitor using nRF24L01 and Arduinno Uno?

Hello guys,

I am working on the project where I am making a network4 nrf24l01 transceivers, such that one can broadcast the text message from one transceiver at the base station to all the other transceivers connected to it. After receiving the message, the transceiver should reply back to the base station in same manner. I am using 4 nrf24l01 and 4 Arduino Uno boards.

I need your some guidance in the coding. What should be the code at base station and what could be the code at other node? Please help..It’s urgent!!! Thank you

Parents
  • @Divyesh: Have you looked at this documentation ?

    I assume you have 1 nRF24L01+ acts as the host and 3 act as client. What you can do is to set the RX address (RADDR) of the 3 client to be the same. Then you can use the host to send a packet to this 3 client (set TADDR on the host = RADDR on the clients).

    You need to set the client in RX mode first to wait for packet from host. All listen on same channel.

    The host, after sending the packet should switch to RXmode.

    The client after receiving a packet from host will have to switch to TXmode and send the packet to the address of the host (RADDR on the host). You can add a random delay before the client starts to transmit to avoid 3 of them sending packet at the same time if you want to use the same channel. Or you can config so that each of them transmit on different channel. The Host will have to listen on each channel one by one with prefined period.

  • Hello Hung Bui,

    Thank you very much for your reply. I understood what you are trying to explain. I am using arduino uno boards. I was searching for the examples related to my scenarios and I found below example. I have shared the link.

    maniacbug.github.io/.../starping_relay_8pde-example.html

    Please check this example and let me know what I can change in this example to achieve above scenario?

    Thank you

Reply Children
No Data
Related