Skip to content
View in the app

A better way to browse. Learn more.

Ham Radio Base

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 121
SN 93
A 11
K 3 Unsettled
X-Ray B9.2
Wind 423.8 km/s
Aurora 3
Updated 07:30 UTC HamQSL · N0NBH
Day 80/40m Poor 30/20m Good 17/15m Fair 12/10m Fair
Night 80/40m Fair 30/20m Good 17/15m Fair 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 automate my shack - anyone done this before?

so ive been messing around with a raspberry pi zero w for the past few weeks trying to get it to control a few things in the shack automatically and i think im finally getting somewhere but wanted to see if anyone else has gone down this rabbit hole before i invest more time into it

basically what im trying to do is have the pi monitor my rig's CAT interface and then trigger a relay board based on what band i switch to - like automatically switching my antenna relay from the 40m dipole to the vertical when i go to 20m, that kind of thing. i got a cheap 4-channel relay module off amazon and the GPIO stuff is pretty straightforward but im running into weirdness where the relays are chattering when i first power up the pi and i dont know if thats a software timing issue or if i need pull-down resistors or what

also side question - anyone mixed arduino and pi in the same project? was thinking the arduino might be better for the actual relay control since its more deterministic than linux running on the pi, the pi would just handle the CAT parsing and then send simple serial commands to the nano. does that make sense or am i overcomplicating it

  • Replies 1
  • Views 48
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the chatter on power-up is almost certainly the GPIO pins floating before your python script initializes them. you want to set your relay pins as outputs and drive them HIGH (or LOW depending on your module - most of those cheap relay boards are active LOW which trips people up) right at the start of your script before anything else happens. you can also add a small RC filter on the control line but honestly just sorting the GPIO init order usually fixes it

and the arduino/pi split is exactly how i do mine actually. pi handles all the heavy lifting - parsing the IC-7300 CI-V traffic, running a little flask server so i can see band info on a webpage in the shack, all that stuff. then it just shoots a single byte over serial to a nano every time the band changes and the nano does the actual relay switching. way more reliable than trusting linux timing for anything that needs to happen in under a few milliseconds. only downside is you got two things to power and debug instead of one but its worth it imo

i did something simmilar last year but i went all-arduino, no pi involved. just an uno reading serial from the radio and switching relays. works fine but adding any kind of logging or network stuff gets painful fast on an arduino. so yeah your idea of splitting the jobs actually sounds smarter than what i did honestly

one thing to watch - those relay modules from amazon can inject noise back into your supply if youre not careful, i had some weird audio hum issues that took me forever to track down and it turned out to be the relay coils. slapping a diode across each coil helped or you can just use an opto-isolated relay board which costs like two dollars more and saves you the headache

Guest
Reply to this topic...

Affiliate Disclosure: As an Amazon Associate, Ham Radio Base earns from qualifying purchases. Some links throughout this website may be affiliate links. If you purchase a product through one of these links, we may earn a commission at no additional cost to you. Your support helps us continue creating free articles, tutorials, reviews, and resources for the amateur radio community. N0TLB © Ham Radio Base - Powered by the Ham CQ DX Community. All rights reserved.

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.