New Parts Arrived - ESP32
In the below photos,
Rectangular one is ESP32-S3 DevKitC-1
And the other one is 5.5 x 2.5mm DC to USB C PD Adapter.



The ESP32 board takes a 5V power input.
Also, to run the XC330 motor, I needed a 5V power.
Bought a 5V 3A power adapter and some jumper cables at the Electronics Market. (Yongsan Electronics Market)



All clear.



Now lets try to move the motor using esp32.
We will gonna use openRB to move the motor, and esp32 for the wifi connection.
Lets first use cloudflare for the test domain.
Phone → Cloudflare → ESP32-S3 → OpenRB-150 → XC330
The key idea is that ESP32 handles Wi-Fi/network communication,
while OpenRB-150 handles the XC330 motor control.
<Step-by-step plan>
Step 1 — Test XC330 with OpenRB-150
Connect XC330 directly to OpenRB-150.
Connect OpenRB-150 to the PC via USB.
Install the OpenRB board support and DYNAMIXEL2Arduino.
Use the current XC330 settings: ID = 1, Baudrate = 57,600.
Upload a simple test program.
Goal: make the XC330 move successfully.
Step 2 — Connect ESP32-S3 to OpenRB-150
Connect ESP32-S3 and OpenRB-150 through UART.
ESP32 sends simple commands such as:
MOVE 2048
OpenRB receives the command and converts it into a DYNAMIXEL command.
Goal: control the XC330 through ESP32.
Step 3 — Add Wi-Fi to ESP32
Connect ESP32-S3 to the home Wi-Fi.
Run a simple HTTP server on the ESP32.
Test something like:
http://ESP32_LOCAL_IP/move?position=2048
Goal: control the motor from another device on the same network.
Step 4 — Add Cloudflare
Do not start with Cloudflare.
Once local control works, add the Internet-facing connection.
The important constraint is no router port forwarding.
ESP32 should maintain an outbound/persistent connection rather than running cloudflared directly on the ESP32.
Goal: control the ESP32 remotely through your Cloudflare domain.
Phone
↓
Cloudflare
↓
ESP32-S3
↓ UART
OpenRB-150
↓ TTL
XC330
1. Motor works → 2. ESP32 controls motor → 3. Wi-Fi works → 4. Cloudflare works → 5. Complete remote system
To be continued in next post.
'Life-Switch robot toy project > Process' 카테고리의 다른 글
| [Solved] ESP32 WebSocket Disconnected 문제 해결 및 배포체인 완성 (0) | 2026.08.31 |
|---|---|
| [PROJECT OVERVIEW] Life Switch (0) | 2026.08.11 |