Skip to content
View in the app

A better way to browse. Learn more.

Ham Radio Base -Powered By Ham CQ DX

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Solar
SFI 147
SN 141
A 10
K 2 Quiet
X-Ray C2.6
Wind 390.7 km/s
Aurora 3
Updated 04:30 UTC HamQSL · N0NBH
Day 80/40m Fair 30/20m Good 17/15m Good 12/10m Fair
Night 80/40m Good 30/20m Good 17/15m Good 12/10m Poor

Callsign Lookup
_
Vanity Call Signs Available
Enter filters above and click Search.
ⓘ Callsign lookups are in real time via the FCC database. Vanity callsign availability is refreshed daily at 6:00 AM CST. The vanity search may be unavailable for a few minutes during this update.
Live DX spots
Live DX Spots — 70cm via PSKReporter · scroll or pinch to zoom
Band
Mode
Time
Loading map data…
MHz DX Spotter Info
Recent spots
Select a band above to load spots
Ready — select a band to fetch live spots

using a pi zero to log WSPR spots automatically — anyone done this?

 Loading...

so ive been messing around with a pi zero W for a few weeks now trying to get it to pull WSPR spot data from wsprnet and log it locally whenever my rig is running. the idea is pretty simple, just a python script that polls the API every few minutes and dumps it into a sqlite database with timestamps and band info. i also want it to trigger a relay when conditions on 10 or 12 meters look good based on spot density from like DX stations, kind of a poor mans band condition indicator.

the relay part is where i started running into weirdness. im using one of those cheap 4-channel relay boards from amazon and the logic levels are all over the place — the pi zero GPIO is 3.3v but the relay board wants 5v to trigger reliably. i threw in a transistor to level shift it but honestly im not sure i did it right because one of the channels fires when it shouldnt. might just be floating inputs, havent totally figured it out yet.

has anyone done something similar or have a cleaner way to handle the relay triggering from a 3.3v GPIO? and also curious if anyone has played with wsjtx remote or similar to actually see what mode the rig is in and only log when its in WSPR mode specifically.

  • Replies 1
  • Views 34
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the relay board thing is a super common headache with the pi. those cheap boards usually have active-low inputs which trips people up constantly — the relay fires when the pin goes LOW not high, so if your GPIO is floating at boot it can trigger randomly. easiest fix honestly is just pull the input pins high with a 10k resistor to 3.3v and then drive them low to activate. or just buy a relay board thats explicitly designed for 3.3v logic, they exist and they're like $3 more.

on the wsjtx side there's actually a UDP broadcast wsjtx puts out on port 2237 by default that you can listen to with python. it sends status packets including the current mode, so you can absolutely only log when the mode field says WSPR. there's a library called wsjtx-assistant or something similar, cant remember the exact name but googling wsjtx udp python should get you there pretty fast. i did something close to this for FT8 logging a while back and it works well once you wrap your head around the packet format.

not exactly the same project but i built something on a pi 3 that watches band conditions and keys a little LED panel i have on my desk. used the DXcluster feed instead of wspr though. the relay floating input problem you're describing, i had that exact thing happen, drove me nuts for like two days before someone on here told me about the active-low thing.

one thing i'd say is the pi zero W can get a little flaky with wifi under load if you're doing anything timing-sensitive, just something to watch out for. i ended up switching to a wired connection on mine but obviously the zero W doesnt have ethernet so thats a bit of a project in itself with a USB adapter. might just be easier to use a regular pi 3 or 4 if you have one sitting around

  • Guest pinned, locked, unpinned, unlocked, pinned, locked, unpinned and unlocked this topic
  • Guest pinned, locked, unpinned and unlocked this topic
Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.