Homemade AZ/EL antenna rotator with gray controller enclosure, aluminum arm, yellow 3D printed bracket, Yagi antenna, tripod mount, water bottle counterweight, and an ICOM IC-705-style radio on the table in a portable ham radio satellite setup.

A Homemade AZ/EL Antenna Rotator for Ham Radio Satellite Communication Part 2

This is the second part of my article “A Homemade AZ/EL Antenna Rotator for Ham Radio Satellite Communication“. In the previous part, I introduced the project from its hardware perspective and mechanical structure. Today, we will center on its software concept, setup for use, and its known problems.

Software Flows

Software flowcharts for the ESP32-based antenna rotator controller, showing the complete setup() initialization sequence (top) and loop() main operational cycle (bottom), including hardware initialization, communication mode handling, homing, real-time position reading, motor control, and user interface processing.
This image displays the complete software workflow for a DIY amateur radio antenna rotator, with separate flowcharts for the one-time setup() initialization phase and the continuous loop() main operation cycle, detailing hardware setup, communication modes, motor control, and user interaction.

Upon power-on, the setup() function initializes the system in a one-time sequence: it first configures core hardware including the serial port, EC11 rotary encoder, EEPROM (to load saved communication mode and elevation offset), AZ/EL motors (two instances from motor class with built-in PID control), and OLED display. Next, it initializes the selected communication interface: for UART/RS485, it initializes the EasyComm-II protocol; for WiFi (STA/AP), it starts an AP or connects to a local network, then enables NTP time sync, launches the rotctld-compatible (hamlib rotctld daemon) TCP server as a background FreeRTOS task; and for Bluetooth, it initializes the classic SPP service. Finally, the system executes a homing sequence to move the rotator to the reference position (AZ=0°, EL=0°), completing initialization and entering the main loop.

The loop() function runs continuously to handle real-time operation: it first reads the current AZ and EL positions from the AS5600 encoders, then processes incoming commands based on the active communication mode (uart, rs485, sta, ap or ble), executing easycomm_proc for UART/RS485, bluetooth_spp_proc for Bluetooth, while WiFi commands are handled by the pre-launched background TCP task in setup(). After command processing, it runs the motor control logic (rotator_run) to drive the rotator to target positions, scans and processes manual key/encoder inputs, and updates the OLED display with real-time status, before repeating the entire cycle to maintain continuous, responsive operation.

This is the general view of the software flow. There are many variables and structs used for storing the status of the rotator, running the motors with PID control, and parsing the commands. I would say, the code works, but it may still have some bugs, as I am not an expert programmer. The code was written in PlatformIO under the Arduino framework. See the picture below for the library dependencies.

PlatformIO configuration file (platformio.ini) for an ESP32-based antenna rotator project, showing the NodeMCU-32S board setup, Espressif32 platform, Arduino framework, required library dependencies (AS5600, ESP32Encoder, U8g2, PID, WiFiManager), and build/upload settings.
This image displays the complete PlatformIO platformio.ini configuration for a DIY amateur radio antenna rotator, including ESP32 board settings, library dependencies for motor control, encoders, displays, and WiFi connectivity, and build/upload parameters.

Set it Up and Use

Before putting it into use, we need to install the rotator onto a tripod. In my case, I mounted the rotator onto a lightweight tripod used for photography lights, with the use of a 3D printed adapter. The flanged shaft coupler was first mounted onto the adapter by 4 screws, then the adapter with the coupler was installed onto the light stand.

Close-up shot of a 3D-printed yellow adapter mounting a metal flanged coupler to a tripod, secured by four screws, with the coupler's bore designed to connect to the shaft of azimuth (AZ) motor.
Detailed close-up of a custom 3D-printed adapter for an antenna rotator, showing a metal flanged coupler secured to a tripod, engineered to interface with the shaft of azimuth (AZ) motor.

The rotator (shaft of AZ motor) was then put onto the flanged shaft coupler mounted on the tripod, by securing the two grub screws in the coupler. When mounting the shaft of AZ motor into the coupler, a small gap about 1-2mm was reserved in order to ensure smooth and frictionless rotation between the rotator’s enclosure and the top surface of the coupler.

Close-up, angled view of a custom 3D-printed yellow adapter connecting a metal flanged coupler to the azimuth (AZ) motor shaft of an amateur radio antenna rotator, secured with 4 screws.
Detailed angled shot of a DIY antenna rotator’s mechanical assembly, showing a 3D-printed adapter, metal flanged coupler, and set screws that interface the azimuth motor shaft to the tripod mount for satellite communications.

Another flanged shaft coupler for the EL motor was secured onto the aluminum angle bar. As the angle bar I used was not wide enough for covering the whole round surface of the coupler, only 3 screws were used for securing the flange onto the bar. I threaded the drilled holes, so no hex nuts were used on the other side of the angle bar. The flanged shaft coupler was put at the mid position of the bar.

Close-up shot of a metal flange coupling mounted to an aluminum angle bar for an amateur radio antenna rotator, secured with three screws due to the limited width of the angle bar.
Detailed view of a custom antenna rotator assembly, showing an aluminum flange coupling fixed to an aluminum angle bar with three screws, engineered for reliable elevation drive in satellite communications.
Close-up rear view of a metal flange coupling mounted to a thread tapped aluminum angle bar for an amateur radio antenna rotator, secured with three screws (no nuts used), connecting to the elevation (EL) motor to control the antenna's tilt.
Detailed rear shot of a DIY antenna rotator’s elevation drive assembly, showing an aluminum flange coupling fixed to a thread tapped aluminum angle bar with three screws, designed to transmit motion from the EL motor for precise antenna pointing in satellite communications.

When mounting the angle bar to the EL motor, a gap about 1-2mm was also reserved there to ensure smooth elevation. In my setup, a short PVC was used to extend the length of the angle bar, so that the longer arm of force will reduce the total counter-balancing weight. The antenna could be mounted on the other side of the bar by tightening the cable ties. In the picture, a 3D printed bracket was also installed for mounting the IC-705.

Fully assembled amateur radio antenna rotator system mounted on a tripod, featuring a custom 3D-printed IC-705 bracket. The unit is positioned horizontally with both the azimuth pointing to north.
Typical setup of a DIY azimuth/elevation (AZ/EL) antenna rotator for amateur radio. The system is securely mounted on a tripod, oriented North, and includes a dedicated bracket for the IC-705 transceiver.

When securing the angle bar to the EL motor, the grub screws should be screwed tightly onto the motor’s D-shaped shaft and the angle bar should be as close as possible to the 3D printed antenna support. There may still be some space between them, so we could configure the “offset” value in the menu to ensure the angle bar touches the antenna support a bit, or nearly touches it, when the EL angle is 0. This aims to protect the EL motor’s gear from damage when the antenna is initially mounted on the front end without any counter-balancing force from the other side of the bar.

A close-up shot of both the angle bar and the 3D printed antenna support, showing the 3D printed part stops the angle bar from moving downward so as to protect the gears in EL motor.
This image displays the close-up view of the aluminum angle bar and the 3D printed antenna support, with the 3D printed part stopping the angle bar from moving downward.

A bottle containing 1.5 liters of water was used as the counter-balancing force from behind. There was a thin lead tied at the end of the PVC pipe. This was so important, as without the counter-balancing force, the EL motor was unable to elevate the yagi antenna, and the motor’s shaft might move incorrectly or stop somewhere with the internal gears being damaged.

Outdoor field setup of a DIY amateur radio antenna rotator system. A 1.5-liter water bottle serves as a rear counterweight, balanced by a thin lead wire attached to the end of the PVC pipe, critical for relieving stress on the elevation (EL) motor and gears to prevent damage during antenna movement.
DIY antenna rotator counterweight system for amateur radio satellite operations. A 1.5L water bottle and lead wire provide essential balance to the elevation (EL) motor, preventing gear damage and ensuring smooth, reliable pointing of the Yagi antenna during the operation.

In my test, the rotator draws less than 300mA with both AZ and EL motors running when working at 12V. When powered by 18650 (3S) batteries, it would last for a whole week, as we don’t let it work continuously, because you can’t work the amateur satellites for a whole day, and you normally have to stop and wait until the next pass. The picture below shows the setup in my first QSO to ISS, at a time when the rotator was still under test (plastic enclosure with built-in shield made from copper tapes).

Real outdoor field operation: The DIY antenna rotator with a Yagi antenna mounted is pointing the antenna to a satellite instructed by a control software installed on the phone, actively talking to the International Space Station (ISS) via Yaesu FT-991A transceiver on a table.
Field test of the antenna rotator for amateur radio satellite communications, showing a Yaesu FT-991A transceiver working with a Yagi antenna mounted on the rotator, to contact the International Space Station (ISS) during a portable field operation.
Homemade ESP32-based AZ/EL antenna rotator working in a portable ham radio satellite communication setup.

The Control Software

Generally, the rotator works with any software that is compatible with EasyComm-II (wired link), hamlib rotctld daemon (WiFi), and the Look4Sat protocol (Bluetooth SPP). As of today, I have successfully used the rotator to work with Gpredict (PC through WiFi), Dtrac (phone app, WiFi), and Look4Sat (phone app, Bluetooth).

Gpredict, Dtrac, and Look4Sat software for controlling the homemade AZ/EL antenna rotator
Compatible control software for the rotator: Gpredict and Dtrac over WiFi, and Look4Sat over Bluetooth.

As a portable satellite ground station, I would prefer controlling the rotator from my phone apps. All of the software listed above is capable of automatically controlling the antenna’s pointing while controlling your radio’s VFO to the right frequency for both receiving and transmitting. Look4Sat has a big update in v4 for controlling your radio, but I have never tested it, as I am not used to it. For FM satellite, it is fine to have your radio controlled by the software, as there are no other frequencies (it only has one channel) to go for an effective contact. But for the linear satellites, many stations could work at the same time because it has a wider range of frequencies (RS-44 60KHz) to go, and I don’t know how the software could know my desired transmitting frequency (uplink) so it could calculate the receiving frequency (downlink) based on the doppler shift principle, or vice versa.

A special note for Look4Sat, we have to add \r\n (no space ahead of \) at the end of its default data string in order to let it work with the rotator perfectly.

Screenshot of the Look4Sat mobile app's Bluetooth data output settings, showing the enabled rotation output with the required `\r\n` line ending appended to the data format string, configured for connection with a DIY amateur radio antenna rotator.
Look4Sat satellite tracking app configuration screen for Bluetooth control of a DIY AZ/EL antenna rotator, highlighting the critical addition of `\r\n` line endings to the data format string for reliable rotator connection during satellite passes.

Settings for Dtrac are just as follows. The network address and port are the IP address of the rotator and its TCP port. I usually use the phone to start a WiFi hotspot, so the rotator can connect to my phone in WiFi STA mode.

Dtrac mobile app common settings screen showing configuration for a DIY amateur radio antenna rotator: set to Hamlib Rotctld protocol over TCP/IP with the rotator's IP address 192.168.10.128 and port 4533.
Configuration screenshot of the Dtrac app for controlling a DIY AZ/EL antenna rotator via the Hamlib Rotctld protocol over TCP/IP. The settings specify the rotator’s WiFi STA IP address (192.168.10.128) and port 4533, with the Yaesu FT-991 radio selected, enabling automated antenna pointing via WiFi connection.
SoftwareWay of connection
GpredictHamlib Rotctld Daemon through WiFi connection
DtracHamlib Rotctld Daemon through WiFi connection
Look4Satits own protocol via Bluetooth connection

Constraints

Below are the major constraints of the rotator I’ve built:

  1. Supports only one antenna; it should be a U/V dualband antenna.

As restricted by its structure, this kind of antenna rotator can only load up one antenna, and a cross Yagi is preferable or perhaps the best one. As a result, it is suitable for the lower orbit FM satellites, which have no special requirements on the antenna systems. For the linear birds, the far more complicated, typically dual Yagi antennas with 6-7 elements are the basic setup, perhaps with preamps for the downlink. This obviously is not the stuff that a portable ground station could handle. However, this doesn’t mean that you can’t work the linear birds with this setup; it works conditionally. I have worked the RS-44 with a U7V4 cross Yagi mounted on this rotator. It had a good working condition at higher elevation angles, but I lost the contact when the bird went down to the lower angles (<30 degrees).

  1. Needs counterweight to balance the rotation arm.

The counterweight is added to protect the motor’s gears, and it also keeps the balance between the front and back so as to prevent the working rotator on the tripod from falling over, making the tripod stable on the ground. In my case, for portable operation, I use a bottle of water as the counterweight, as it costs nothing.

  1. It gets some RF interference from the transmitting antenna placed close to the rotator.

This limitation results from its structure, as the EL motor directly tilts the antenna. So you have to fix the antenna on the arm (angle bar), where a flanged coupler connects to the motor’s shaft. The antenna is so close to the rotator that it causes some RFI problems. In my first version, the strong RFI caused the motor to run without control when transmitting (5W or more on UHF band). Finally, I added the copper tape shielding on the inner wall of the plastic housing in my second building, and it worked perfectly with the transmitting power of less than 20W. Similar results were also achieved in the newest aluminum housing.

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart