Md. Khairul Alam
Published © CC BY-NC

Raspberry Pi Based Wireless FM Microphone

A wireless microphone is a microphone without a physical cable connecting it directly to the sound recording or amplifying equipment with...

BeginnerFull instructions provided4,996
Raspberry Pi Based Wireless FM Microphone

Things used in this project

Hardware components

Raspberry Pi 2 Model B
Raspberry Pi 2 Model B
×1
USB Microphone
×1
FM Receiver
×1
Speaker with Amplifier
×1
9 Volt Battery
×1
5 Volt regulator (LM7805) or Power Bank
×1
Raspberry Pi Case
×1
A SD card with Raspbian on it (minimum 2 GB)
×1
FM Antenna (simple jumper wire works fine)
×1

Hand tools and fabrication machines

Monitor
Wi-Fi dongle or Ethernet Connection
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Code

Code snippet #1

Plain text
wget http://www.omattos.com/pifm.tar.gz

Code snippet #2

Plain text
tar xvzf pifm.tar.gz

Code snippet #3

Plain text
sudo ./pifm sound.wav 100.0 

Code snippet #4

Plain text
sudo apt-get install alsa-utils

Code snippet #5

Plain text
lsusb

Code snippet #6

Plain text
alsamixer

Code snippet #7

Plain text
arecord -fS16_LE -r 22050 -Dplughw:1,0 - | sudo ./pifm - 100.1 22050

Code snippet #8

Plain text
arecord

Code snippet #9

Plain text
-fS16_LE

Code snippet #10

Plain text
-r 22050

Code snippet #11

Plain text
-Dplughw:1,0

Code snippet #12

Plain text
sudo ./pifm - 100.1 22050

Code snippet #13

Plain text
sudo nano /etc/init.d/autostartpifm.sh

Code snippet #14

Plain text
#!/bin/bash 
cd /home/pi 
arecord -fS16_LE -r 22050 -Dplughw:1,0 - | sudo ./pifm - 100.1 22050

Code snippet #15

Plain text
sudo chmod 755 /etc/init.d/autostartpifm.sh

Code snippet #16

Plain text
sudo /etc/init.d/autostartpifm.sh start

Code snippet #17

Plain text
sudo update-rc.d autostartpifm.sh defaults

Code snippet #18

Plain text
sudo update-rc.d -f  autostartpifm.sh remove

Credits

Md. Khairul Alam

Md. Khairul Alam

64 projects • 567 followers
Developer, Maker & Hardware Hacker. Currently working as a faculty at the University of Asia Pacific, Dhaka, Bangladesh.

Comments