DIY Arduino Wristwatch Walkie-Talkie

74,045

387

110

About: Graduate student at Purdue University, biomedical engineer, electronics enthusiast, educator, trying to learn a little about engineering and programming

Alrighty, I have always wanted to make a wristwatch walkie-talkie to emulate the communicators used in Mighty Morphin Power Rangers. My interest has recently been rejuvenated after finding a cool Power Rangers communicator prop and by the recent development of voice calls with smartwatches. I have been doing a bit of prototyping on-and-off for a while now and I think I have an idea of what I want to do. In this Instructable, I will show you guys how to put together a simple walkie-talkie using the nRF24L01. TMRh20 has put together a nice audio transmission library using the nRF24. I am a ways away from making a well put together device, but I got a kick out of coming this far in the process and I hope you will too.

Supplies:

Step 1: Gather Your Tools

I wanted to make this prototype relatively sleek, so I was trying to solder everything to a protoboard. That did not work out so well. I also want to submit this Instructables in the Wearables Tech Contest, which ends tonight. So, here goes plan B. There is a lot more miniaturization to come.

2 x Arduino UNO/SparkFun RedBoard (An Arduino Mega could also be used)
2 x nRF24L01 (originally purchased on eBay, but SparkFun now carries a version and I would recommend buying it from them, though I have not tried their version)
2 x electret microphone (originailly purchased on Amazon and got a few cheap mics. Decent purchase. If you want something better, I'd recommend this)
2 x NPN transistor
2 x Buttons
2 x 3.5 mm jack breakout
2 x Breadboard
6 x 10 k resistor
2 x 100 k resistor
6 x 100 nF capacitor
Assorted jumper wire in particular, you need some that are male-female for connecting the nRF24L01 to the Arduino. The nRF24L01 module is not breadboard friendly.

Tools

  1. Soldering iron
  2. Solder
  3. Flux pen
  4. Soldering wick

Step 2: Microphone Circuit

datasheet from ON SemiconductorThe microphone circuit is pretty simple really. I do not know the original source of the circuit. I happened upon it when Googling "simple microphone circuit." I included the original picture because I wanted to give credit to the original poster (whoever that may be), but I made a slight change. I removed the 0.1 uF capacitor at the collector of the transistor. This capacitor filters out DC voltages and only passes AC currents which means that we will be creating "negative" voltages. This is fine in most cases, but since we are connecting the output of the preamp to our microcontroller, we can't pass a "negative" voltage. It also allows us to hook our pre-amp circuit directly to headphones, but since we are connected it to the analog-to-digital converter of the Arduino, we can remove it.

Electret Microphone and Transistor

These electret microphones have a flexible diaphragm on the inside that moves based on the sound wave that hits them. The diaphragm is parallel to another conducting plate which creates a capacitor with variable capacitance based upon the flexing of the diaphragm and subsequently the sound pressure wave that the microphone is picking up. With the microphone connected to the circuit the way it is, it will produce an AC current at the base of the transistor based upon the sound wave hitting the microphone. The base current of the transistor is amplified and so we have an amplified sound wave that we are feeding into our microcontroller.

The pinout for the transistor is attached. The image is courtesy of the datasheet from ON Semiconductor <http://www.onsemi.com/pub_link/Collateral/2N3903-D.PDF>

Step 3: Call Button

We need a simple button circuit for calling the person on the other end of the walkie talkie. I used a simple pushbutton, 10 k resistor, and a 100 nF capacitor. The circuit is pretty straightforward. I added a capacitor to the typical button circuit that you may be familiar with. This capacitor is to help prevent "bouncing" or erratic signals from the button. You may be familiar with other ways to debounce a button, but I have found that adding the capacitor works well enough.

I have attached an interrupt to pin 3 to detect when the button is pressed. Interrupts are really nifty. They allow us to "interrupt" the code to provide very precisely timed events without deteriorating performance (if done properly).

attachInterrupt(digitalPinToInterrupt(talkButton), talk, CHANGE);

With this piece of code, we go to the "talk()" function which checks the voltage on pin 3. If the voltage is HIGH or 5 V, the nRF24L01 will switch to transmit mode (sending voice). If the voltage is LOW or 0 V, the nRF24L01 will switch to receive mode (receiving voice). The voltage on pin 3 should be HIGH when the button is pressed and LOW when the button is released. Whenever the voltage on pin 3 "CHANGES" as denoted in our "attachInterrupt" function, the "talk()" function will execute.

void talk()<br>{<br>	if (digitalRead(talkButton)) rfAudio.transmit();<br>	else rfAudio.receive();<br>}

Step 4: Add Speaker

TMRh20's RF24 Audio library hardwires the speaker outputs to pins 10 and 9 on the Arduino. You can simply connect these to a small speaker or headphones without a pre-amp. For bigger speakers you would want to use a pre-amp, or maybe for long-term use. I used some alligator clips to connect pins 10 and 9 to the 3.5 mm headphone jack. I also used SparkFun's 3.5 mm Jack Breakout which was extremely handy.

Step 5: Wireless Transmission

nRF24L01 to Arduino
1. Ground to Ground
2. Vcc to 3.3 V (NOT 5 V)
3. CE to digital pin 7
4. CSN to digital pin 8
5. SCK to digital pin 13
6. MOSI to digital pin 11
7. MISO to digital pin 12
8. IRQ to digital pin 2

I used the nRFL01 RF transceiver from Nordic Semiconductor for this project. This guy is a pretty popular hobbyist RF transceiver due to its low cost and decent range. I used the long ranged modules (with the antenna), but these are not necessary. For this step, we need to download two Arduino libraries: the RF24 and the RF24Audio library (attached). For instructions on installing 3rd party libraries for the Arduino, please refer to this tutorial at Arduino.cc. Also attached is the pinout for the nRF24L01 courtesy of Terry King and the other contributors of the ArduinoInfo.Info Wiki. Terry also has a detailed tutorial and description for the nRF24L01 that I found very helpful. Check it out. I also soldered 100 nF capacitors across Vcc and GND for stability, as recommended by Terry King in his wiki. Also notice that the nRF24L01 is a 3.3 V device, not 5 V. The other pins are 5 V tolerant, but Vcc is not.

Step 6: Arduino Code

I put together a simple code utilizing the RF24 and RF24Audio libraries. Pretty simple. Upload this code to both Arduinos. Both circuits with default to "receive" at the start of the code. Press the "call button" to transmit audio from one radio to the other. NOTE: The RF24Audio is using PWN and some other techniques to transmit audio. This produces loud background noise that is pretty irritating. I have not figured out how to get rid of that as yet. If you do, please share!

Alrighty, have fun!

You can download the walkie talkie code from its GitHub Repository or from the attachment below.

3 People Made This Project!

Recommendations

  • IoT Challenge

    IoT Challenge
  • Gardening Contest

    Gardening Contest
  • Classroom Science Contest

    Classroom Science Contest

110 Discussions

0
None
roboticsEMStudent

Question 5 weeks ago

Hey! I created the same setup as you and managed to get the receiver to send/receive. However, the speaker is not outputting any noise.

IMG_4252.jpgIMG_7301.jpgIMG_7122.jpgIMG_0487.jpgIMG_4277.jpgIMG_5524.jpgIMG_5813.jpg
1 answer
0
None
mkomp

Question 5 weeks ago

Hey! So I managed to make the circuit and everything works except the part that transmits my voice. When I press the button on either side, I hear the static noise but when I speak even with the button pressed, nothing. Is there something I'm missing?

4 answers
0
None
ohoilettmkomp

Answer 5 weeks ago

Make sure you're speaking really closely into the mic. Maybe 2 inches away.

0
None
mkompohoilett

Reply 5 weeks ago

Doesn't seem to work still. Would I have to change the transmission in the serial monitor or would it perhaps be that I have the microphone circuit connected incorrectly? Also I just realized that when the button is pressed, the speaker on the same board is turning on when it should be the other way around.

0
None
ohoilettmkomp

Reply 5 weeks ago

"Also I just realized that when the button is pressed, the speaker on the same board is turning on when it should be the other way around." --- it sounds like you just have connections mixed up, so I would re-check your wiring. You should have two separate circuits so I'm not sure how the speaker on the same board would be the one responding.

0
None
mkompohoilett

Reply 5 weeks ago

I'm using two separate boards and 1 UNO and 1 Nano. I rewired the circuit and on the nano the same problem occurs but for the Uno now, I'm getting a distorted output but same as before.

0
None
AjayM87

2 months ago

i made the circuit i got the successful op i want to implement private channels sketch how it works.. please explain.

0
None
NilanjanR2

Question 2 months ago

i have done everything correctly but the walki talki Base station 1 transmitter section not working just because having any problem with this microphone circuit which u use here but i cant found that problem unfortunately also i make a new one but still not solved and for sure to understand problem only having mic ckt i disconnect this microphone circuit from walki talki Base station 1 and then same circuit i disconnect from working 2nd walki talki transcriber Base station 2 and put microphone circuit into Base station 1 arduino i found voice transmission working into base station 1 and go for solving problem of mic ckt of base station 1 but i am unable then i make more powerful op-amp IC base microphone circuit and its working grate i like to special thanks to RJ Imagination ...........i share my ic base powerful mic ckt to help others

BEST POWERFULL   MICROPHONE CIRCUIT.jpg
1 answer
0
None
ohoilettNilanjanR2

Answer 2 months ago

Hi, I'm not entirely sure what your question is. If you're having trouble with your microphone circuit, I would be sure the connections are correct. I didn't specify the microphone circuit you're currently using, so I'm not sure what issues you may be having.

0
None
HAFIZ OMER

1 year ago

I used nrf24 with builtin antena and I tried to make its dipole antena for better range & results.

1 reply
0
None
NilanjanR2

Question 3 months ago

i didn't understand what deta transfer rate u arsine for working of NRF24l01 as we all know its work in 3 different deta rates so after following your code i didn't understand what will be transfer rate ? i didn't found such coding line where transfer rate was assigned
on the other hand is there any relation between transfer rate and range ?????? if it use less deta rate is the range decreased ?

0
None
SiddharthY2

Question 7 months ago on Step 5

I am getting an error while uploading the code

Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 10454 bytes (32%) of program storage space. Maximum is 32256 bytes.

Global variables use 442 bytes (21%) of dynamic memory, leaving 1606 bytes for local variables. Maximum is 2048 bytes.

avrdude: ser_open(): can't set com-state for "\\.\COM5"

An error occurred while uploading the sketch

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

can anyone rectify this?