Long Range Arduino Based Walkie Talkie using nRF24L01

17,407 views

In this tutorial, we are making a Long-Range Arduino Based Walkie Talkie using nRF24L01. although this is the era of 5G and smartphones and old technologies are not that commonly used but where short-distance, remote and low-cost communication is required these walkie talkie systems are more convenient than phones or other communication devices. The walkie talkie that we are making in this project can communicate among 6 people at a time and has a long-range. You can make short-range systems too by modifying this circuit.

This circuit is using an nRF24L01 RF module as its main component. This module has a lot of advantages over a digital communication medium, it does not overlap or disturb other walkie talkie police and railway walkie-talkie. It consumes low power and it can communicate with six other nRF24L01 modules at one time when they are in the receiving state. The other important component or the processor of this circuit is Arduino Uno.

Hardware Required

S.noComponentValueQty
1.Li-ion battery5V2
2.Battery charging and protection module2
3.Arduinoany1
4.RF moduleNRF24L01 +PA+LNA
with external 2DB antenna
2
5.Audio Amplifier2
6.Microphone1
7.DC to DC step-up booster module2
8.voltage regulator moduleAMS1117 3.3V1
9.LED2
10.Resistor470 ohms, 1K2, 2
12.Capacitor104PF, 100NF2, 2
14.Loudspeaker4-inch2
15.Pushbutton2

Circuit Diagram

Working Explanation and Construction

This circuit is made on a PCB you can either purchase it or make a custom one by using an Arduino Atmega328p board. Put the Atmega 328 IC on the programmer, flash it, and then upload the code on it. Then add 16MHz crystal on Atmega328 IC. in this way you can make your custom PCB. The next step is to connect the NRFL24L01 modules as shown in the circuit diagram, the operating voltage of this circuit is 1.9-3.6V and a 100nF capacitor is used for current stability. Since the power supply is providing a voltage of 5 volts, you will have to drop it from 5 to 3.3V by using a 3.3V voltage regulator.

Now make a connection of the microcontroller digital pin no. 9 and 10 to the audio amplifier. We are using an audio amplifier because by default the Arduino’s output is very low. This amplifier needs 3.7-5V to operate and it gets its input voltage from the Arduino as shown in the circuit diagram.

The PTT switch is made using a simple push-button and a 0.1uF/104PF capacitor to prevent erratic signals when the switch is pressed. Arduino board receives an Arduino interrupt on its D3 pin. if the o/p of this pin is low then the walkie-talkie is in receiving, and when it is high it switched the walkie talkie into a transmitted mode so that you can send a voice signal.

After building the circuit enclose it in a small suitable enclosure. This circuit is compact so it can be easily used as a walkie-talkie.

Arduino Code

#include <RF24.h>
#include <SPI.h>
#include <RF24Audio.h>
#include "printf.h"    // General includes for radio and audio lib
RF24 radio(7,8);    // Set radio up using pins 7 (CE) 8 (CS)
RF24Audio rfAudio(radio,0); // Set up the audio using the radio, and set to radio number 0
int talkButton = 3;
void setup() {      
  Serial.begin(115200);
  printf_begin();
  radio.begin();
  radio.printDetails();
  rfAudio.begin();
  pinMode(talkButton, INPUT);
  //sets interrupt to check for button talk abutton press
  attachInterrupt(digitalPinToInterrupt(talkButton), talk, CHANGE);
  //sets the default state for each module to receiver
  rfAudio.receive();
}
//void talk()
//Called in response to interrupt. Checks the state of the button.
//If the button is pressed (and held) enters transmit mode to send
//audio. If button is release, enters receive mode to listen.
void talk()
{
  if (digitalRead(talkButton)) rfAudio.transmit();
  else rfAudio.receive();
}
void loop()
{
}

Applications and Uses

  • Construction Workers
  • Smart helmets