hi there,
i m working on a project where i need to send data from one rf transceiver to another which is in the same room. i m using the nRF24L01+ rf transceiver with antenna chip from sparkfun.
for the sending end i have a arduino pro mini (5v) interfaced with a nRF24L01+, and for the receiving end i have arduino mega interfaced with a nRF24L01+.
i have found a code someone else had used for the same modules im using, but i have some queries.
how do i check if the data is being sent, without the receiving side? will the transceiver ligh up when it is sending data or something?
cos wen i fixed up the whole circuit and stuff, i tried sending but there is no sign of whether the data is being sent or not.
i tried opening up the serial monitor and observing if something comes out. but nothing can be seen..
please do help me!!! thank you...
this is the code fr the transmittiting end:
#include <Spi.h>
#include <mirf.h>
#include <nRF24L01.h>
void setup(){
Serial.begin(9600);
Mirf.init();
Mirf.setRADDR((byte *)"clie1");
Mirf.config();
Mirf.payload = sizeof(int);
}
void loop(){
//byte data[Mirf.payload];
Mirf.setTADDR((byte *)"serv1");
Mirf.send((byte *)"hello");
while(Mirf.isSending()){
}
Serial.println("Finished sending");
delay(10);
}