Initial Implementation (7/26/16)

 

After setting up the Raspberry Pi (RPI) and installing the Raspbian Operating System, I proceeded to run the basic PiFM hack by following the guidelines from here: https://www.maketecheasier.com/run-radio-station-with-raspberry-pi/

Unfortunately, this did not work.  After checking the code, and making sure I had copied it correctly, I decided to look for possible solutions.  That is when I discovered that the initial hack by Mattos & Weigl was meant for the Raspberry Pi and Raspberry Pi 1, only.  I was using a Raspberry Pi 3.

I found code that was written for the PiFM to work in any Raspberry Pi platform from this tutorial video by Tony Tascioglu:https://youtu.be/32Bo0rvc_L0

For some reason, GitHub.com on the web browser of the RPI was not able to offer me the option to download the zip file (the “download button” did not work), so I was forced to look for an alternative to get the zip file on the RPI.

These are the step-by-step instructions to get the necessary files on the Raspberry Pi:

  1. On your desktop, go to https://github.com/markondej/fm_transmitter and download the zip file
  2. Copy the downloaded zip file (fm_transmitter-master.zip) onto a flash card/thumb drive or email it to you
  3. On the RPI, insert the flash card/thumb drive or open the email with the attachment, and extract the zip file to a new folder, FMTransmitter, on the RPI file directory
  4. Move all files inside the folder “fm_transmitter-master” outside that folder, but inside “FMTransmitter”, and then, delete the emptied “fm_transmitter-master” folder

The next step is to “compile” the newly created files.  For this, do the following:

  1. Open up the LXTerminal on the RPI
  2. Type: sudo apt-get install make gcc g++
  3. Type: cd FMTransmiter
  4. Type: make

Once the files have been compiled using Make, you will see that the “fm_transmitter” is now a program (represented by an icon inside the FMTransmitter folder).  Now, we can begin broadcasting our FM signal.  To do this, the video tutorial said to type:./fm_transmitter star_wars.wav 88.7 (this is the broadcast frequency I used), but this did not work for me.  I found that typing the following did the trick:  sudo ./fm_transmitter -f 88.7 -r star_wars.wav

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s