GithubHelp home page GithubHelp logo

dinsmoor / pistation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codyjheiser/pistation

0.0 2.0 0.0 112 KB

Transmit audio files (.wav or .mp3) across the FM band, listen to your music across the room!

License: GNU General Public License v3.0

Python 84.21% Shell 15.79%

pistation's Introduction

PiStation

Transmit audio files (.wav or .mp3) across the FM band, listen to your music anywhere near you!


Instructions

Using the program is simple!
Install PiFM and other required software by running the PiStationInstall.py sudo python ./PiStationInstall.py

Proceed to run the file PiStation2 sudo python ./PiStation2.py

After the file is up and running you will be asked to type in the song name (filename), be sure you DO NOT type in the path, you only need to type in the filename (with the extension MP3 or WAV).

Then type in the station that you would like it to play on (frequency), after that you will hear you song over the radio on that frequency.


About the Program and What it Does

The code used in the program is ffmpeg -i input.mp3 -f s16le -ar 22.05k -ac 1 - | sudo ./pifm - 99.9 for MP3's and sudo ./pifm left_right.wav 103.3 22050 stereo for WAV files. The program will automatically decide weather to play it as a WAV or MP3 file. As of now, these are the only two files supported.

WAV files must be in the following format: 16 bit (mono or stereo) 22050 hz (generaly these are fine as-is, but you may need to convert it if it doesn't mach the required specs.) Anything below 16 bits will work as well.

The Raspberry Pi can handle anywhere from 1MHz to 250MHz, however I limited it in the code to 87.1 and 108.1 beacuse generaly radio bands don't go past these numbers. There is also majorly restricted frequencies in there like, 121.5 and 243.0 (military aircraft). You can remove this block by commenting out the code.

The PiStation allows you to use the code (from icrobotics link below) in a more simple way, simply load your music onto your Pi, and play!

http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter


I apreciate all the help, and encourage updates to this program! I still have a lot to learn, so any help would be awesome!

Have fun with your Pi!

pistation's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.