RF is good and the NRF24 series offers a cheap way to get into them. there are alternatives to this module and ones that work on different frequencies. the nrf24 series is 2.4ghz so if you have alot of devices on that frequency look for an alternative. most cordless phones, wifi, av senders etc work on this frequency so expect some interference.
I have seen a base tranciever for a mere $2 on ebay. its the wiring it up and finding a microcontroller to run it that is the expensive part.
Hai, I can see that you have some knowledge about the nrf24.
I have two with PA and LNA, i have been using 10 different kinds of code. But they cant seem to connect to each other. My arduino's give out 50 ma. This is way more than the nrf's use at LOW power which i set it at.
I also have a 10 uf capacitor across the 3.3 v and ground as an extra power resevoir.
I have used any kind of code possible so that cant be the problem. All of these used the same library.
This is the easiest code that i used.
TRANSMIT
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8);
const byte rxAddr[6] = "00001";
void setup()
{
radio.begin();
radio.setRetries(15, 15);
radio.openWritingPipe(rxAddr);
radio.stopListening();
}
void loop()
{
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
RECEIVE
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(7, 8);
const byte rxAddr[6] = "00001";
void setup()
{
while (!Serial);
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(0, rxAddr);
radio.startListening();
}
void loop()
{
if (radio.available())
{
char text[32] = {0};
radio.read(&text, sizeof(text));
Serial.println(text);
}
Serial.println("Nothin here");
}
PLEASE help me, i am lost.
if you need any more info, i am happy to give it to you.