![]() |
||
---|---|---|
README.md | ||
audio_format.h | ||
error_reporter.cpp | ||
error_reporter.h | ||
fm_transmitter.cbp | ||
fm_transmitter.depend | ||
fm_transmitter.layout | ||
main.cpp | ||
pcm_wave_header.h | ||
star_wars.wav | ||
stdin_reader.cpp | ||
stdin_reader.h | ||
transmitter.cpp | ||
transmitter.h | ||
wave_reader.cpp | ||
wave_reader.h |
README.md
fm_transmitter
Use Raspberry Pi as FM transmitter. Now supports both RPi 1 and RPi 2 boards.
This project uses the general clock output to produce frequency modulated radio communication. It is based on idea originaly posted here: http://icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter, but does not use DMA controller in order to distribute samples to output (clock generator),so sound quality is worse as in PiFm project and only mono transmition is available but this makes possible to run it on all kind of boards.
How to use it
To compile this project you can use Code::Blocks IDE (http://codeblocks.org/) or alternatively convert CBP file into makefile.
Then you can use it by typing:
sudo ./fm_transmitter [filename] [frequency]
Like:
sudo ./fm_transmitter star_wars.wav 100.0
You can open WAVE files.
Please keep in mind that transmitting on certain frequencies without special permissions may be illegal in your country.
New features
- works both on RPi 1 and RPi 2
- reads mono and stereo files
- based on threads