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 101
SN 82
A 6
K 0 Quiet
X-Ray B3.6
Wind 323.7 km/s
Aurora 1
Updated 12:30 UTC HamQSL · N0NBH
Day 80/40m Good 30/20m Good 17/15m Fair 12/10m Poor
Night 80/40m Good 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 rotator - anyone done this?

so ive been messing around with a raspberry pi zero w for a few weeks now trying to get it to talk to my old yaesu g-450a rotator controller. the idea is pretty simple, i just want to be able to point the antenna from my logging software without having to walk across the shack every time. sounds easy right

the rotator controller has that 6 pin din connector on the back with the analog voltage output for position sensing and i figured i could just read that with the pi and use a relay board to pulse the rotation inputs. but the pi doesnt have any analog inputs natively so i grabbed one of those little MCP3008 SPI ADCs from the parts drawer and got it wired up on a breadboard. its actually reading the voltage from the controller pretty well now, like +-2 degrees or so which is fine for HF

the problem im running into is the relay timing. when i send a rotate command from hamlib it sometimes overshoots by like 15-20 degrees especially if its moving fast, and i think its because theres some latency somewhere in my python script, maybe in the loop that checks the ADC. i bumped the polling rate up but then the cpu load on the zero gets kind of ridiculous for what its doing

has anyone done something similar and found a good polling interval that actually works, or is there some better way to handle this kind of closed loop control on a pi? ive seen people use arduinos for this kind of thing and wondered if the tighter timing makes a difference

  • Replies 1
  • Views 19
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the pi is kind of the wrong tool for tight realtime control loops, thats honestly the issue. the linux scheduler just isnt going to give you consistent timing especially on something as limited as a zero. i did something similar with my T2X rotator a while back and ended up putting an arduino nano in between as basically a dedicated controller - pi sends target azimuth over serial, arduino handles the PID loop and relay timing locally, sends back position updates. works really well and the arduino can poll that ADC way faster without any of the scheduling jitter

the other thing worth looking at is a bit of deadband hysteresis in your control logic. my setup wont even activate the relays unless im more than like 3 degrees off target, and i ramp the braking early so it cuts power before it actually reaches the target bearing. takes a bit of tuning but once you dial it in the overshoot basically goes away

not sure about the polling stuff but i did this exact project last year with a g-650 and honestly hamlib rotctld is kind of finicky depending on what logging software youre using. what are you connecting it to on the pc side? i had a nightmare getting n1mm to talk to my pi setup until i figured out i had the rotctld model number wrong. totally unrelated to your timing thing but just something to check if you havent already

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.