DIY 3D-Printed Cycloidal Drive from Scratch: ESP32S3 Control Board and Motion Planning in Full

A Reddit user built a 3D-printed cycloidal drive from scratch, integrating ESP32S3 control and encoder closed loop, and thanked the community for its help.
A Reddit user shared in r/robotics their project to build a 3D-printed cycloidal drive from scratch, covering the mechanical structure, a self-made ESP32S3-based main control board, encoder feedback, and motion planning algorithms, achieving full-stack development. The project is operational, but the J1 joint has jerkiness and the overall transmission has backlash; the user plans to resolve these in the next iteration and still has one degree of freedom to add. The post specifically thanks the community for earlier suggestions that helped overcome technical obstacles, demonstrating the practical value of open-source hardware community collaboration for individual DIYers. The article also summarizes reusable experience such as ESP32S3 selection, encoder closed loop, full-stack development, and incremental iteration.
A Reddit user posted in r/robotics to share progress on their project to build a 3D-printed cycloidal drive from scratch, and gave special thanks to the community for earlier suggestions that helped solve technical challenges. The project covers full-stack development from mechanical structure to electronic control, including an ESP32S3-based main control board, encoder feedback, and motion planning algorithms.

Project Overview: Full-Stack Development from Mechanics to Electronics
According to the user, the entire project was "done from scratch," including not only the 3D-printed cycloidal drive itself but also a self-made control board (ESP32S3), encoder integration, and motion planning. This means every part of the process—from physical transmission to software algorithms—was completed independently by one person, without relying on off-the-shelf commercial modules.
The cycloidal drive itself is a high-reduction-ratio, compact transmission solution commonly used in robot joints. Manufacturing such precision components with 3D printing places high demands on tolerance control and material selection. The user noted that all drive components are currently 3D-printed, so there is still some play (backlash), but they plan to address this in the next iteration.
How a cycloidal drive works: A cycloidal drive achieves reduction through the engagement of an eccentrically mounted cycloidal disc with surrounding pin teeth. The tooth profile of the cycloidal disc is an equidistant curve of a curtate epicycloid. When the input shaft drives the eccentric bearing to rotate, the cycloidal disc simultaneously orbits and rotates; the pin teeth constrain the motion so that the orbital motion is converted into low-speed rotational output. A single-stage reduction ratio can reach tens to one, and multiple teeth engage simultaneously, providing high stiffness and impact resistance. Compared with harmonic drives, cycloidal drives have no flexible elements and are better suited to heavy-load scenarios; however, they require high machining precision, and when 3D printing, tooth-profile errors and layer lines directly translate into backlash.
Backlash (play): Backlash refers to the angular lost motion at the output before it begins to follow when the input reverses direction in a transmission system. For robot joints, backlash undermines the phase margin of encoder-based closed-loop control, causing positioning jitter or oscillation. The main sources of backlash in 3D-printed cycloidal drives include: tooth-profile printing deviations, eccentric bearing clearance, offset of the actual contact points between pin teeth and the cycloidal disc, and elastic deformation of plastic parts under load. Common compensation methods include preloaded assembly, staggered arrangement of dual cycloidal discs, and calibration of clearance at the control layer using measured encoder values.
Current Progress and Remaining Issues
The project is already operational, and the user posted a short video showing its current state. However, they also candidly pointed out two areas for improvement: first, the J1 joint (the first degree of freedom) still has a "crunchy" (jerky, unsmooth) issue that needs fixing; second, there is backlash in the overall transmission, which affects positioning accuracy in high-precision motion control.
The user mentioned that one more degree of freedom (dof) remains to be added, indicating that the entire robotic arm or motion platform is not yet fully complete, but the main architecture is already working. From "happy that it is all coming together now," it is clear that they are optimistic about the current progress.
The Value of Community Collaboration
In the post, the user thanked the community multiple times: "a lot of your suggestions really did help me." They included a link to the original help request, indicating that earlier technical obstacles were overcome by finding solutions through community discussion. This closed loop—from asking for help to receiving feedback to showing results—reflects the practical value of open-source hardware community collaboration, especially for individual DIYers, for whom community experience is often more direct and effective than official documentation.
Interestingly, the user did not specify exactly which suggestions were helpful, but based on the project content, they may have involved reducer parameter design, 3D-printing tolerance compensation, or encoder interface configuration for the ESP32S3.
Technical Highlights and Reusable Experience
This project has several DIY practices worth noting:
- ESP32S3 as the main controller: The chip offers strong processing capability and rich peripheral interfaces, making it suitable for small robot projects that require real-time motion planning.
- Encoder closed loop: When 3D-printed transmissions have backlash, encoder feedback is especially important for position control.
- Full-stack development: From mechanical design to PCB to firmware, the individual completed the entire development chain—high demands on capability, but maximum controllability.
- Iterative approach: The user explicitly stated that the current version's issues (backlash, J1 jerkiness) will be resolved in the next iteration; this incremental improvement is typical of DIY projects.
For hobbyists who want to attempt similar projects, this case provides a reference path: first use 3D printing to quickly validate the mechanical solution, then gradually refine electronic control and algorithms—there is no need to get everything right in one go.
The applicable boundaries of the ESP32-S3: The ESP32-S3 is a dual-core Xtensa LX7 chip launched by Espressif, with a main frequency of 240 MHz and built-in USB OTG, abundant GPIOs, and peripherals such as RMT/PCNT. Its PCNT (pulse counter) hardware module can efficiently read incremental encoders, and RMT can generate precise pulse trains for stepper motors, enabling it to balance real-time performance and cost in small joint control. However, it is not a hard real-time platform; if motion planning involves multi-axis interpolation or high-frequency closed loops, FreeRTOS task priorities and timer interrupts are needed to ensure determinism, and complex trajectory planning is still best delegated to a host computer.
The role of encoder closed loop in low-cost transmissions: When the mechanical transmission itself has irreducible backlash, the encoder's mounting location determines how much the closed loop can compensate. If the encoder is mounted on the motor side (semi-closed loop), it can only correct motor following error and cannot perceive output-side backlash; if mounted on the joint output side (fully closed loop), it can directly measure load position but introduces stability challenges from transmission nonlinearity. A common compromise in DIY projects is a motor-side encoder plus output-side absolute position calibration, with clearance compensation during direction reversal.
Future Directions
The user plans to add one more degree of freedom and fix existing issues. If the backlash problem is improved through structural optimization or compensation algorithms, this 3D-printed cycloidal drive solution could see broader application in light-load robot joints. The community's next round of feedback may focus on the specific cause of the J1 jerkiness—whether it is a gear meshing issue, bearing clearance, or assembly error is currently unclear.
Overall, this is a typical personal robotics project: clear goals, a clear path, openly shared problems, and benefits from community collaboration.
One-line Summary
A Reddit user built a 3D-printed cycloidal drive from scratch, integrating ESP32S3 control and encoder closed loop, and thanked the community for its help.
Paragraph Summary
A Reddit user shared in r/robotics their project to build a 3D-printed cycloidal drive from scratch, covering the mechanical structure, a self-made ESP32S3-based main control board, encoder feedback, and motion planning algorithms, achieving full-stack development. The project is operational, but the J1 joint has jerkiness and the overall transmission has backlash; the user plans to resolve these in the next iteration and still has one degree of freedom to add. The post specifically thanks the community for earlier suggestions that helped overcome technical obstacles, demonstrating the practical value of open-source hardware community collaboration for individual DIYers. The article also summarizes reusable experience such as ESP32S3 selection, encoder closed loop, full-stack development, and incremental iteration.
Related articles

GRPO Reinforcement Learning Explained: Group Relative Policy Optimization That Teaches LLMs to Reason
A deep dive into the GRPO reinforcement learning algorithm: how in-group relative advantages are computed, how clipping and the importance sampling ratio work in the loss, the role of KL divergence constraints, and GRPO's training-cost advantage over PPO—with round-by-round mathematical derivations.

Mercedes-Benz Launches Point-to-Point Urban Assisted Driving, Directly Challenging Tesla FSD
Mercedes-Benz will launch hands-off highway driving and point-to-point urban navigation assistance next year, directly targeting Tesla FSD. This article analyzes Mercedes' dual-track layout, the technical challenges of urban point-to-point, and the competitive differences between traditional automakers and Tesla in assisted driving routes.

California Attorney General Sues OpenAI: First Legal Accountability Case for Rogue AI Agent Incidents
California AG sues OpenAI over rogue AI agent incidents, among the first attempts to hold AI labs legally liable. Analysis of compliance, risk pricing, and regulatory impact.