WSPR transmitter shows true value of Raspberry Pi for hacking

wspr

Don’t get us wrong, we love our Raspberry Pi. But if you’re merely running a Linux image without adding a hardware hack into the mix you’re missing out on part of the power for which the platform was developed. This project is a great example of how to embrace the Raspberry Pi’s ability to deliver both low-level hardware access, and solid embedded Linux performance. [Dan Ankers] and [Threeme3] have developed a program which turns the RPi in to a WSPR transmitter. The GitHub readme shares many of the details on how it was done. But you’ll also want to dig through the .c file to see how they’re making use of the GPIO header pins.

[William Meara] sent in the tip for this. He’s been featured on Hackaday previously for his work with WSPR (Weak Signal Propagation Report). It’s an amateur radio protocol which lets you communicate over very long distances using relatively weak transmitters. The trick is to use computing power to find the signal hidden in all the noise. Be warned that you do need a HAM license to try this out, but otherwise all you need to connect to the board is a low-pass filter and an antennae.

[via SolderSmoke]

[Photo credit: WSPR hompage]

Comments

  1. asheets says:

    I will be trying this out. It’ll be a good complement to my 10meter propagation beacon.

    73 de KD0GZJ

  2. N5DUX says:

    For what it’s worth, you never need to capitalize HAM, it’s not an acronym.

  3. Ophidian says:

    As long as you are not transmitting, and I would have to check to see if this is, you do not need a ham license to use this.

    • Rob says:

      To clarify, you need a license to use the RasPi in such a fashion (the only use of the hardware hack is to transmit). You don’t need a license to use their website, view their updated maps, etc…

  4. Kelvin Mead says:

    oooo…. the ham/HAM police will get you…

  5. What’s the TX power of this device? Which ODX had been achieved with the described hack?

    vy 73 de Andreas, DF1PAW

  6. Doktor Jeep says:

    In before the posters start threatening each other over being turned in by each other on behalf of each other… oh wait

  7. irishtour07 says:

    Newb question here; could this be used to receive very weak 868Mhz signals?

    • Rob says:

      this is transmit only. you could probably listen with a good antenna and one of the SDR solutions that have been discussed so much of late.

    • static says:

      With the narrow band mandate used scanning radios that cover 868Mhz should be relatively inexpensive used & new. An outdoor antenna, and a preamp mounted at the antenna if needed. Assuming the signals you want to hear are FM, and the public safety agencies in the area went with digital technology to comply.

  8. Bill Stewart says:

    So can you do the same thing with an Arduino? (Obviously only for the 160-meter / 2 MHz band, but still.)

  9. Bill,

    I haven’t looked at this specific code, but it is basic GPIO bit banging. The question becomes one of discovering how fast your CPU can toggle the pin while still leaving enough CPU time left for performing the work of the program and other overhead. A few years ago, I did some tests on a C2000 Piccolo USB stick to determine how fast I could make it go, but only got the GPIO up to 3 MHz or so with all the CPU spent. That board’s probably not a candidate for this project.

    Try writing a simple bit toggling program and scope it or use a counter. I would feel confident if I got a frequency of at least 5 to 10x the frequency I need to work at. As a bonus, look at the waveform on a scope and you’ll see why you need a filter! :)

    US hams don’t have 136 kHz or 470 kHz allocations, so if the ‘Duino doesn’t work on 160M, it’s a no go. (But, I have a Beaglebone for another project and it will likely do the 70 cm band (430 MHz) :) )

    73 and GL,
    N1KGH

  10. Conor, M0GVZ says:

    Just a warning that you need to have an amateur license to do this. Whilst the risk of getting caught is small it is still there and the fines the FCC issue are five figure.

    Getting an amateur license isn’t all that hard or expensive to do and opens up a whole new world to investigate and play with. Amateur radio is about learning and experimenting with radio and there’s a whole host of really interesting stuff to do including communicating by bouncing signals off aircraft, rain clouds, meteors and even the moon itself. A lifetime isn’t enough to do everything possible in amateur radio.

    • Polymath says:

      There was a group at a Make Fair a while back using a plotter/cutter to make peel and stick fractal antennas. They were using a 4′ wide roll of adhesive metal foil like the kind they use in sign and graphic shops. Some were in sheets others were applied to PVC pipes. I know very little about antenna theory but they claimed to be able to shape the fractal to “tune” any antenna to any application.

  11. agtrier says:

    /me is now thinking about long-range mesh networks. Any other thoughts about this?

  12. Don says:

    I wish they’d include what they consider a suitable low-pass filter. It must be simple, and it’s something of an oversight to omit it. Perhaps they expect any qualified ham to be adept at adding that last step (selecting suitable component values), but that’s definitely not going to be the case. This project is easy enough for beginners, but they need that detail.

    • asheets says:

      This is a question I’d like to ask as well. Will a standard 1.8-30MHz TVI low-pass filter be sufficient, or does this really require individual band-pass filters for each band a user intends on transmitting on?

  13. rob says:

    Actually thr RPi was made for computing education. they only broke the GPIO pins ou because they were there and it was within the target price.

  14. alex, df8av says:

    http://artbanause.de/wspr_log/wspr_azimuth/DF8AV.png … one day transmitting with RPi

  15. Anantha Murthy says:

    does any one know how to call and run in the c file in raspberry pi websever. i have web interface for pifm transmitter and i have pifm.c code how to link it

  16. JamesP says:

    I released a fork of WsprryPi that adds several command line options that simplify using the program. Several other under-the-hood improvements have also been made.

    https://github.com/JamesP6000/WsprryPi

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

Follow

Get every new post delivered to your Inbox.

Join 93,779 other followers