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 113
A 18
K 2 Quiet
X-Ray C1.2
Wind 554.7 km/s
Aurora 3
Updated 22: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

raspberry pi controlling my antenna rotator — is this overkill or am I onto something

 Loading...

so ive been messing around with this for a few weeks now and i think i finally have something worth sharing, or at least worth getting feedback on before i go too much further down the rabbit hole

basically i got tired of manually adjusting my yagi when im trying to track satellites and i had a pi4 just sitting in a drawer doing nothing so i figured why not. wrote a python script that pulls az/el data from gpredict via the rotctld interface and feeds it out through a GPIO expander board to an H-bridge i salvaged off an old printer motor controller. the rotator itself is a homebrew thing i built like 5 years ago with a windshield wiper motor, nothing fancy

it actually works pretty well but im having this weird issue where occasionally the az will overshoot by like 10-15 degrees and then hunt back and forth a couple times before settling. my feedback pot is a 10-turn bourns unit so i dont think its resolution, more like my PID loop isnt tuned right or maybe the motor is just too fast for the control loop to keep up with. anyone done something similar and dealt with the hunting issue

also thinking about adding an arduino nano as a dedicated ADC front end for the pot since the pi's GPIO is all digital obviously, right now im using an MCP3208 over SPI which works but feels a little clunky in the code

  • Replies 1
  • Views 8
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the hunting thing is almost certainly your PID tuning, specifically your derivative term is probably too low or you're not using one at all. that wiper motor has a lot of inertia and the control loop needs to anticipate the overshoot before it happens, not react after. try backing off your proportional gain first and see if the oscillation amplitude changes, if it does you at least know the loop is responding which is a good sign

i did almost the exact same project a couple years back, also used a pi3 and gpredict, though i used an arduino mega as a dedicated co-processor for all the low level stuff — motor drive, encoder reading, limit switches. the pi just sends target az/el over serial and the arduino handles the closed loop control. works really clean that way and you dont have to worry about linux scheduler jitter messing up your timing sensitive stuff. the MCP3208 is fine btw, i used the same chip, just make sure your SPI clock isnt too high and that your pot wiper isnt floating when the rotator is at either mechanical stop

not overkill at all man, this is exactly the kind of stuff that makes the hobby worth it. i dont do satellites myself but ive been wanting to automate my HF antenna switching for a while and keep putting it off. whats the rotctld setup like on the pi side, is that pretty straightforward to get running or did you have to compile anything from source

  • Guest pinned, locked, unlocked and unpinned 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.