ESP32-S3 based WiFi / USB Rotator Interface
Control a YAESU antenna rotator from a PC over WiFi or USB, or from the Control Panel (module M2).
Overview
This module can be used:
- As a standalone module connected to a YAESU rotator. With the Rotator_ESP32S3_simple_M1 firmware, it allows the rotator to be controlled from a PC using suitable software, either over WiFi or via a USB-C cable.
- Together with the 7" touchscreen display Control Panel (module M2).
Schematic
Description
Module M1 is a small board with an ESP32-S3 N16R8 module that connects to the EXT CONTROL connector (6-pin mini-DIN) of a YAESU rotator control unit – the G-800, G-1000 or G-2800 in the DXA or DXC series (tested with the G-2800DXC). The module reads the current azimuth (the voltage from the rotator’s potentiometer) and uses its output pins to turn the rotator CW or CCW. It communicates with a PC via USB-C or wirelessly over WiFi.
The module can be powered in two ways: from an external 6–15 V supply (for example, the 13.8 V supply in your ham shack), or via USB-C, which is also used to program the module.
Analog azimuth input
The control unit provides a voltage proportional to the rotator's position. This voltage can reach a maximum of approximately 4.5 V for the 450° range. The maximum permissible voltage on the MCU input pin is 3.3 V, so a voltage divider formed by R3 and R4 must be used. C6 and C3 filter out short spikes and smooth the divider's output voltage, which helps keep the measurement stable.
The input resistance of the divider is unusually high, but there is a good reason for it. It is not primarily to avoid loading the voltage source — it is because of how the ESP32-S3 module behaves when it is switched off and unpowered (more on this later). In any case, I do not recommend changing the divider values without a thorough understanding of the role of each component.
CW and CCW outputs
Rotation is started by connecting the corresponding pin of the YAESU control unit connector to ground. This is done by transistors T1 and T2 (MMBT3904 or any other general-purpose NPN transistor with the same pinout) connected as switches. They are driven from pins IO9 (CCW) and IO10 (CW) through resistors R1 and R2.
Pull-down resistors R6 and R5 keep the transistors reliably switched off during microcontroller start-up, but above all when the YAESU control unit is powered normally while module M1 is unpowered. In this particular case, there is still voltage on the potentiometer pin, which causes a current to flow through the R3/R4 divider into the ESP32-S3 module. Due to the internal circuitry of the ESP32-S3, in some cases (depending on the antenna's rotation angle) a voltage and current high enough to switch on T1 and T2 can appear on outputs IO9 and IO10. Resistors R3 and R6 (R5) form a voltage divider that keeps this parasitic voltage reliably below the level needed to switch on T1 (T2). This is why resistor R3 (and therefore also R4) of the R3/R4 divider must have a higher value.
Capacitors C1 and C2 on the collectors suppress RF interference picked up by the connecting cable.
Power supply
Accurate voltage measurement with an MCU requires a stable power supply for the MCU. In our case, with a maximum MCU input voltage of 3.3 V (in practice less) and an azimuth display resolution of 1°, we find that we must reliably resolve voltage changes on the order of millivolts (3.3 V / 450° ≈ 7 mV per degree). That is why I used a two-stage power supply for the MCU and its A/D converter. First, a DC/DC converter efficiently reduces the input voltage to about 5 V; this voltage is not entirely clean and contains voltage spikes. Then, in the second stage, a linear regulator reduces it to the required 3.3 V, with a much smoother and more stable output that comes close to ideal.
The ESP32-S3 module is powered by an AP2112K-3.3. Its datasheet lists the following parameters, which are more than sufficient for this project:
- Output current: 600 mA
- Excellent load regulation: 0.2 %/A
- Excellent line regulation: 0.02 %/V
- Low output noise: 50 µVRMS
- PSRR: −65 dB at 100 Hz and 1 kHz
For the DC/DC converter, I chose the TPS54202 (fixed 500 kHz switching frequency) because I have worked with this chip before and have a proven component layout (at switching frequencies above 300 kHz, the layout already plays a significant role). The converter follows the datasheet reference circuit; the only additions are ferrite beads at the input and output, which make it harder for unwanted RF components to pass into and out of the converter. The value of R10 (49.9 Ω) is not critical — I used 51 Ω because I had it on hand.
By changing R11, you can change the converter's output voltage and thus reduce the load on the AP2112K. I used R11 = 13 kΩ instead of the 13.3 kΩ shown in the schematic, because that is what I had on hand. Even with this value, the AP2112K does not get noticeably warm; nevertheless, I recommend R11 = 15 kΩ or 16 kΩ (depending on the type of output diode used).
Diodes: At the input of the AP2112K you can see two diodes. Their purpose is to ensure that current always flows only into the regulator, and never from the converter into the USB port (or from USB into the converter). The exact diode type is not prescribed. However, ordinary silicon diodes are more suitable because of their larger voltage drop: the supply voltage (from the DC/DC converter or the USB port) is reduced, and so is the power that the AP2112K has to dissipate as heat. For the diode after the DC/DC converter, a Schottky diode can also be used, especially if the converter’s output voltage is lowered (I used one simply because I had plenty on hand). The AP2112K input must remain at least 3.6 V for reliable operation. (With R11 = 18 kΩ, i.e. 3.91 V at the converter output, only a Schottky diode is an option.)
Microcontroller, USB and buttons
The heart of the module is the ESP32-S3 N16R8. This module has enough computing power (considerably more than an Arduino Uno) even if the project is extended with further functions (such as monitoring weather data), but above all it has integrated WiFi, which makes installing and using the device easier.
For communication with the computer and for programming, its built-in USB interface on pins IO19 (D−) and IO20 (D+) is used, so no separate USB–UART converter is needed. The two 5.1 kΩ resistors on the CC pins of the USB-C connector identify the module as a power consumer (sink), so that a USB-C power source, such as a charger or a PC with a USB-C port, supplies 5 V. (Without these resistors, the module will not be powered from a USB-C source; only a USB-A to USB-C cable would still work.)
The RST button resets the module. The BOOT button on pin IO0 is normally needed only once: before the very first firmware upload to the ESP32-S3, press and hold BOOT, then press and release RST (while still holding BOOT), and only then release BOOT. The module is now in download mode, and the first firmware can be uploaded. After that, the BOOT button is no longer needed — as long as the firmware is running, the upload tool switches the module into download mode automatically over USB. That is why I did not solder it on my PCB. The procedure is only needed again if faulty firmware crashes or disables the USB interface; in that case, the BOOT button pads can simply be bridged briefly with tweezers.
Enclosure
Download
If you are interested in the module M1 PCB, I can offer it for 3 EUR. A PCB fully assembled with components, including a genuine Espressif ESP32-S3 N16R8 module, costs approximately 35 EUR.


