element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Raspberry Pi Pirate Radio -- Episode 355
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 16 Aug 2018 7:56 PM Date Created
  • Last Updated Last Updated: 17 Aug 2018 7:24 AM
  • Views 6985 views
  • Likes 14 likes
  • Comments 53 comments

Raspberry Pi Pirate Radio -- Episode 355

image
Raspberry Pi Pirate Radio

element14 Presents  |  AirborneSurfer's VCP Profile |  Project Videos

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Matthew relives some of his youthful hacking by dabbling in a little "pirate radio" broadcasting. In this video, he builds a handheld FM transmitter from some salvaged parts and a Raspberry Pi. The Pi uses a piece of software to convert wav files to frequency-modulated signals emitted from GPIO pin 7. To improve transmission quality and prevent undesired signals, Matthew also designs and builds a band pass filter and seals everything in a shielded case.

 

 

Product NameQuantity
Buy Kit
Raspberry Pi 1 A+1Buy Now
Adafruit Powerboost 10001Buy Now
Rechargeable Battery, 3.7 V, Lithium Polymer, 1200 mAh, Connector1Buy Now

Jumper Leads

2Buy Now
100pF ceramic capacitors3Buy Now
5mm green LED1Buy Now
Toggle switch1Buy Now
Metal project enclosure1Buy Now
Micro SD card1Buy Now
  • geiger tube
  • e14presents_airbornesurfer
  • circuit
  • arduino ide
  • breadboard
  • matt eargle
  • vcp
  • arduino
  • friday_release
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • airbornesurfer
    airbornesurfer over 7 years ago in reply to inghernandez +5
    Radio has a smaller reach, maybe, but don't ever doubt it's power!
  • ninjatrent
    ninjatrent over 7 years ago +5
    My ultra low budget pi zero pifm pirate radio from a few years ago. Trent
  • shabaz
    shabaz over 7 years ago +4
    Good to see the video addressing filtering, very cool. I have fond memories of mix-tapes being blasted via small pirate radio station in a friend's room at that same college that created PiFM.. : ) It…
Parents
  • nk85
    nk85 over 5 years ago

    This looks like a fun project to do with my son. I wasn't able to open this 'exclusive to members' content until I became a member. When I did I was expecting some more detailed documentation on this project, but only saw a parts list which, while helpful, wasn't necessary. Is there any 'deeper look' documentation? Particularly regarding the low & high pass filter circuitry? I'll admit I may be overlooking the link, but any help I would appreciate.

     

    Kind regards!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • airbornesurfer
    airbornesurfer over 5 years ago in reply to nk85

    Hi Nathan!

     

    This was one of the very early projects on element14 Presents, before we really got into our groove, so to speak, and I didn't get a chance to do much follow-up regarding band pass filters. However, since you've joined element14, you do have access to one of the largest communities of electronics engineers and enthusiasts to ask questions of!

     

    Feel free to drop questions in these comments, or start a post in the RF community!

     

    These links might be helpful to get you started:

    RF (Radio Frequency)

    The specified item was not found.

    Software Defined Radio Lessons with GNU Radio

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • nk85
    nk85 over 5 years ago in reply to fmilburn

    Yes this is great Frank, a lot of good points here! One might accuse me of overthinking this project, but I have an OCD nature and you understand me with "it is interesting to try and attenuate those harmonics and get rid of undesired energy away from the design point". This is really about exploring what I can and cannot do. I obviously got the project working I just want to dabble and experiment with the filter side of things; clean it up if you will. Thanks again and until my next 'point of confusion'...

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kmikemoo
    kmikemoo over 5 years ago in reply to nk85

    nk85  Forgive me if someone else has already mentioned this and I missed it but... you're using wirewound resistors (aka inductors).  You would have gotten better filtering if you would have used carbon film.  This little adaption cleaned up my pirate radio output.

    image

    As fmilburn states, the Pi is bit banging the signal out so I opted for a simple lowpass filter to attenuate the harmonics.

     

    Thank you for bringing this back up.  I've been thinking about digging back into trying to make this work at Amateur Radio frequencies.  Wow.  I hope I didn't try this a year ago with the lowpass filter in... image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to kmikemoo

    Good point.  And the breadboard added unknown capacitance as well. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 5 years ago in reply to fmilburn

    Hi Nathan,

     

    Frank's right, he picked a better filter design actually, and both should be good enough for your scenario.

    You had the right approach, exploring website calculators, it's just that the particular input and calculator produced something that in practice was more unrealistic.

    But this is the normal way, everyone uses the website calculators or software to design filters, and exploring how things change as values are modified, or as more stages are added (for steeper roll-off). It's a cheap way of virtually experimenting without needing to buy components, but it will be only as good as the values you feed it. For instance, if you known your components have (say) 5% tolerance, then you'd have to run your formulas or simulation with the different expected values, to at least see if the effect is significant or not. Prior to online calculators, people used tables from books.

    There are free simulators like LTspice for totally custom component configurations (as opposed to calculators which will only offer defined topologies), which you could use too, but for filter design and other small building-blocks it can be better to use online calculators, since they are pre-progammed with established topologies.

    When you come to want to test it with test equipment and draw the frequency response, the NanoVNA is probably a good way (quite low cost too), I've not used it, but there's several blog posts by others experimenting with it and it looks ideal for this.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • nk85
    nk85 over 5 years ago in reply to shabaz

    Hi there, I'm back at it for a bit. Some fun with paint lol - it's been ages. Can you tell if if I'm somewhat on point here? I've attached an untampered image if you want to use it to correct my mistakes. Thanks so much!

    image

     

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    Hi Nathan,

     

    Those proto hats are nice as they allow the breadboard to be transferred directly to a more permanent solution.  I suggest putting it on a breadboard first, make sure it works, and then solder it like it was breadboarded.  There are some issues with it at the moment:

    • Rs is the supply resistance and won't be on your board
    • Rl is the load resist and is the speaker - it is not on the board either
    • Remember that the vertical strips on each side of the breadboard gutter are connected.  If wired as shown, it will be necessary to cut the trace which is unnecessary if wired differently.
    • Use the lead wires on through hole parts to minimize the soldering and no traces need be added to the back
    • The ground and +5V/+3V are already connected to the power rails
    • Run the wire to the input from the inside rail - as shown it is connected to the header that plugs into the Pi

     

    I'll try to mark up the board and post it in a bit.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    Have a look at this....

    image

    I can't remember which pin is the one bit-banging on the Pi so check that.  There are lots of ways to lay this out but note that this will minimize soldering by using the leads on the components and traces on the protoboard to make the connections.  If you decide to string it out the same way as in the schematic that is OK but I like to put the wire on top of the board, and not bridge solder or put wire on the bottom as it is easier to see the circuit and I think looks better.  But that is just personal preference.

     

    You might want to flip it 180 degrees as well depending on where the speaker wires go which would also minimize the jumper length from the Pi pin to the filter input.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • nk85
    nk85 over 5 years ago in reply to fmilburn

    Wow, I really appreciate you taking the time to highlight those points and for marking up a sketch. By 'speaker' do you mean 'antenna'? Some of the components I was needing were only available in SMD, so to over come that I was going to use an adapter, of sorts, as in the image below. Meaning that I couldn't stretch it like you set it up. I'll either have to modify my bandpass components based on availability with 'through hole' or keep the schematic as I built it and make adaptations based on what you did.

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    Doh!  Yes, I have been working on an audio amplifier :-)  Embarrassing sign of old age...

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    Which parts are the ones you can only get in SMD?  The reason I ask is that sometimes it is easy enough to solder them between 0.1" pads.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    Which parts are the ones you can only get in SMD?  The reason I ask is that sometimes it is easy enough to solder them between 0.1" pads.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • nk85
    nk85 over 5 years ago in reply to fmilburn

    I might as well put it out there. I'm hesitant because I don't want to hear that it won't work lol. But the truth will 'set me free' - or 'not spend money where I don't need to. Tell it to me straight!

     

    image

     

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    The LO201R68 inductor has a 0201 footprint - that is tiny and will be extremely difficult to hand solder.  I recommend at least 0805 if you are trying to hand solder SMD parts for the first time although 0603 aren't too bad.  The Bourns inductor has an uncommon footprint.  I see you have tightened up the band.  I suggest axial through hole where possible.  You can get most caps in SMD 0805 (your Kemet cap is 0805). 

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 5 years ago in reply to nk85

    Hi Nathan,

     

    Great to see you're really getting into filter design. As Frank says, the larger parts (0805, or, worst-case 0603) are needed. I don't think I've ever soldered 0201 (you'll also see why if you order one of those : ).

    Regarding the filter design, this looks valid, but in practice the issue you'll have is that all parts have a tolerance (maybe 2.5% or 5% etc), and if you choose to design such a narrow filter (1 MHz bandwidth at 100MHz) then there's a chance that the implemented filter could easily be off by a MHz or more. There's actually no need to implement such a narrow filter, because the output from the Pi won't (or won't have much) have anything apart from the harmonics, which are exact multiples. So, to guarantee that the filter works for your purpose, it is better to go for a more wider bandwidth filter.

    On another thread, Mike mentioned that you may not even need a bandpass filter, and a lowpass may be sufficient incidentally.

    Question on Harmonics and Filters

    There's no harm with a bandpass (provided it is of a wider bandwidth as mentioned), but according to that thread, you will likely be fine with just a lowpass filter.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • nk85
    nk85 over 5 years ago in reply to fmilburn

    I would much rather use through hole components to be sure. But as I tightened up the band, it was asking for parts that didn't come available in through hole type. Reason being, for the tighter band, was to avoid other in-use frequencies near by (above and below the 102.9). Thats been a big part of it I guess, trying not to interfere with neighbouring in-use frequencies. Also the online catalogs (like Newark, DigiKey-Key & Mouser) overwhelm me; so many choices and so many factors to each choice. I'm definitely to rookie to be left to successfully choose the parts, so I've been delegating to the tech. support from each company to satisfy the schematic. That turned into SMD parts pretty quick. I can't always get it right the first time, and I don't suspect to, but this extracurricular interest might not be for a tight budget guy. If I could only get the part selection nailed down I shouldn't have to spend and re-spend because I didn't do my home work. Knowing the reason for the tighter band, what would your shopping list look like? I'd be interested in what Shabaz puts together too!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 5 years ago in reply to nk85

    My shopping list would be for Coilcraft surface-mount inductors, mainly because they make ones with a tight tolerance (2.5 or 5%). For capacitors it would be NP0 types which I think are only surface-mount. The reason for those is that they have a tight tolerance too. Such a narrow filter needs accuracy in the design.

    Here's a sketch of what I believe is coming out of the Pi :

    The triangles represent output (it won't be triangular shaped), and the orange triangle is the desired output, however the Pi will output all three triangles in the diagram (and many more, theoretically off toward infinity). This diagram assumed the Pi software is set to broadcast at 102 MHz. The content at 306 MHz, and 510 MHz and so on, needs removing.

    The width of the triangle is 0.3 MHz (it won't be precisely that, but it is of that order, and again theoretically it goes off to infinity, but at vanishingly low output).

    According to this sketch, the Pi will output nothing between about 102.15MHz and 305.85 MHz, so a filter that has a response such as the orange curve would work well. Steep filters cost more (need more components), but in this case with the orange curve there is almost 200 MHz of space for the curve to drop off as low as possible, so a steep edge is not needed.

    Another option would be the green filter curve, and again sharp edges are not needed, because the Pi will not output anything undesired up to ~306 MHz.

    The danger with the very narrow filter (purple curve) is that due to the component tolerance, it may have shifted from 102 MHz to 101 MHz, filtering off a lot of the desired orange transmission. For this reason, very sharp narrow bandpass filters are almost never made using inductors and capacitors.

    image

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    I am away from home with only a phone - Shabaz gave a great answer though

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • nk85
    nk85 over 5 years ago in reply to shabaz

    This is a great visual Shabaz. You and Frank both have provided so much insight! I've archived this entire thread for future referencing. Can you refer any good academic books (with a beginner in mind) that speak to this field of topic(s)? I'd be lying if I said I understood everything you both posted since we started chatting. The more I pick your brains though the more I am further intrigued. I adopt a bazaar thirst sometimes for having to understand everything that is going on, even if only semi-related to the topic at hand.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to nk85

    Have a look at this link https://www.element14.com/community/people/jw0752/blog/2015/11/04/i-want-to-do-electronics-where-do-i-start

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube