How to connect NRF24L01+

Hello everyone. i am realizing a robot and i want to control it by a transmitter on my telecontrol and a receiver on my robot. i only would want to send a message from the transmitter (for example "Hello world") and i would print this message on the serial monitor of the arduino receiver. I looked for this on the web but i can't see anything on my serial monitor. please help me! thank you :slight_smile:

Please post the code that you tried

TX Code

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8 ); // CE, CSN
const byte address[6] = "00001";
void setup() {
radio.begin();
radio.openWritingPipe(address);
radio.setPALevel(RF24_PA_MIN);
radio.stopListening();
}
void loop() {
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
}

RX Code

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8 ); // CE, CSN
const byte address[6] = "00001";
void setup() {
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(0, address);
radio.setPALevel(RF24_PA_MIN);
radio.startListening();
}
void loop() {
if (radio.available()) {
char text[32] = "";
radio.read(&text, sizeof(text));
Serial.println(text);
}
}

That code does something. You failed to describe what it actually does.
You expect that code to do something, but failed to describe your expectations.

You don't really want help, I guess.

here is a good rf23 tutorial that may be of interest.

groundFungus:
here is a good rf23 tutorial that may be of interest.

OOPs .... RF24 !

...R

i don't understant. first of all how can i understand if the transmitter or the receiver is on or off? Then i would have to understand how to start the connection between antennas... can u help me step by step?

Have you looked at the tutorial linked by @groundFungus? That's as simple as it gets. Read it several times then try the examples.

lorenzobenucci:
i don't understant. first of all how can i understand if the transmitter or the receiver is on or off? Then i would have to understand how to start the connection between antennas... can u help me step by step?

As @gfvalvo has said, try the examples.

With nRF24L01+ transceivers there is no connection between transmitter and receiver except when the transmitter actually sends a message.

...R