ZenoModiff
Published © LGPL

Arduino NRF24LO1 Communication

Hey guys today lets see how to interface NRF24L01 Module with arduino

IntermediateFull instructions provided572
Arduino NRF24LO1 Communication

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
nRF24 Module (Generic)
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Schematics

The Reciever & Transmitter Do Have The Same Circuit

Code

Arduino Code

C/C++
Arduino NRF Sender Code
//feel free to contact
//sreeramaj53@gmail.com
//www.youtube.com/ZenoModiff

#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.stopListening();
}
void loop()
{

  const char text[] = "Hello iam NRF24LO1";
  radio.write(&text, sizeof(text));
  
  delay(1000);
}

Arduino Code

C/C++
Arduino NRF Reciever Code
//feel free to contact
//sreeramaj53@gmail.com
//www.youtube.com/ZenoModiff

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(7, 8);  

const byte address[6] = "00001";

void setup()
{
  while (!Serial);
    Serial.begin(9600);
  
  radio.begin();
  
  radio.openReadingPipe(0, address);
  
  radio.startListening();
}

void loop()
{

  if (radio.available())
  {
    char text[32] = {0};
    radio.read(&text, sizeof(text));
    Serial.println(text);
  }
}

Credits

ZenoModiff
17 projects • 10 followers

Comments