Skip to content

Rotor Controller: W5500 Ethernet Control for Yaesu G-5500DC

TM4C123 and W5500 provide Ethernet control of a Yaesu G-5500DC with Hamlib integration, 20 Hz telemetry, local motor safety, and sector-based obstacle avoidance

irina

Published November 23, 2026

Original author: ve3ukwOriginal source (new tab)

Rotor Controller: W5500 Ethernet Control for Yaesu G-5500DC

Components

Hardware components

WIZnet parts

Project description

프로젝트 개요

Rotor Controller는 Yaesu G-5500DC Azimuth/Elevation 안테나 로테이터를 Ethernet을 통해 원격 제어하기 위한 오픈소스 프로젝트입니다.

현장 제어부는 Texas Instruments EK-TM4C123GXL LaunchPad와 WIZnet W5500으로 구성되며, PC 또는 Raspberry Pi에서 동작하는 Go 기반 rotor-brain이 Field Unit과 TCP로 통신합니다.

또한 rotctld 호환 interface를 제공해 SkyRoof, gpredict, WSJT-X 같은 amateur-radio 및 satellite-tracking software와 연동할 수 있습니다.

1. System Architecture

전체 시스템은 Field Unit, Brain, Client의 세 계층으로 구성됩니다.

SkyRoof / gpredict / WSJT-X
          │
          │ rotctld :4533
          ▼
     rotor-hamlib
          │
          │ REST / WebSocket
          ▼
      rotor-brain
          │
          │ TCP :7700
          ▼
 TM4C123 + W5500
      Field Unit
          │
          ├── ADC → AZ / EL Position
          └── Relay → CW / CCW / UP / DOWN
          │
          ▼
   Yaesu G-5500DC

1. System ArchitectureField Unit는 단순한 Ethernet bridge가 아닙니다.

G-5500DC의 Azimuth와 Elevation 위치를 ADC로 읽고, 로컬 state machine을 통해 motor output과 safety logic을 직접 처리합니다.

2. Hardware

Rotor Controller: W5500 Ethernet Control for Yaesu G-5500DC, 2. Hardware

주요 hardware 구성은 다음과 같습니다.

ComponentRole
EK-TM4C123GXLMain controller board
TM4C123GH6PMCortex-M4F @ 80 MHz
WIZnet W5500Ethernet / TCP communication
Yaesu G-5500DCAzimuth / Elevation rotator
ADC InputsAZ / EL potentiometer feedback
Relay OutputsCW / CCW / UP / DOWN
A9 / PB1Hardware Emergency Stop
A8 / PB0Park trigger

G-5500DC의 potentiometer feedback은 MCU ADC로 입력되고, motor-control GPIO는 opto-isolator를 거쳐 G-5500DC의 external control input을 제어합니다.

W5500 SPI Interface

W5500은 TM4C123의 SSI0와 연결됩니다.

W5500 SignalTM4C123
SCLKPA2 / SSI0CLK
CSPA3
MISOPA4 / SSI0RX
MOSIPA5 / SSI0TX
RESETPD7
INTPD6

현재 firmware에서는 W5500 SPI clock을 1 MHz로 설정하고 있습니다.

Source code에는 flying-wire 구성에서 높은 SPI clock 사용 시 register write가 정상적으로 이루어지지 않았던 실제 bring-up 경험도 기록되어 있습니다.

3. W5500 Ethernet Communication

Field Unit firmware의 net.c는 WIZnet driver를 직접 사용합니다.

#include "wizchip_conf.h"
#include "socket.h"

Network path는 다음과 같습니다.

TM4C123
   │
   │ SPI
   ▼
 W5500
   │
   │ TCP
   ▼
Ethernet
   │
   ▼
rotor-brain

기본 network configuration은:

  • Field Unit IP: 192.168.1.5
  • TCP Control Port: 7700
  • Brain HTTP / WebSocket: 8090
  • rotctld Interface: 4533

입니다.

3. W5500 Ethernet Communication

W5500은 Field Unit과 rotor-brain 사이의 command, acknowledgement, telemetry traffic을 전달하는 핵심 network controller 역할을 합니다.

4. Command and Telemetry

Brain과 Field Unit 사이의 message는 사람이 직접 확인하기 쉬운 JSON 형식을 사용합니다.

예를 들어 antenna movement command는 다음과 같습니다.

{
  "type": "set_motion",
  "seq": 10,
  "az": "cw",
  "el": "up"
}

지원되는 주요 command는 다음과 같습니다.

  • Azimuth CW / CCW
  • Elevation UP / DOWN
  • Stop
  • Park
  • Emergency Stop
  • Travel Limit
  • RF / Polarization Control
  • Network Configuration
  • Obstacle Configuration
  • Reboot

Field Unit는 position, motion state, fault state, RF switch state와 duty-cycle 정보를 telemetry로 전달합니다.

4. Command and Telemetry

20 Hz Telemetry

Field Unit의 main control loop는 100 Hz로 동작하고, telemetry는 5 tick마다 약 20 Hz로 전송됩니다.

100 Hz Main Loop
       │
   every 5 ticks
       ▼
20 Hz Telemetry
       │
       ▼
 W5500 TCP
20 Hz Telemetry

초기 project brief에서는 TCP command와 UDP telemetry 구조가 계획되어 있었지만, 현재 실제 net.c에서는 command와 telemetry 모두 TCP connection을 사용합니다.

따라서 현재 구현을 설명할 때는 TCP 기반 command/telemetry 구조로 보는 것이 정확합니다.

5. Low-Level W5500 Handling

이 프로젝트에서 흥미로운 부분은 W5500의 socket 처리 방식입니다.

Firmware는 socket open/close뿐 아니라 transmission completion과 buffer 상태까지 직접 관리합니다.

특히 연속된 TCP transmission에서 이전 packet의 전송이 완료되기 전에 다음 TX buffer가 갱신되는 것을 방지하기 위해 Sn_IR_SENDOK를 확인한 뒤 다음 transmission을 수행합니다.

Write Data
    │
    ▼
W5500 TX Buffer
    │
    ▼
SEND
    │
    ▼
Wait SENDOK
    │
    ▼
Next Transmission

현재 hardware에서 관찰된 TX pointer 동작을 처리하기 위해 software에서 TX write pointer를 별도로 추적하는 workaround도 포함되어 있습니다.

일반적인 Ethernet library 사용 수준을 넘어, 실제 W5500 socket register와 internal buffer 동작을 다룬 사례라는 점이 이 프로젝트의 기술적인 특징입니다.

6. Local Safety Control

Antenna rotator는 실제 motor가 움직이는 장비이기 때문에 network command보다 Field Unit의 local safety가 우선하도록 설계되어 있습니다.

Hardware Emergency Stop

A9 / PB1이 LOW가 되면 motor output이 즉시 정지합니다.

ESTOP은 latching 방식이므로 입력이 다시 HIGH가 되어도 자동으로 motion을 재개하지 않습니다.

Hardware Watchdog

Main loop가 정상적으로 실행되지 않으면 TM4C123 hardware watchdog이 system을 reset하고 motor output을 safe state로 복귀시킵니다.

Travel Limits

Azimuth와 Elevation에 이동 제한을 설정해 허용 범위를 벗어나는 movement를 방지합니다.

Park Position

기본 park position은:

  • Azimuth: 180°
  • Elevation: 45°

입니다.

7. Obstacle Avoidance

Rotor Controller의 차별화된 기능 중 하나는 Obstacle Avoidance입니다.

Azimuth 범위를 5° 단위의 90개 sector로 나누고 각 sector에 최소 Elevation floor를 지정할 수 있습니다.

예를 들어 특정 방향에 건물이나 나무가 있다면:

AZ 45° ~ 50°
      │
      └── Minimum EL = 20°

와 같이 설정할 수 있습니다.

Antenna가 해당 Azimuth sector에 있을 때 Elevation은 설정된 floor 아래로 내려가지 않습니다.

또한 training mode를 이용하면 현재 antenna 위치를 기준으로 obstacle boundary를 직접 등록할 수도 있습니다.

8. Comparable Projects

Rotor Controller와 비교할 수 있는 WIZnet Maker 프로젝트는 다음 세 가지입니다.

Ethernet Hamlib Adaptor for the G-5500

Rotor Controller와 가장 직접적으로 비교할 수 있는 프로젝트입니다.

RP2040 기반 W5500-EVB-Pico를 사용해 Yaesu G-5500 계열 rotator를 Ethernet에 연결하고 Hamlib rotctld interface를 제공합니다.

https://maker.wiznet.io/josephsr/projects/ethernet-hamlib-adaptor-for-the-g-5500-azimuth-elevation-rotator/

EME-CRTL-KGK-001

Arduino Mega와 W5500을 이용해 Azimuth/Elevation antenna rotator를 원격 제어하는 EME antenna system입니다.

https://maker.wiznet.io/Hannah/projects/eme-crtl-kgk-001/

AnTrack-Pro

ESP32 기반 antenna tracking system으로 absolute encoder, GPS, motor control과 W5500 Ethernet option을 제공합니다.

https://maker.wiznet.io/irina/projects/antrack-pro/

9. Project Comparison

FeatureRotor ControllerG-5500 Hamlib AdaptorEME-CRTL-KGK-001AnTrack-Pro
MCUTM4C123RP2040Arduino MegaESP32
WIZnetW5500W5500W5500W5500 optional
TargetG-5500DCG-5500EME RotatorAntenna Tracker
Ethernet Control✅✅✅✅
Hamlib Integrationrotctld shim✅Different protocolTracking software
Local SafetyStrongBasic controlSafety controlMotor protection
Hardware ESTOP✅–––
Obstacle Map90 sectors–––
Telemetry20 Hz TCPTCPEthernetEthernet
W5500 IntegrationDirect socket APIEthernet interfaceEthernetOptional Ethernet

Key Difference

Rotor Controller의 가장 큰 특징은 high-level tracking logic과 low-level motor safety를 분리한 구조입니다.

rotor-brain
    │
    │ Motion Request
    ▼
Field Unit
    │
    ├── Position Check
    ├── Travel Limit
    ├── ESTOP
    ├── Obstacle Floor
    └── Safety State Machine
    │
    ▼
Motor Output

rotor-brain은 movement를 요청하지만 실제 motor output 여부는 Field Unit의 state machine이 최종 결정합니다.

이 구조를 통해 Ethernet control, antenna positioning, local safety를 하나의 embedded system으로 구성하고 있습니다.

FAQ

Q. W5500은 이 프로젝트에서 어떤 역할을 하나요?

TM4C123와 SPI로 연결되어 Field Unit과 rotor-brain 사이의 Ethernet TCP communication을 담당합니다. Firmware는 WIZnet wizchip_conf.h와 socket.h를 직접 사용합니다.

Q. Telemetry는 UDP를 사용하나요?

초기 design document에서는 UDP telemetry를 계획했지만, 현재 실제 firmware에서는 약 20 Hz telemetry를 TCP connection으로 전송합니다.

Q. Network connection이 끊기면 어떻게 되나요?

Motor safety는 Field Unit의 local state machine에서 처리됩니다. Network 상태, hardware ESTOP, travel limit 등의 조건에 따라 motor output을 안전하게 제어하도록 구성되어 있습니다.

Q. Satellite tracking software와 연결할 수 있나요?

네. rotor-hamlib이 rotctld compatible TCP interface를 제공하므로 SkyRoof, gpredict, WSJT-X 등의 software와 연동할 수 있습니다.

Q. 주변 건물이나 나무를 피할 수 있나요?

네. 5° 단위의 90개 Azimuth sector에 minimum Elevation floor를 설정해 특정 방향에서 antenna가 너무 낮게 내려가지 않도록 제한할 수 있습니다.


Project Overview

Rotor Controller is an open-source Ethernet-connected controller for the Yaesu G-5500DC azimuth/elevation antenna rotator and similar rotator systems.

The field unit is built around a Texas Instruments EK-TM4C123GXL LaunchPad and a WIZnet W5500 Ethernet controller. A Go-based rotor-brain daemon running on a PC or Raspberry Pi communicates with the field unit over TCP and provides higher-level control.

The project also includes a rotctld-compatible interface, allowing amateur-radio and satellite-tracking applications such as SkyRoof, gpredict, and WSJT-X to control the antenna through a familiar Hamlib-compatible interface.

Rotor Controller: W5500 Ethernet Control for Yaesu G-5500DC, Project Overview

1. System Architecture

The system is divided into three main layers: the client applications, the brain service, and the embedded field unit.

SkyRoof / gpredict / WSJT-X
          │
          │ rotctld :4533
          ▼
     rotor-hamlib
          │
          │ REST / WebSocket
          ▼
      rotor-brain
          │
          │ TCP :7700
          ▼
 TM4C123 + W5500
      Field Unit
          │
          ├── ADC → AZ / EL Position
          └── Relay → CW / CCW / UP / DOWN
          │
          ▼
   Yaesu G-5500DC

The field unit is more than a simple Ethernet bridge.

It reads the actual azimuth and elevation positions from the G-5500DC through ADC inputs and directly controls the motor relay outputs through a local state machine.

Higher-level tracking and application logic are handled by rotor-brain, while time-critical motor and safety decisions remain inside the embedded controller.

1. System Architecture

2. Hardware

The main hardware components are:

ComponentRole
EK-TM4C123GXLMain controller board
TM4C123GH6PMCortex-M4F @ 80 MHz
WIZnet W5500Ethernet / TCP communication
Yaesu G-5500DCAzimuth / Elevation rotator
ADC InputsAZ / EL potentiometer feedback
Relay OutputsCW / CCW / UP / DOWN control
A9 / PB1Hardware Emergency Stop
A8 / PB0Park trigger

The G-5500DC provides azimuth and elevation potentiometer feedback through its external control interface.

These analog signals are conditioned before reaching the TM4C123 ADC inputs.

Four motor-control GPIO outputs drive opto-isolated contact closures for:

  • Azimuth clockwise
  • Azimuth counter-clockwise
  • Elevation up
  • Elevation down

The G-5500DC itself remains responsible for driving the actual rotator motors.

W5500 SPI Interface

The W5500 is connected to the TM4C123 through SSI0.

W5500 SignalTM4C123
SCLKPA2 / SSI0CLK
CSPA3
MISOPA4 / SSI0RX
MOSIPA5 / SSI0TX
RESETPD7
INTPD6

The current firmware configures the W5500 SPI clock to 1 MHz.

The source code also documents a practical bring-up issue: higher SPI clock rates caused corrupted register writes on the author's flying-wire WIZ550io setup.

Reducing the SPI rate to 1 MHz provided reliable communication, making the repository useful not only as an application example but also as a record of real W5500 hardware integration.

3. W5500 Ethernet Communication

The field-unit firmware does not rely on a generic high-level networking abstraction.

Instead, net.c directly integrates the WIZnet driver:

#include "wizchip_conf.h"
#include "socket.h"

The communication path is:

TM4C123
   │
   │ SPI
   ▼
 W5500
   │
   │ TCP
   ▼
Ethernet
   │
   ▼
rotor-brain

The default network configuration is:

  • Field Unit IP: 192.168.1.5
  • TCP Control Port: 7700
  • Brain HTTP / WebSocket Port: 8090
  • rotctld Interface: 4533

The field unit opens a TCP server on port 7700 and accepts a connection from rotor-brain.

Through this connection, the W5500 carries:

  • Motion commands
  • Command acknowledgements
  • Configuration updates
  • Fault-control commands
  • Position telemetry
  • RF switch status
  • Motor duty-cycle information

This makes the W5500 a core part of the control path between the embedded hardware and the higher-level antenna-control software.

4. Command and Telemetry

Communication between rotor-brain and the field unit uses human-readable, newline-delimited JSON messages.

For example, a motion command can be sent as:

{
  "type": "set_motion",
  "seq": 10,
  "az": "cw",
  "el": "up"
}

The firmware supports commands for:

  • Azimuth CW / CCW
  • Elevation UP / DOWN
  • Stop
  • Park
  • Emergency Stop
  • Travel Limits
  • RF / Polarization Control
  • Network Configuration
  • Obstacle Configuration
  • Reboot

Each command includes a sequence number, and the field unit returns an acknowledgement indicating whether the request was accepted.

The telemetry stream reports information such as:

  • Azimuth position
  • Elevation position
  • Current motion direction
  • RF switch state
  • Current controller state
  • Motor duty-cycle percentage
  • Timestamp
  • Sequence number

20 Hz Telemetry

The embedded main control loop runs at 100 Hz.

Telemetry is generated every five control-loop ticks, producing an update rate of approximately 20 Hz.

100 Hz Main Control Loop
          │
      every 5 ticks
          ▼
   20 Hz Telemetry
          │
          ▼
    W5500 TCP

An early project brief proposed using TCP for commands and UDP for telemetry.

However, the current net.c implementation sends both commands and telemetry over the active TCP connection.

The code comments explain that the current hardware configuration experienced problems with UDP transmission, so the implementation routes telemetry through the working TCP socket.

For a technical review, the actual source-code implementation should therefore be considered authoritative over the earlier design brief.

5. Low-Level W5500 Handling

One of the most interesting parts of this project is the amount of direct W5500 socket handling implemented in net.c.

The firmware does more than simply call a high-level send() function.

It directly manages:

  • W5500 socket states
  • TCP connection establishment
  • Disconnect and timeout conditions
  • TX buffer access
  • TX pointer synchronization
  • Transmission-completion status

A particularly important detail is the handling of consecutive TCP transmissions.

The source code notes that simply waiting for the W5500 command register to clear is not sufficient to guarantee that the previous packet has completely left the chip.

To avoid starting another buffer write too early, the firmware waits for Sn_IR_SENDOK before proceeding with the next transmission.

Write TCP Data
      │
      ▼
W5500 TX Buffer
      │
      ▼
   SEND Command
      │
      ▼
 Wait Sn_IR_SENDOK
      │
      ▼
Next Transmission

The project also includes a workaround that maintains the TX write pointer in software.

This was added after the developer observed pointer behavior that could result in malformed or concatenated acknowledgement frames during back-to-back transmissions.

These implementation details make Rotor Controller particularly interesting as a practical example of low-level W5500 socket and internal-buffer management rather than a simple Ethernet connectivity demo.

6. Local Safety Control

Because an antenna rotator controls physical motors, safety cannot depend entirely on a network-connected application.

Rotor Controller therefore keeps critical safety functions inside the field unit.

The design principle can be summarized as:

Brain requests motion
        │
        ▼
 Field Unit checks safety
        │
        ▼
 Motor output

Hardware Emergency Stop

The A9 / PB1 input provides a hardware emergency-stop function.

When the input is pulled LOW, all motor motion is stopped immediately.

The emergency-stop condition is latched.

This means that simply releasing the physical input does not automatically restart the antenna.

The fault must be explicitly acknowledged before new movement commands are accepted.

Hardware Watchdog

The TM4C123 hardware watchdog is serviced during normal operation.

If the main control loop hangs or stops running correctly, the watchdog resets the MCU.

After reset, motor outputs return to a safe de-energized state.

Travel Limits

Azimuth and elevation travel limits are enforced inside the field unit.

This prevents a remote command from driving the antenna beyond its allowed physical range.

Park Position

The default park position is:

  • Azimuth: 180°
  • Elevation: 45°

The park function can be requested through software or triggered locally through the hardware input.

7. Obstacle Avoidance

Another distinctive feature of Rotor Controller is its sector-based obstacle avoidance system.

The azimuth range is divided into 90 sectors of 5° each.

Each sector can define a minimum allowed elevation.

For example, if a building or tree is located between azimuth 45° and 50°, the controller can be configured as:

AZ 45° ~ 50°
      │
      └── Minimum EL = 20°

When the antenna is pointing through that sector, the controller prevents elevation from moving below the configured floor.

Azimuth movement can continue, but downward elevation motion stops at the safety boundary.

The project also provides a training mode.

The user can manually point the antenna to the edge of an obstacle and record the current azimuth sector and elevation as a new obstacle limit.

An additional margin can be applied above the recorded position.

This provides a practical method for adapting the system to buildings, trees, towers, or other obstacles around a real antenna installation.

Related WIZnet Maker Projects

8. Comparable Projects

Several WIZnet Maker projects provide useful comparison points for Rotor Controller.

Ethernet Hamlib Adaptor for the G-5500

This is the closest direct comparison.

It uses an RP2040-based W5500-EVB-Pico to connect a Yaesu G-5500 series azimuth/elevation rotator to Ethernet and provides a Hamlib-compatible rotctld interface.

Both projects address essentially the same class of equipment, but Rotor Controller adds a separate brain architecture, local safety logic, detailed telemetry, and obstacle management.

https://maker.wiznet.io/josephsr/projects/ethernet-hamlib-adaptor-for-the-g-5500-azimuth-elevation-rotator/

EME-CRTL-KGK-001

EME-CRTL-KGK-001 uses an Arduino Mega and W5500 to provide Ethernet-connected azimuth/elevation control for an EME antenna system.

It is another example of applying W5500 Ethernet to remote antenna positioning, but it uses a different controller architecture and communication approach.

https://maker.wiznet.io/Hannah/projects/eme-crtl-kgk-001/

AnTrack-Pro

AnTrack-Pro is an ESP32-based antenna-tracking platform combining absolute encoders, GPS, motor control, and optional W5500 Ethernet.

Compared with Rotor Controller, AnTrack-Pro focuses more broadly on antenna tracking hardware, while Rotor Controller places stronger emphasis on its field-unit/brain architecture, Hamlib integration, and local motor safety.

https://maker.wiznet.io/irina/projects/antrack-pro/

9. Project Comparison

FeatureRotor ControllerG-5500 Hamlib AdaptorEME-CRTL-KGK-001AnTrack-Pro
MCUTM4C123RP2040Arduino MegaESP32
WIZnetW5500W5500W5500W5500 optional
TargetG-5500DCG-5500EME RotatorAntenna Tracker
Ethernet ControlYesYesYesYes
Hamlib Integrationrotctld shimYesDifferent protocolTracking software
Local SafetyStrongBasic controlSafety controlMotor protection
Hardware ESTOPYes–––
Obstacle Map90 sectors–––
Telemetry20 Hz TCPTCPEthernetEthernet
W5500 IntegrationDirect socket APIEthernet interfaceEthernetOptional Ethernet

Key Difference

The most notable difference in Rotor Controller is the separation between high-level tracking logic and low-level motor safety.

rotor-brain
    │
    │ Motion Request
    ▼
Field Unit
    │
    ├── Position Check
    ├── Travel Limit
    ├── Emergency Stop
    ├── Obstacle Floor
    └── Safety State Machine
    │
    ▼
Motor Output

rotor-brain requests antenna movement, but the final decision to energize the motor outputs is made locally by the field-unit state machine.

This architecture combines Ethernet control, antenna positioning, telemetry, and physical safety while keeping critical motor-control decisions independent of the higher-level application.


FAQ

What role does the W5500 play in this project?

The W5500 is connected to the TM4C123 over SPI and provides the Ethernet TCP communication path between the field unit and rotor-brain.

The firmware directly uses WIZnet's wizchip_conf.h and socket.h APIs.

Is telemetry sent over UDP?

The early design brief proposed UDP telemetry.

However, the current firmware sends approximately 20 Hz telemetry over the same TCP connection used between the field unit and the brain.

What happens if the network connection is lost?

Critical motor safety is handled locally by the field unit rather than being delegated entirely to the remote software.

The controller monitors network state along with emergency-stop, travel-limit, obstacle, and other safety conditions before driving the motors.

Can it work with satellite-tracking software?

Yes.

rotor-hamlib provides a rotctld-compatible TCP interface, allowing applications such as SkyRoof, gpredict, and WSJT-X to communicate with the controller.

Can the controller avoid nearby buildings or trees?

Yes.

The azimuth range is divided into 90 sectors, and each sector can define a minimum elevation floor.

This prevents the antenna from moving too low when pointing toward a known obstacle.

Comments

Similar projects you might like

Comments