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 128
SN 73
A 6
K 1 Quiet
X-Ray C2.2
Wind 403.6 km/s
Aurora 2
Updated 23:00 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 automate my antenna rotator — anyone done this?

so ive been messing around with this idea for a few weeks now and i think im finally close to something that actually works. background: i've got an old Yaesu G-450A rotator that i picked up at a hamfest for cheap, controller works but the interface is ancient and i want to be able to drive it from my logging software without sitting there manually cranking it.

the plan was to use a pi zero W to read the pot position voltage through an MCP3008 ADC over SPI, then drive the rotator motor direction via a couple of relays on the GPIO pins. wrote a little python script that polls the position every 500ms and compares it to a target bearing i send it over a simple socket connection. works in the house on the bench, rotator turns, stops when it gets close to the target, all good.

problem is i keep getting weird spikes on the ADC readings when the relay clicks. im guessing its inductive noise from the relay coil backfiring into the supply rail or something? i put a flyback diode across each relay coil but the spikes are still showing up. added a 100uf cap on the 3.3v rail near the MCP3008 and it helped a little but still seeing +-15 degrees of jitter sometimes when the relay transitions.

anyone gone down this road before? curious if an optocoupler between the pi and the relay board would help or if i need to rethink the power supply situation entirely. running both the pi and the relay board off the same 5v wall wart right now which is probably dumb in hindsight.

  • Replies 1
  • Views 33
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah separate supplies will probably fix most of your grief. relays are nasty on a shared rail, even with the flyback diodes. i had almost the exact same problem when i built a little sequencer for my preamp switching — the relay coil was dragging the voltage down just enough on transitions to cause all kinds of weird readings on the ADC. put the relay board on its own little buck converter fed from a 12v line and everything calmed right down.

the optocoupler idea is also solid if you want to be thorough, but honestly id try the power supply thing first since its the easier fix. also might be worth adding a small RC filter on the ADC input pin — something like 1k resistor and 100nf cap to ground right at the chip. smooths out a lot of the garbage before it even gets sampled. rotator pot signals dont change that fast anyway so a little filtering doesnt hurt anything.

I did something similar with an Arduino Mega and a G-1000 a couple years back, different hardware but same general idea. One thing that bit me was ground loops — had the Arduino and the rotator controller sharing a ground reference and it was causing all kinds of garbage. ended up galvanically isolating the ADC side with an ISO1541 I2C isolator chip and most of the noise went away.

also if youre polling every 500ms you might want to add some averaging on the ADC readings, like take 8 samples and average them before you use the value. cheap way to filter without touching the hardware. the MCP3008 is decent but its not doing you any favors in a noisy environment without some software smoothing too.

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.