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 148
SN 157
A 6
K 3 Unsettled
X-Ray B8.7
Wind 415.0 km/s
Aurora 2
Updated 08:30 UTC HamQSL · N0NBH
Day 80/40m Poor 30/20m Good 17/15m Good 12/10m Fair
Night 80/40m Fair 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 arduino to automate my antenna rotator — anyone done this?

 Loading...

so ive been messing around with an old antenna rotator for a few months now and the controller died on me, the original unit was some no-name thing that came with a used yagi i picked up and honestly the controller was already held together with prayers and electrical tape when i got it. anyway instead of buying a replacement i figured this would be a good excuse to finally do something with the pile of arduino uno and mega boards i have sitting in a drawer from various impulse buys on aliexpress.

the basic idea is to use a stepper motor driver board — i have a drv8825 kicking around — and just drive the azimuth motor directly, reading position back from a pot on the rotator shaft. been looking at hamlib and apparently you can interface custom rotators through rotctld which would be great for getting it working with wsjtx for satellite stuff eventually. i have a raspberry pi 4 that could sit in the shack and handle the higher level stuff while the arduino handles the actual motor control loop.

has anyone actually done something like this end to end? im not worried about the electronics side too much but the hamlib integration is where im getting fuzzy. any gotchas with the serial communication between the pi and the arduino that i should know about going in?

  • Replies 1
  • Views 31
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah did almost exactly this a couple years back with a create design rotator that the original controller let out the magic smoke on. the hamlib piece is actually not too bad once you wrap your head around it — i used the gs-232 emulation approach, basically just made the arduino respond to the same serial commands that a yaesu rotator controller would, and hamlib already knows how to talk to those. so you're not writing a custom hamlib driver which would be a huge pain.

the pot reading is where i spent most of my debugging time honestly. you really want to average a bunch of analogread samples because the values bounce around more than you'd expect, especially if your motor is running at the same time. i added a small cap on the wiper line and that helped but the software averaging was still necessary. also watch out for the wrap-around logic if your rotator can go past 360, mine could and that caused some weird behavior early on before i accounted for it properly.

the pi to arduino serial thing is pretty much just plug and play, just make sure you set the same baud rate on both ends and dont let anything else grab the serial port before hamlib does. i have mine set up as a systemd service that starts on boot and its been rock solid for like 18 months now pointing at LEO sats.

the gs-232 emulation tip above is the way to go, saves you a ton of headaches. one thing i'd add is think about whether you want to add any limit switches to your hardware setup if the rotator doesnt already have them. i skipped that step and had a bad day when a bug in my code sent the thing spinning past its mechanical stop. nothing catastrophic but it was not a fun afternoon. cheap microswitches wired to interrupt pins on the arduino are good insurance.

  • Guest unlocked, pinned, unpinned and locked this topic

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.