Wireless Stepper Motor Driver with ESP32 and TMC2240

Share

The Wireless Stepper Driver is a compact and efficient motion control system designed to control stepper motors over Wi-Fi. It is built using the TMC2240 stepper driver and an ESP32-S3 microcontroller, offering precise motor control with the convenience of wireless communication. This makes it ideal for applications where remote or automated movement is needed.

One of the standout features of this system is its support for USB Power Delivery (USB-PD). The driver can automatically negotiate power input levels, operating at 5V, 9V, 12V, or 15V depending on the connected source. This flexibility allows the system to be used in a wide range of environments, from delicate electronics setups to more demanding industrial systems.

A simple web interface serves as the control panel, accessible from any device on the same network. Through this interface, users can send commands to move the motor, check system status, or monitor parameters like temperature and current draw. Real-time feedback is provided in JSON format, making it easy to integrate with other tools or custom dashboards.

To ensure accurate movement, the system uses an AS5600 magnetic encoder for closed-loop positioning. This means the motor can confirm its exact position after every move, reducing errors and increasing reliability in precision tasks.

Visual feedback is provided using RGB LEDs, which change color based on the input voltage, like green for 5V, blue for 9V, purple for 12V, and orange for 15V. The LEDs also indicate motor activity and Wi-Fi connection status, helping users quickly understand the system’s state at a glance.

Internally, the firmware is optimized for responsiveness using non-blocking timers. This allows the motor to be controlled smoothly without interrupting the web server or other background tasks. Whether you're building a camera slider, a turntable, or a small automation system, the Wireless Stepper Driver offers a simple yet powerful solution for remote-controlled motion.
 

Code File

Code and Schematics File Wireless Stepper Motor ControllerCode and Schematics File Wireless Stepper Motor Controller

PCB Gerber File

PCB Gerber File Wireless Stepper Motor ControllerPCB Gerber File Wireless Stepper Motor Controller
 
ValueManufacturerDigiKey Part NumberDatasheet LinkQuantity
100uF 35VKEMET399-A768KE107M1VLAE036CT-ND

Datasheet

1
0.1uF/50VMurata Electronics490-6328-1-ND

Datasheet

6
2.2uFSamsung Electro-Mechanics1276-1040-1-ND

Datasheet

1
2.2uF/25VSamsung Electro-Mechanics1276-1040-1-ND

Datasheet

1
22nF/50VMurata Electronics1276-CL10B223KO8WPNCCT-ND

Datasheet

1
1uF/50VSamsung Electro-Mechanics1276-1946-1-ND

Datasheet

3
SMF40AVishay General Semiconductor - Diodes Division112-SMF40A-HM3-08CT-ND

Datasheet

1
SD05Littelfuse Inc.F6191CT-ND

Datasheet

1
USB_C_Receptacle_USB2.0GCT2073-USB4105-GF-ACT-ND

Datasheet

1
Conn_01x04JST Sales America Inc.455-1721-ND

Datasheet

1
LED1Lite-On Inc.160-1447-1-ND

Datasheet

1
XL-1615RGBC-YGXINGLIGHT5962-XL-1615RGBC-YGTR-ND

Datasheet

1
AO3400AUMW4518-AO3400ACT-ND

Datasheet

1
4.7KYAGEO311-4.70KHRCT-ND

Datasheet

6
100KYAGEO311-100KHRCT-ND

Datasheet

1
10KYAGEO311-10.0KHRCT-ND

Datasheet

7
1KYAGEO311-1KMCT-ND

Datasheet

2
100RYAGEO311-100HRCT-ND

Datasheet

2
0RBourns Inc.CR0603AJ/-000EASCT-ND

Datasheet

1
12KYAGEO311-12.4KHRCT-ND

Datasheet

1
2K/1WSusumu408-1891-1-ND

Datasheet

1
33RYAGEO311-33.2HRCT-ND

Datasheet

2
330RYAGEO311-330GRCT-ND

Datasheet

1
Switch EVQ-P7A01PPanasonic Electronic ComponentsP16763CT-ND

Datasheet

4
FUSB302BMPXonsemiFUSB302BMPXCT-ND

Datasheet

1
ADPL44002AUJZAnalog Devices Inc.505-ADPL44002AUJZ-3.3-R7CT-ND

Datasheet

1
AS5600-ASOMams-OSRAM USA INC.AS5600-ASOMCT-ND

Datasheet

1
TMC2240ATJ+TAnalog Devices Inc./Maxim Integrated175-TMC2240ATJ+TCT-ND

Datasheet

1
ADM803SAKSZAnalog Devices Inc.505-ADM803SAKSZ-REEL7CT-ND

Datasheet

1
ESP32-S3-WROOM-1Espressif Systems1965-ESP32-S3-WROOM-1-N16R8CT-ND

Datasheet

1
Have any question related to this Article?