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 125
SN 85
A 7
K 2 Quiet
X-Ray C2.1
Wind 433.3 km/s
Aurora 3
Updated 22: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

raspberry pi controlling my antenna rotator — anyone done this?

 Loading...

so ive been messing around with this for a few weeks now and i think im about 70% of the way there but hitting a wall. basically i have an old Yaesu G-450A rotator and i want to drive it from a raspberry pi 4 instead of the controller box, or at least have the pi read the position and log it automatically during contests.

the position pot in the rotator puts out 0-5v depending on where the antenna is pointing and i thought i could just read that with the pi's GPIO but of course the pi doesnt have an ADC so i ended up grabbing an MCP3008 off amazon and wiring that in. got the SPI talking to it okay and im reading values but theyre really noisy, like bouncing around by 20-30 counts even when the rotator isnt moving. not sure if its a grounding issue or if i need some filtering on the input. tried adding a 0.1uf cap to ground on the input pin and it helped a little but still not great.

the actual motor drive side i havent touched yet, was thinking about using a relay board to trigger the CW and CCW lines but i keep reading about people using H-bridge motor controllers instead. the motor in the G-450A is just a basic AC motor though so i dont think a typical H-bridge is gonna work for that? or am i wrong about that

anyway if anyone has done something similar or has ideas about the ADC noise problem id love to hear it. also open to just using an arduino for the analog side since it has a built in ADC and then talk to the pi over serial, maybe that would be cleaner

  • Replies 1
  • Views 5
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

the noise on the MCP3008 is pretty typical if you're running it off the pi's 3.3v rail — that rail is surprisingly dirty, especially if you have wifi active on the pi. a lot of people dont realize how much switching noise the onboard wifi throws around. try powering the MCP3008 from a separate regulated supply or at least put a 10uf electrolytic in parallel with that 0.1uf right at the chip's VDD pin. also make sure your AGND and DGND are tied together close to the chip, not somewhere else in the circuit.

on the AC motor question, you're right that a standard H-bridge won't work. those G-series Yaesu rotators use a split-phase AC motor and the controller just switches the phase relationship to reverse direction. a relay board is actually the right approach there, you want DPDT relays to swap the motor leads. just make sure you debounce the switching logic in software and put a small delay between direction changes or you'll get some nasty current spikes. i did something similar with a G-800 and a pi zero a couple years back, worked fine once i sorted the noise issue. i ended up going with the arduino for the ADC side like you mentioned — just cleaner overall and the uno's 10-bit ADC is more than enough resolution for pointing an antenna.

yeah the arduino as a front end for analog stuff and then serial to pi is a pretty common pattern for exactly this reason. i do it for my weather station setup. the pi is great for the network side and logging but the analog IO situation is kind of a pain. one thing though — if youre reading a pot thats tied to a mechanical rotator you might also want to look at whether the pot itself is worn. on older rotators those pots get scratchy and no amount of filtering will fix that, the wiper just has dead spots. might be worth checking if the noise happens at certain positions more than others

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.