Two-Way Audio Devices (static "walkie Talkies")

by LimitOS in Circuits > Raspberry Pi

381 Views, 4 Favorites, 0 Comments

Two-Way Audio Devices (static "walkie Talkies")

completed.jpg

What you'll be building

This tutorial teaches you how to build two-way audio devices that can be placed in remote locations. By pushing a button, one person can talk to another via the internet and vice versa. You'll need to repeat steps 1-5 twice so that you end up with two audio devices.

Requirements and Materials

Two Raspberry Pis connected to the internet

Raspberry Pi OS (Buster)

Two USB microphones

Two USB speakers

Two boxes to house the components

Circuit materials: push button, breadboard, wires, 10k ohm resistor

Step 1: Set Up the Circuit

two_way_audio_circuit-7a9b320588aa5bc37b6af22c0406df60b209f9970d78854726977430b487de98.png

Connect the button to GPIO pin 17, and ground it using a 10k ohm resistor.

Step 2: Set Up Speaker and Microphone

inside_box-d4f7c9a2e55fcf9a447ccc366fe2ecaa47686e5216d528d266c4776dee200512.jpg

Connect the USB speaker and microphone, and make holes in the box for the speaker, microphone, power cable, and push button.

Step 3: Run LimitOS on the Raspberry Pi

limitos_run-8fcc14ec682687523f50dee1c4c8b67b0eb62ababa2ba26469eb0f1081862abe.gif

LimitOS runs alongside your existing operating system, and can be run via:

curl -sS https://limitos.com/run | bash

Follow the on-screen instructions to register the device afterwards.

Step 4: Configure Audio

audio_settings-fa6afdc3fdcc15d13b71da5502fac5de939ca92c77f3f322a6146ddd2c85db11.png

Using the Raspberry Pi OS user interface, change the audio output to the USB device via the speaker icon in the top right.

Then, using the LimitOS web interface:

  • navigate to the device and click "Edit Device"
  • in the "Broadcast to device" field, select the opposite audio device so that audio is output remotely
  • check the "Enable two-way audio?" checkbox
  • set the "Audio start pin" as pin 17
  • click "Update Device" to save

Step 5: Test It Out

Make sure you've repeated steps 1-5 above for each device. Then, by holding down the button on one device, you should be able to speak in the microphone and hear it from the other device. You can then move the devices to remote locations with WiFi, and communicate remotely.