A Raspberry Pi as a WSPR beacon

Thanks to the Southgate Amateur Radio news, I’ve just seen that Guido, PE1NNZ has turned a Raspberry Pi into a 10mW WSPR transmitter that works up to 250MHz. Just a low pass filter and an antenna are required in addition to the Raspberry Pi and the software.

The code is available here

The Readme file at Github says the following:

Makes a very simple WSPR beacon from your RasberryPi by connecting GPIO

 port to Antanna (and LPF), operates on LF, MF, HF and VHF bands from
 0 to 250 MHz.

Credits:
  Credits goes to Oliver Mattos and Oskar Weigl who implemented PiFM [1]
  based on the idea of exploiting RPi DPLL as FM transmitter. Dan MD1CLV
  combined this effort with WSPR encoding algorithm from F8CHK, resulting
  in WsprryPi a WSPR beacon for LF and MF bands. Guido PE1NNZ extended
  this effort with DMA based PWM modulation of fractional divider that was
  part of PiFM, allowing to operate the WSPR beacon also on HF and VHF bands.

  [1] PiFM code from http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter

To use:
  In order to transmit legally, a HAM Radio License is required for running
  this experiment. The output is a square wave so a low pass filter is REQUIRED.
  Connect a low-pass filter to GPIO4 (GPCLK0) and Ground pins on your
  Raspberry Pi, connect an antenna to the LPF. The GPIO4 and GND pins can be
  found on header P1 pin 7 and 9 respectively, the pin closest to P1 label is
  pin 1 and its  3rd and 4th neighbour is pin 7 and 9 respectively, see this
  link for pin layout: http://elinux.org/RPi_Low-level_peripherals
  The expected power output is 10mW (+10dBm) in a 50 Ohm load. This looks
  neglible, but when connected to a simple dipole antenna this may result in
  reception reports ranging up to several thousands of kilometers.

  This software is using system time to determine the start of a WSPR
  transmissions, so keep the system time synchronised within 1sec precision,
  i.e. use NTP network time synchronisation or set time manually with date
  command. Reception reports are logged on Weak Signal Propagation Reporter
  Network: http://wsprnet.org/drupal/wsprnet/spots

  As the WSPR band is only 200 Hz wide, some frequency calibration may be needed
  to ensure that the transmission is done within the WSPR band. You can correct
  the frequency error manually in the command line or adjust CAL_PLL_CLK in the
  code.

Usage:
  sudo ./wspr <callsign> <locator> <power in dBm> <frequency in Hz>
        e.g.: sudo ./wspr K1JT FN20 10 7040074

  WSPR is used on the following frequencies (local restriction may apply):
     LF   137400 – 137600
     MF   475600 – 475800
    160m  1838000 – 1838200
     80m  3594000 – 3594200
     60m  5288600 – 5288800
     40m  7040000 – 7040200
     30m  10140100 – 10140300
     20m  14097000 – 14097200
     17m  18106000 – 18106200
     15m  21096000 – 21096200
     12m  24926000 – 24926200
     10m  28126000 – 28126200
      6m  50294400 – 50294600
      4m  70092400 – 70092600
      2m  144490400 -144490600

Compile:
  gcc -lm -std=c99 wspr.c -owspr
 
This looks amazing! Congratulations to Guido and also to Dan Ankers, MD1CLV whose work led to Guido’s enhancements.

Tim Kirby, G4VXE, is a regular contributor to AmateurRadio.com and writes from Oxfordshire, England. Contact him at [email protected].

Gotta love those senior moment!!

On Tuesday of this week Julie and had plans to go out for a nice dinner. When I got home from work it was time to the make lunches for the next day, have a shower and feed the cat. To have all this done before Julie got home meant we could just head out for dinner once she got in.  It was a nice dinner and we took our time relaxing and talking. It was shaping up to be a great evening until we came home and our neighbour called out to us..."I think I hear smoke alarms going off in your place" As we got to the front door I could hear them and then it HIT ME...one of the steps to making our lunches was to boil some eggs!!! I forgot 6 eggs that were on the stove cooking on hi. The house was full of smoke, no fire, cat was hiding under the bed and all six eggs exploded and were EVERYWHERE!!!
I will say Julie was very understanding but I was very very upset with myself!! So no radio at all for the next week or so as I have to do some major cleaning! Our insurance has a deductible of 1,000 and I figure I can get things back to normal for 1/8 that cost. Lesson learned I am now looking for an automatic egg steamer that cooks the eggs and then turns off on it's one if I happen to have another senior moment.

Mike Weir, VE9KK, is a regular contributor to AmateurRadio.com and writes from New Brunswick, Canada. Contact him at [email protected].

Handiham World for 20 March 2013


Pat Tice, WA0TDA, is the manager of HANDI-HAM and a regular contributor to AmateurRadio.com. Contact him at [email protected].

Show Notes #102

Episode #102 Audio (Listen Now):

Introduction:

  • Rob from the MintCast podcast is on the show tonight filling in for the nomadic and enigmatic Richard.

Announcements:

  • The 2013 Dayton Hamvention is coming up May 17-19 in Dayton, Ohio. We are still in need of donations. Please keep ‘em coming.
  • The Wouff Hong Podcast, member of the Black Sparrow Media Network, have released their first episode. If you don’t subscribe to the BSM aggregate feed, you can find them at the link above. Good episode, and they mention LHS.
  • Rob and Russ use BeyondPod on Android as a podcast manager.
  • Roy, KK4ATD, will be in Atlanta at RARSfest as an ambassador for LHS. If you’re anywhere near Raleigh, NC on Saturday, March 30, 2013, stop by and say hello. [LHS will NOT be present at RARSfest this year. Sorry for any confusion. -Ed]
  • The sponsored ads in the right column of the LHS web site actually make us a not insignificant amount of money when you click on them. If you want to help us out without donating your own money, please click on an ad when you visit our site. We get money in our donation box, and you don’t lighten your own pockets. Thank you!

Topics:

  • Visit KE8P’s blog. One of the articles documents using a Raspberry Pi as a temperature monitor.
  • KK4ATD has developed Hamux, a 64-bit, CentOS-based Linux distribution with ham radio applications. This is a “live” CD image, so you can boot it from CD and try it before installing. At 698MB, it just barely fits on a CD.
  • Our hosts embark on a brief digression about Douglas Adams.
  • Slow Scan TV (SSTV)SSTV is a method of sending still images using radio frequencies on the HF bands. FSTV (fast-scan TV), which is typically done on VHF and UHF frequencies at distances up to a couple hundred miles, is similar to broadcast TV.In order to operate SSTV, you’ll need a radio (and a license to transmit), a computer, a sound card interface to connect them to each other, and software. For Linux, we have QSSTV. The current version is 7.1.7, released on January 4, 2012. It is compatible with the Ham Radio Control Libraries (hamlib) for controlling the radio.Russ gives a brief overview of the various configuration options and interface of QSSTV.
  • Rob is not a ham, but has considered obtaining his license. Unfortunately, he lives in an area with deed restrictions that prohibit outside antennas. What are his options? There are several resources on the web for ham operation with antenna restrictions. Some of these are:

    Though in Rob’s case, with aluminum foil-lined roof tiles, attic antennas are not likely to work very well.

    Other possibilities: using EchoLink, IRLP, operating mobile or portable. Perhaps tossing up a temporary wire antenna in the back yard, operate, then take it down.

    Rob and Russ discuss the various options, potential for TVI, and VEC testing opportunities.

Feedback:

  • David, KE0AZ, writes to say he’s sorry to see Richard to go, but will continue to listen.
  • Frank, K4FMH, would like to see more technical content in future episodes.
  • W. Lynn writes to say that the Belton HamExpo will be April 20, 2013 in Belton, TX.
  • Gary, KE2YK, will miss Richard, too. He also appreciates the mention of Linux Mint 14 as it reminded him to give it a try.
  • Pete, VE2XPL and the host of the wAVEgUIDES podcast, sends his congratulations on 100 episodes and best wishes for Richard.
  • Gary, KE2YK, also sent comments about episode 101, including a link to his review of the Raspberry Pi.
  • Brian, WB4ES, sends his thanks for Richard’s introduction to JT-75 screencast. (Available to subscribers.)
  • There are more comments on LHS Facebook Page.

Contact Info:

Music:

  • “Insanity” by Mad Mav from the album Black Sheep, courtesy of Jamendo.
  • “Strike the End” by Convergence from the album Points of View, courtesy of Jamendo.

Russ Woodman, K5TUX, co-hosts the Linux in the Ham Shack podcast which is available for download in both MP3 and OGG audio format. Contact him at [email protected].

Getting started with PSK

A reader from North Carolina, USA, wrote to me and asked the following:

A question: I am a just a general class ham. I would like to know exactly what it takes to operate on PSK. I have a TS140s, a key and a dipole at 50′. I also have a Compaq laptop computer with a sound card. Can someone tell me what I need to buy — not just in generalities — to help me get up and running with this mode?

Would those of us with some experience with PSK (definitely not me!) take a shot at answering him? If so, please reply in comments. Thanks in advance!


Matt Thomas, W1MST, is the managing editor of AmateurRadio.com. Contact him at [email protected].

Are you married ……..?

The other day, I received a request from Terry WA0ITP, to post the monthly Run For the Bacon announcements on the Four States QRP Group e-mail reflector.  It would seem that quite a few “Four Stater’s” have built Pig Rigs and want to be kept abreast of when RFTB is held.  So I went about the process of joining the Yahoo group and subscribing to the e-mail reflector.  I was approved and started receiving e-mails yesterday.

Immediately, one hit my eye.  It’s entitled “QRP till death do you part?”, and it was written by Gust ON6KE

The premise of the post is, that in addition to all your QRP only gear, you own a 100 Watt rig, or perhaps a barefoot rig and an amplifier.  At the same time, a DXpedition is underway to Tromelin, Peter I, Kerguelen, or some other very exotic place that has not been on the air for years (and perhaps might not be on again for many more years). If you have never worked that entity before, do you:

 1)      Try to work them QRP until they’re just about ready to pack their bags, and then if unsuccessful, go all out with everything you have?

2)      Try to work them QRP for a few days or a week perhaps, and then if unsuccessful, go QRO (well before the departure time draws near)?

Gust ends his post by saying, “I guess this question is about how “fanatic” one is about QRP”.

Interesting question to say the least! In my head, I guess I would add another possibility:

3)      Try to work them QRO and get them in the log and THEN try to work them QRP at another time, before they leave?

Personally, my primary interest (my passion, if you will) in Amateur Radio is QRP and CW.  If you’ve read this blog for any amount of time, you know that. I have been interested in and have dabbled in QRP since I was licensed as a Novice in 1978. I joined QRP ARCI back in 1979, back when QRP was considered to be 100 Watts or less.  I became a “QRP only” station, under the current understanding of the term, in 2003.  From 2003 to 2013 (Wow, 10 years!), I have not had a rig that was capable of going past QRP levels (OK, my K2 could go up to about 15-20 Watts – that’s technically not QRP, but it ain’t QRO, either!).

But since my Novice days, I have also been drawn to working DX.  I’ve worked my share of DX with 5 Watts or less, enough to earn the ARRL’s QRP DXCC award.  There have been many DXCC entities where the only way I have worked them is with QRP, but I’ve also had many, many disappointments.  There have been many times during that ten year period where I limited myself to 5 Watts only, where I failed to get a DX station or a DXpedition in the log, even though I tried until the cows came home.

I would consider myself to be fan and aficionado of QRP, but not a foaming-at-the-mouth QRP “fanatic”, where it’s QRP and CW to the exclusion of everything else.  I am enough of a DXer NOT to marry myself to the idea that using something more than 5 Watts is heresy.  That’s why I went and sold my K2, so that I could purchase the KPA3, 100 Watt module for my K3.  For the first time in a long time, I have been able to increase my power in order to work DXCC entities that I have never worked before.  This just bore fruit a few weeks ago when I worked Egypt SU9VB for the very first time in my Amateur Radio career, and I did it using 85 Watts.

And that’s why I would subscribe to possibility number 3, above.  For instance, if I’m fortunate enough to hear Spratly loud enough to even attempt to work them before they leave?  Like any other DXer, I am going to be there with my 100 Watts trying to break that pileup and get them in the log, Baby!  But once they’re in there –  I just might try to work them again (not the same sitting) with 5 Watts only.  I am also enough of a practical QRP DXer to want to be able to claim that I got them with low power, too.

In the end though, you have to go with what works for you.  What works for me, may not work for you.  Amateur Radio is a big enough tent where opposite slogans such as “Life’s too short for QRP”  and “Quit Running Power” are cute; but really have no place.  There’s room for every thing and every one.  If there’s one bit of advice that I would subscribe to, it would be “Life is too short to pigeon hole yourself”.  Or as Cicero said, ”Never go to excess, but let moderation be your guide”.

I have done QRP, I have done QRO, I have done CW, I have done SSB, I have done Digital, I have done HF, I have done VHF/UHF, I have done satellites – they were ALL fun.

I would still like to do more satellites and some PSK31, I would love to try meteor scatter and EME, someday.  I would LOVE to have a tower and a yagi someday. There’s so much to try and do – don’t cheat yourself! Amateur Radio is like being at a sumptuous buffet, it’s perfectly fine to try a little bit of everything!

72 de Larry W2LJ
QRP – When you care to send the very least!

             


Larry Makoski, W2LJ, is a regular contributor to AmateurRadio.com and writes from New Jersey, USA. Contact him at [email protected].

After spending £2.19 I still can’t get WSJT-X to work!

The new USB soundcard arrived today and I was hopeful it would resolve the problem I am having with WSJT-X. I installed it simply, tested it on PSK and JT65A and then fired up WSJT-X hopefully.

My replies to loud CQs, as before, went unanswered! I am certain that the stations just aren’t decoding me. But why? I am decoding others’ signals easily.

This evening I completely uninstalled and reinstalled WSJT-X. I think the next step will be to try a different computer. Remembering that I have so far tried two different rigs, two interfaces, two soundcards – the only thing left in common is the computer. But I don’t see what the problem should be.

Fascinating, puzzling and a little frustrating in similar measures….but I am sure in the end I shall get it working!

Update! After chatting to Charle M0PZT about it I recorded the signal off air. It didn’t decode for me. Listening to the tone direct from the computer it sounded clicky and horrible, regardless of the audio level. This must be why. Now, what to do…


Tim Kirby, G4VXE, is a regular contributor to AmateurRadio.com and writes from Oxfordshire, England. Contact him at [email protected].

Subscribe FREE to AmateurRadio.com's
Amateur Radio Newsletter

 
We never share your e-mail address.


Do you like to write?
Interesting project to share?
Helpful tips and ideas for other hams?

Submit an article and we will review it for publication on AmateurRadio.com!

Have a ham radio product or service?
Consider advertising on our site.

Are you a reporter covering ham radio?
Find ham radio experts for your story.

How to Set Up a Ham Radio Blog
Get started in less than 15 minutes!


  • Matt W1MST, Managing Editor