Raspberry Pi Station

Source: Internet
Author: User

Haha, you listen to the right!

Using the Raspberry Pi can make a radio station, let your radio station to put their favorite music, is so capricious!

?

First, a bunch of geniuses at Imperial College in the UK (for the school that took the big 3D glasses a while ago) wrote a program that could send broadcasts on the Raspberry Pi (PIFM)

However, there is a limit: WAV files need to be played, while sampling and conversion using 16-bit and 22050Hz and mono channels

Simply put, you have to convert the various sound files into the required format before you can play them out.

?

However, the Internet is still very powerful, and a man himself will ffmpeg+pifm together =pifmplayer

That is to say, you are casually (and not so casually) what sound files are put into the program, which helps you (or tries to help you) convert to the desired format, and then plays it out with your chosen radio frequency.

?

Gossip less, open dry!

#Download Pifmplay

wget Https://github.com/Mikael-Jakhelln/PiFMPlay/archive/master.zip

#Unzip it; Unzip Master.zip; Move the ' pifmplay ' folder to/home/pi:

MV Pifmplay-master/pifmplay ~/pifmplay

#Go into the Pifmplay folder

CD ~/pifmplay

#Then Add execution permissions:

sudo chmod +x pifm pifmplay

#Download & Install Media Converters

sudo apt-get install FFmpeg sox Libsox-fmt-all

#Now Edit you Users bash config file

Nano ~/.BASHRC

#type this at the bottom of the file

Export path= $PATH: ~/pifmplay

#restart the Pi

sudo reboot

#Attach a 30cm wire-to-GPIO4 (that ' s Pin-7)

?

#Turn your fm-radio to Frequency "87.6", start fm-broadcast with

Pifmplay ~/pifmplay/starwars.wav 87.6

#For folder batch play, start with

Pifmplay ~/pifmplay 87.0

?

Connected to a DuPont line, the launch distance can reach 100m+, but the ability to wear the wall is not (of course, too strong estimate someone to check your home water meter luo) ~ ~ ~

?

Andy Yang

2015.10.24

Raspberry Pi Station

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.