[youtube=”https://youtu.be/WDa_odxAGUU”]
Editor’s note: The Raspberry Pi’s broadcast frequency can range between 1Mhz and 250Mhz, which may interfere with government bands. We advise that you limit your transmissions to the standard FM band of 87.5MHz–108.0MHz (see Step 5) and always choose a frequency that’s not already in use, to avoid interference with licensed broadcasters.
What better way to celebrate the launch of the tiny, $5 Raspberry Pi Zero than to build a project. The Raspberry Pi Pirate Radio is one of our favorite builds here at Make:, so it was an obvious pick to port to the new board. In case you missed our first crack at Pirate Radio, try it building it while you wait for your Pi Zero to arrive. PiFM was originally written by Oliver Mattos and Oskar Weigl, and revised by Ryan Grassel.
Pirate Radio is an extremely simple build: Cut and solder one wire to the Pi. The software installation and configuration doesn’t take too long either. Here is how we shrunk down the Pirate Radio into into a Pirate Radio throwie.
TIP: For a cleaner FM signal, and to reduce any accidental broadcasts outside the FM band, build a simple bandpass filter for your Pirate Radio using just a few components
first one to incite a bomb scare wins!
Hell, that shouldn’t be hard, this violates the single, remaining law that has replaced all others, “Don’t do anything unusual.” Should be good for an arrest as soon as you’re discovered.
That applies to photographers as well.
Yep. More and more photographers getting arrested or at least hassled every day.
I can’t see how they would ever track you down if you didn’t leave identifying evidence.
Security cams practically blanket the country.
And then sue like “clock boy”!
Difficulty: not Boston (too easy)
It’s just a clock.
If you combine this with a wifi distributed network, you can create a fm network that could rival that of major broadcasters. A small solar panel and battery would allow continuous broadcasting over a long range from a single injection point. This would perfectly for major roads and highways, specially if a directional antenna is used.
That’s clever, and totally feasible in high population areas like cities and along motorways, cool idea.
Email us: nycmesh.net. We’re working on this exact thing if you would like to get involved. We are also collaborating with groups in India, Canada, California, Paraguay, Spain, and Germany.
Yeah. I would recommend not encouraging people to throw a bomb-looking device onto random steel beams in public.
Boston would love this after the Mooninite incident.
Too bad radio is dead.
Not really , at least here in Europe is used a lot.
Radio (AM and FM) is becoming soooo clogged up with adverts many are just turning the radio off.
More have gone USB and make there own playlists.
BTW: In the Chicago area there’s 5 stations that used to play 5 different eras of Rock. I will flip through the stations and 3 or 4 stations are playing the same tune and adverts. UGGGGggggg
Ya, commercials are killing the air waves and I can see why this device was sold.
NPR has always been there for me, and I enjoy listening to it where ever I happen to be in the country. I too dislike every other kind of radio station, but don’t just say radio is dead because of commercial radio.
“The Raspberry Pi’s broadcast frequency can range between 1Mhz and 250Mhz” Ok then, 1mhz=1000khz (This is on the MW radio band) Can we turn the Pi into a MW radio transmitter ?
You’d need a much bigger antenna, and I bet power output isn’t flat across that range. Plus the SNR at those frequencies could swamp low-power devices.
If you want to try, though, you could modify an amplifier like this: http://www.qsl.net/k5bcq/Kits/Kits.html (scroll down)
and play around with it on the 160m amateur band (assuming, of course, that you have the appropriate license). That’s at 1600Khz-2000Khz. While there is a low-power device regulation for the FM broadcast band, I don’t think there is a similar regulation for the AM broadcast band.
It would be putting out a frequency- modulated (FM) signal on a band set aside for amplitude-modulated (AM) broadcasts. Depending on how wide a signal this thing put out, this could potentially interfere with other broadcasts, and invite a call from “Uncle Charlie” ( aka the FCC).
On the other hand, the first generation of cordless home phones ( not cell phones) put out half of their signal ‘just above’ the AM broadcast band, at 1700 Khz. That band had since been expanded to 1710Khz, and the phones booted to 900Mhz and 2.4 Ghz. The other half of the signal was broadcast on the 49Mhz band. Both halves used frequency modulation.
Du kan tilogmed drive på med piratradio med en Raspberry Pi.
I recently made one of these with a raspberry pi a+ and I am getting some very high pitched background noise in my transmission. Any idea what could cause this?
It’s a horrible design and should not be used without a RF band filter?
This is clock noise bleed through from the R-Pi. This is NOT a transmitter… only a novelty item.
“We advise that you limit your transmissions to the standard FM band of 87.5MHz–108.0MHz”
I don’t get it. You seem to be interested in keeping things legal or at least not causing interference. That is a good thing. But… The Raspberry Pi is not deigned for radio transmission. It isn’t outputing a nice clean sine-wave on one specific frequency. It’s a sqare wave. That means, if you are transmitting on one frequency then you are also transmitting on every odd multiple of that frequency.
So.. say you found that in your area, in the FM Broadcast band 100MHz was a good, open frequency and you chose it. Great. Now you are transmitting on 300MHz, 500MHz, 700MHz, 900MHz, etc… You are interfering with military, police/fire, cellphones and babymonitors among others. The only thing that is likely to save you from getting noticed and prosecuted is the fact that the power level is so low.
On the other hand… if you add some shielding and a lowpass filter you might have a useful device. I wish more of these articles discussed actually doing that!
Indeed. An output filter between the PI and antenna is advisable for cleaner output.
You’re right, it’s a noisy transmission but quite low power, just a few hundred feet of range. To clean up the FM signal, we recommend readers build a simple bandpass filter, like this one by Mike Tranchemontagne:
https://www.youtube.com/watch?v=CuxNGWcftc8
or this one by Paul Hollings:
https://www.aareff.com/images/raspbery-pirate-filter-cir.png
Which one do you all like best? Or how would you do it? Love to hear your ideas.
This is a Very Bad Idea. These transmitters generate a lot of spurious frequencies, in addition to the primary frequency. The output is “dirty” — *totally* unfiltered. Adding even a lowpass filter on the output would improve the design. A bandpass filter around your desired frequency of operation would be even better. An example is here: http://electronics-diy.com/electronic_schematic.php?id=803
The real problem, however, is that the FCC (or your country’s radio frequency regulator) is going to take an interest if these start showing up. They do not appreciate random interfering transmitters being scattered about, because sooner or later, one will interfere with a licensed or public safety user. The consequences will not be pleasant.
This would allow a potential radio dead-spot hijack. Put in a tunnel where regular reception is lost it could take over from the silence. Anyone keen on telling everyone to vote for Donald Trump?
Only those who are getting paid to…
What we need is an easy to program interface to Wifi. Then the rasperians can invent the Pipacket Radio replacement for the internet. An independent mesh network which can serve as the beginning of one or more alternate internets.
What a terrible, stupid, asinine idea.
First you’re throwing devices that look like bombs onto places that might be hard to retrieve them from. Next you’re causing interference on multiple bands of the radio service.
What’s next? The Make article on how to build an IED?
Bombs only look like that in the movies, or if you’re a Texas school principle…stop the scare mongering!
Now the talk of RFI and bad quality transmissions are real.
Something doesn’t have to look like a real bomb to get in trouble. It just has to look like peoples’ preconceived notions of bombs.
By that definition, ANY circuit board is a bomb to the uneducated (Sadly it seems like most of the US falls into this category nowadays). Let’s use our brains people! Maybe I’m biased because I AM educated, I DO use my brain, and I design and program circuit boards for a living! RADIOS ARE NOT BOMBS!
IMPORTANT: A resonant quarter wave wire antenna for the FM band is about 30 inches long. Use 30 inches. For any frequency you set it to, use this formula for the wire length: 234 / Freq. in MHZ = length in feet . Ideally, you would add a second wire to the ground on the board and spread the two wires opposite each other. Use two wires of the above calculated length.
No Bob. the Pi is not supposed to drive a 37 ohm quarter wave load. (Assuming a flat ground plane). Half wave may be better.
You can avoid running it as a root by changing the /dev/mem to /dev/gpiomem
I can’t get it to work with the Raspberry Pi 2. Is the pin different?
Anyone know how to make this work with a raspberry pi 2?
https://github.com/markondej/fm_transmitter
ALL this chat about it looking like a bomb….
PEOPLE PLEASE! GOT TO STOP ALL THIS POLITICAL CORRECTNESS KRAP, IT’S MAKING EVERYONE NUTS!!!!
===> PC is another form of government BRAINWASHING. <===
.
Go back to being yourselves, THAT'S AMERICAN, BE AMERICAN again.
.
Next thing you know some kid will do a science project on how a kitchen blender works and they will think it's a bomb due to its shape.
SHEEEEEEEEEEEESH
.
This in North Korea could do wonders!
The article says solder to ‘pin 4’ (+5V), but the photo clearly shows it is soldered to pin 7 (GPIO4).
Please use the standard numbering of pins on these type of connectors, to prevent confusion to less experienced tinkerers and prevent blowing up GPIO ports.
https://www.raspberrypi.org/documentation/usage/gpio/
Greetings,
I need help! I am following the recipe above and using my raspberry pi 2 model B, but for some reason my pi can not broadcast the signal still – which I am using a basic fm radio and I just get static only. I followed every step on flashing the sd card with a new Raspian OS, and updated all possible updates, and the PiFm file, sound.wav, etc – but still no broadcasting. For my area, I am using a vacant fm frequency 99.1, and also 89.7 and none of these are seem to work. I do think that perhaps it has to do with the antenna is not placed on the correct GPIO pin for my model. The above instructions call for the gpio pin number 4, how ever on my model B, that pin as on pin 8. Does anyone have any suggestions.Thanks.
There are some differences in the pi 2. This works on the 2
https://github.com/markondej/fm_transmitter
Hi Don,
Thank you for the link! I looked it over, but did not find any steps on installing this in the Rasbian terminal. Is there any documentation on this? Thanks on any feed back!
Luis Ferrel
How about streaming internet radio using the Zero:
1. Install lynx using sudo apt-get lynx
2. Issue:
~$/usr/bin/lynx -accept_all_cookies -dump http://stream-tx1.redioparadise.com/mp3-128 | /usr/bin/mpg123 -4 -s -Z – | /home/pi/pifm/pifm – 88.7
Of course your may choose another streaming URL and frequency.
Enjoy
Creative use of raspi but too many ignorant budding Tesla wanna be’s could interfere with public safety coms. Few experimenters are RF engineers or even technically competent Amateur Radio Operators. Comments about use of low pass filters are positive but how many hobbiests have the test gear and knowledge to design and test appropriate RF filters. And then there is the law. Imagine these devices programmed to deliberatly jam coms. Add an amplifier stage and create a throwie RF jammer.
Ive been a pirate, a welder, chemist, and moonshiner, and designer, and know the FCC very well. Have fun. My soldering iron is now cold,
The old adage “give an inch, take a mile” is renewed.
Give an electro-nave a sine-wave, impending doom from womb
to tomb.
as known pi zero have no audio input port
so what about mod this lib to make the output of pi zero device sound on fm radio ??
I have a question, when I create the pirateRadio.sh and try to copy paste it in to the .sh file, it will not let me, or even let me save. What do I do???
Not that I’m advocating breaking the law (well maybe just a little,) let me relate the following story. When I was a kid in grade school (I’m 51 now) my parents set me up with a CB rig with an antenna on a fifty foot tower. Back then, you had to study and then take a proficiency test to get your operating certificate and call sign. Same thing for marine VHF radio. The FCC would send you a NAL (Notice of Apparent Liability) is you engaged in transgressions like not using your call sign, using it incorrectly, or, God forbid, operating with a linear amplifier, every CBers holy grail.
Today, you can tell the world on the empty airwaves to go fuck itself. The FCC is a mere shell of its former self when it comes to aberrant signals. So don’t worry about the FCC police breaking down your door. Install that transmitter. Have some fun. Just don’t mention my name. Wayne #wreses .
“When I was a kid in grade school (I’m 51 now) my parents set me up with a
CB rig with an antenna on a fifty foot tower. Back then, you had to
study and then take a proficiency test to get your operating certificate
and call sign.”
No, you didn’t.
There was NEVER an examination of any kind to secure an FCC license for operation on 27 MHz CB band.
Hey Make, I need some help with the raspberry pi 3 model. I can’t get this to work on the pi 3 for some reason I’m running raspbian 2016.03 . Any ideas as to why it won’t broadcast? My command in running is. Sudo ./pifm sound.wav 108.0 also tried 89.1 and 98.0 no luck.
The thing is that the Raspberry Pi Zero has been almost as elusive as vaporware for a while, it came out in late November and stock sold out early. I look all the time and can only find second hand units or kits for something like $25 bucks, add a battery holder, batteries, and USB cable and it comes out to something more like a “$35 Pirate Radio Throwie”…
What a childish (not to say illegal) piece of crap. That’s just what a bunch of immature “script kiddie” level spoiled brats would do. Make has certainly degenerated over the years.
Actually, here in the US, as long as the signal strength is low, it’s perfectly legal. If not, those little devices that let you play your iPod across the FM radio in your car would be illegal.
I have a friend who is planning to set up something like this at a big event that will allow them to have daily announcements that people can listen to via radio without the intrusiveness of a PA system.
Got one working with the Raspberry Pi 2 Model B. I used the PiFm Rds(https://github.com/ChristopheJacquet/PiFmRds) library I used this command
sox -t wav /home/pi/Music_Wav/* -treble +7 -repeat 50 -t wav - | sudo ./pi_fm_rds -freq 88.5 -audio - -ps "Donovan's Radio Station" -rt "Have fun this is just for us young people:)"
and it works flawlessly. I only have one gripe, and that would be that it only accepts Wav music files so you will need to convert your whole audio library over or use an external music player and usb audio card.I did an antenna with copper wire and followed the tutorial, but it doesn’t works. Please help!
Couldnt get pifm to work on my piZero so used this https://github.com/markondej/fm_transmitter instead which works.
For some reason my Song loops every second, can someone help
does the pi zero work with the old pi radio image from the old radio project?
I followed the guide, but I can’t get it it to run on boot. It runs from command line perfectly and I receive it on my radio. I have the latest version of raspbian (Jessie 4.4) and a Pi Zero version 1.3.
so im having and issue Ive done everything by the book. but my pi zero will not start the pifm on boot what im i doing wrong. it works fine if i type in everything to launch the song to a station. ive mad the pirateRadio.sh file and i have had to add lsb tags to get it to make it threw the update rc.d process and still will not launch on boot
Has anyone found a solution to this?
Sorry, but this is a pretty dumb and potentially dangerous idea. There is already way too much clutter in the radio spectrum. Unfortunately, the frequency range of the ‘throwie’ covers police, fire and EMS bands, aircraft bands and amateur radio bands as well as the commercial broadcast bands mentioned. In the wrong place and wrong time emissions from the device could result in a danger to life and property.
And, without the band pass filter, there is significant spurious radiation.
I tried this build out on an unused frequency and am very surprised at the results. Yes, it’s noisy, but it works. My main point of contention was with the startup script code itself—is there any way that Make could enable codeblocks so indenting, etc., could be seen and understood?
I ended up looking at this web page’s site source, where the properly-indented code showed up in all its glory.
I was able to redo the entire project and get it to start broadcasting on boot but then it crashes and all i get is a looping sound on my radio. what am i doing wrong?
Hi, one year ago i made this fm transmitter, but since then, im not able to make it run on boot. Can anyone help me please?
Thanks
It works for me, but after an reboot it will play just a summing sound. like “buuuuuuuuu”. i need to reinstall the programm to get it working.
Any good commercial FM radio bandpass filter modules for the pi 3?