Friday 19 August 2016

Setting up a Raspberry Pi WSPR Station

In some of previous posts, I've discussed how it is possible to generate RF directly from the Raspberry Pi using the clock pin, and I've also mentioned the excellent LPF kits for the Raspberry Pi available from Language Spy. In this post, I'm going to bring this all together and show you how to setup a simple WSPR station using the Raspberry Pi.

WSPR is a QRP semi automatic "beacon" mode developed by Joe Taylor, K1JT and is an excellent way to determine propagation conditions, or to test the effectiveness of an antenna system

I would recommend starting off with an up-to-date version of Raspbian Jessie which can be downloaded from RaspberryPi.org.

The first thing to do is to check your Pi has the correct date and time. You can force your Pi to update it's internal clock by typing the following at the command prompt and pressing Enter:

pi@raspberrypi ~ $ sudo ntpd_

You can check the time is correct by typing "date" at the command prompt and pressing Enter.

pi@raspberrypi ~ $ date_

Use "git" to fetch a copy of the WsprryPi code from the Git repository by typing the following at the command prompt and pressing Enter:

pi@raspberrypi ~ $ git clone https://github.com/JamesP6000/WsprryPi.git_

Navigate into the folder where the WsprryPi code is by typing the following at the command prompt and pressing Enter:

pi@raspberrypi ~ $ cd WsprryPi_

Compile the WsprryPi code by typing "make" at the command prompt and pressing Enter.

pi@raspberrypi ~ $ make_

Install the code by typing the following at the command prompt and pressing Enter:

pi@raspberrypi ~ $ sudo make install_

Your WSPR station is now almost ready to go, however please note that in order to use this software and to transmit you MUST be a fully licenced radio amateur.

Decide which band you wish to transmit on, and install an appropriate LPF filter for that band. The photo below shows my Pi with one of Language Spy's 20m LPF filters installed.



You can get help on the wspr command by typing the following at the command prompt and pressing Enter:

pi@raspberrypi ~ $ wspr -h_

You need to use various options and enter some arguments when you run wspr. The command you'll need to enter will be in the following format:

sudo wspr -r -o -s CALLSIGN LOXX 10 BAND 0

But you must...

replace CALLSIGN with your amateur radio callsign

replace LOCATOR with your 4 digit Maidenhead Locator code.

replace BAND with the band you want to transmit on. Suitable entries would be "20m", "40m" etc

The option "-r" tells the WsprryPi software to repeat the transmission sequence indefinitely, until you press "Ctrl-C"

The option "-o" tells the WsprryPi software to use a random offset for each transmission

The option "-s" tells the WsprryPi software to self-calibrate

The "10" tells the WsprryPi software that your transmitter power is 10dBm (i.e. 10mW)

The final "0" tells the WsprryPi software alternatively transmit for 2 minutes and then wait for 2 minutes.

You can check to see who is hearing your transmission by going to the WSPRnet site and searching for your callsign. I find the "Map" feature very helpful - simply enter your callsign and the band you have been using and you will get a map of the world showing the locations of receiving stations.

Here's a screenshot of my results from as few days ago.


It's amazing the fun you can have with just 10mW!

Once you are happy that all is working as it should, you can run your Pi in "headless" mode and use SSH from another computer (or your phone) to launch the WsprryPi program.

30 comments:

  1. Hi, I'm getting asked for a user name and password when I try and GIT the wsprry code?? Bit of a linux /pi beginner but I can cut and paste and follow instructions??pi & raspberry don't work.....any guidance welcome. Will it run on a Pi zero??

    ReplyDelete
  2. Hi, Hope you can help please!
    Trying to load and run the software, am able to run the git clone https command ok, and on changing into the WsprryPi directory on running the make command I get the following error.

    g++ -c -wall lm mailbox.c
    g++ -D_GLIBCXX_DEBUG -std=c++11 -wall Werror -fmax-errors=5 -lm -DRPI1 mailbox.o wspr.cpp -owspr
    cc1plus: error: unrecognised command line option -std=c++11
    makefile:12: recipe for target `wspr` failed
    make *** [wspr] error 1

    I have updayed oth o/s and tryed as root also with the same result.
    Any help would be appreciated.

    Kind regards,
    Ian.

    ReplyDelete
  3. It just crashes when I try to run it. It sometimes gets to waiting for transmission and sometimes it gets as far as calibration.

    ReplyDelete
  4. My name is Leah Brown, I'm a happy woman today? I told myself that any loan lender that could change my life and that of my family after having been scammed separately by these online loan lenders, I will refer to anyone who is looking for loan for them. It gave me and my family happiness, although at first I had a hard time trusting him because of my experiences with past loan lenders, I needed a loan of $300,000.00 to start my life everywhere as single mother with 2 children, I met this honest and God fearing online loan lender Gain Credit Loan who helped me with a $300,000.00 loan, working with a loan company Good reputation. If you are in need of a loan and you are 100% sure of paying the loan please contact (gaincreditloan1@gmail.com) You can also whatsApp them at: at +44-75967-81743 (WhatsApp Only) .. and inform them Leah Brown addressed to you ..

    ReplyDelete
  5. letsdiskuss
    is India’s first Question and Answer portal in English and Hindi. The management comprises of professionals from top global consulting firms. The venture is well backed by industry experts from various domains from tech to finance to art to science and with in a short span of time, we have gained a solid user base across the globe. Ask any question and you can expect quick, quality and helpful response. The replies are high quality from experts.

    ReplyDelete
  6. Very helpful advice in this particular post! It’s the little changes that make the largest changes. Great suggestion. Very good opinion. Nuru Massage in Tucson

    ReplyDelete
  7. Thanks for sharing this post.
    Online poker itself has now become a safer alternative to gambling for bettors. You no longer need to worry about your profession being disrupted when playing poker gambling.
    Texas holdem poker
    How to play poker
    Real Money Poker
    Poker Games Online
    Play Poker Online

    ReplyDelete
  8. Herbs Flora strongly believe in Herbal and Natural beauty products which make skin and hair healthy and beautiful. Our all products are hand made and the base ingredients are natural herbs.
    Lavender Essential Oil
    Eucalyptus Essential Oil
    Rosemary Essential Oil
    Lemon Essential Oil
    Kumkumadi Oil
    Kaolin Clay Powder
    Activated Charcoal Powder
    Bentonite Clay Powder
    Multani Mitti Powder

    ReplyDelete
  9. Hey Everyone, If you are looking for the pet food and pet accessories with great deals and cheap Rates Please Visit Our website That is Feather4pets.in We treat your furry friends.

    ReplyDelete

  10. Prism Lead India is the best business listing company in Bangalore where you will get all types of services like, Pest control service in Bangalore, bathroom cleaning services in Bangalore, AC Repair Service, computer repair shop in bangalore, Water Tank Cleaning, Home Cleaning, Packers and Movers, Home Painting, computer repairing shops in Bangalore, etc.

    Our comprehensive pest control service includes disinsection, deratization, and sanitation. The objective is to keep the populations of vector-pest agents controlled, through intensive surveillance that includes: reports, inspections, and monthly treatments. Prism LEAD INDIA puts safe and harmless technologies at your disposal.pest control bangalore


    Our comprehensive pest control service includes disinsection, deratization, and sanitation. The objective is to keep the populations of vector-pest agents controlled, through intensive surveillance that includes: reports, inspections, and monthly treatments. Prism LEAD INDIA puts safe and harmless technologies at your disposal.
    The service includes pest control service in Bangalore and incorporates preventive and corrective measures to eliminate the presence of vectors, pest control bangalore in order to minimize the economic damage for the client.bathroom cleaning services in bangalore
    The key to effective pest elimination consists of manipulating the factors that limit the reproduction and survival potential of each pest. This occasionally involves the use of pesticides, but sanitation is preferred as a control mechanism, in order to minimize risk or harm to man and the environment. Additionally we provides laptop repairing shops in Bangalore computer repair shop in Bangalore
    RISK FACTOR
    The removal of food, water, and possible shelters has a very significant impact on the pest populations to be controlled; These characteristics define the load capacity of an enclosure. In collaboration with the client, our task is to minimize these three factors by reducing the spread of pests.
    It is necessary to carry out preventive actions regularly, for which we offer regular and planned maintenance programs, usually annually; the frequency is defined according to the needs of the enclosure to be protected. We are the top rated packers and movers in bangalore. We do all kinds of packing and moving services in india.laptop-repair shop in Bangalore

    ReplyDelete