Friday, July 11, 2014

PiFm, turning the Raspberry Pi Into an FM Transmitter

The project PiFm turn the Raspberry Pi Into an FM Transmitter, by switching GPIO to generate FM radio signal at 103.3Mhz (default) without extra hardware.

To install PiFm, download and extract the module from

Run the code to play the wav in Python:
$ sudo python
>>> import PiFm
>>> PiFm.play_sound("sound.wav")

This below video show how it run, tune your FM radio to 103.3Mhz to listen. In this example, no antenna used. The FM signal emit from the pin on Raspberry Pi board. remark: the background noise recorded by camera from environment, not from radio.

To achieve better performance, connect a 20cm or so plain wire to GPIO 4 (which is pin 7 on header P1) to act as an antenna.

No comments: