2.4GHz Transceiver Module for Arduino Projects

Connect your Arduino projects via 2.4GHz

SKU: TA0034


$5.45
RRP $9.95
Sold Out

Buy In Bulk & Save!
Buy 4 to 10: Pay $5.17 ea
Buy 11 to 20: Pay $4.91 ea
Buy 21 to 100: Pay $4.67 ea




Calculate Shipping

2.4GHz Transceiver Module for Arduino Projects

Connect your Arduino projects via 2.4GHz

Connect your Arduino projects wireless via 2.4GHz with this nrfl24L01 module.

Specifications:

  •    Operating Voltage: 3.3V(5V tolerant logic)
  •    Output Power: 1mW
  •    Chipset: NRF24L01
  •    Protocol:SPI
  •    Dimensions: 33 x 14 x 9mm

 

Click here to download Manual and Library Files

Manual and Library Files 

The below wiring example shows and code will have the LED light up onj the receiver when the button is pressed on the Arduino Transmitter side.

Code for Transmitter:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(9, 10); // CE, CSN         
const byte address[6] = "00001";     //Byte of array representing the address. This is the address where we will send the data. This should be same on the receiving side.
int button_pin = 2;
boolean button_state = 0;
void setup() {
pinMode(button_pin, INPUT);
radio.begin();                  //Starting the Wireless communication
radio.openWritingPipe(address); //Setting the address where we will send the data
radio.setPALevel(RF24_PA_MIN);  //You can set it as minimum or maximum depending on the distance between the transmitter and receiver.
radio.stopListening();          //This sets the module as transmitter
}
void loop()
{
button_state = digitalRead(button_pin);
if(button_state == HIGH)
{
const char text[] = "Your Button State is HIGH";
radio.write(&text, sizeof(text));                  //Sending the message to receiver
}
else
{
const char text[] = "Your Button State is LOW";
radio.write(&text, sizeof(text));                  //Sending the message to receiver 
}
radio.write(&button_state, sizeof(button_state));  //Sending the message to receiver 
delay(1000);
}


Code for Receiver

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(9, 10); // CE, CSN
const byte address[6] = "00001";
boolean button_state = 0;
int led_pin = 3;
void setup() {
pinMode(6, OUTPUT);
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(0, address);   //Setting the address at which we will receive the data
radio.setPALevel(RF24_PA_MIN);       //You can set this as minimum or maximum depending on the distance between the transmitter and receiver.
radio.startListening();              //This sets the module as receiver
}
void loop()
{
if (radio.available())              //Looking for the data.
{
char text[32] = "";                 //Saving the incoming data
radio.read(&text, sizeof(text));    //Reading the data
radio.read(&button_state, sizeof(button_state));    //Reading the data
if(button_state == HIGH)
{
digitalWrite(6, HIGH);
Serial.println(text);
}
else
{
digitalWrite(6, LOW);
Serial.println(text);}
}
delay(5);
}

3 Month Warranty

SKU TA0034
Barcode # 9351634002719
Brand iduino
Shipping Weight 0.0200kg
Shipping Width 0.140m
Shipping Height 0.020m
Shipping Length 0.090m
Shipping Cubic 0.000252000m3
Unit Of Measure ea

Be The First To Review This Product!

Help other Aus Electronics Direct users shop smarter by writing reviews for products you have purchased.

Write a product review

Others Also Bought

More From This Category