ESP32 & ESP8266

TNY-360: Open ESP32-S3 Robot Dog That Catches Your Build Mistakes

TNY-360: Open ESP32-S3 Robot Dog That Catches Your Build Mistakes

Picture the moment after the last screw goes in. Twelve servos, four legs, a tangle of JST leads, and a robot dog sitting on the bench that has never stood up. In most student builds this is where two weeks vanish: a hip horn sits one spline off, a knee servo is on the wrong channel, and nobody knows which until it tips over. Paul Loisil designed the TNY-360 so that this moment goes differently. Power it on, and the firmware’s self-check tells you which leg is wrong and what to change. Adafruit flagged it this week after a write-up on Open Electronics, and the whole design is open hardware under CC BY-NC-SA 4.0.

What he built

TNY-360 is a desk-sized quadruped aimed at classrooms and first-time builders. The controller is an ESP32-S3 N16R8 module running C++ firmware written on ESP-IDF inside a PlatformIO project. Twelve TowerPro MG996R servos drive the legs, two micro servos move the ears, and a PCA9685 16-channel PWM driver fans the control signals out over I2C. The sensor stack: an OV2640 camera, a VL53L0X time-of-flight distance sensor, an IMU, a microphone and speaker, and a 128×64 SH1106 OLED for a face. Power is a 3S pack of six Samsung INR18650-25R cells with a BMS and an INA219 current monitor. Open Electronics lists the v2 barebones kit at 332 USD, the complete maker kit at 458 USD, and an assembled unit at 688 USD, and every Gerber, BOM, and FreeCAD model sits in the GitHub repo if you would rather source parts yourself.

How the self-fixing trick works

A stock MG996R is open loop: you command an angle and hope. Loisil modified each one with a tiny op-amp buffer PCB that taps the internal potentiometer and returns a clean analog position signal to the controller. With feedback on all 12 joints the firmware runs closed-loop control, compensates for backlash and actuator lag, and compares where it thinks a leg is against where it actually sits. Mechanical endstops give a known reference, so a horn one tooth off or a servo on the wrong PCA9685 channel shows up as a mismatch during calibration instead of a face-plant later. The two ESP32-S3 cores split the job: a 200 Hz kinematics loop on one, WebSockets and the browser UI on the other. Separate control, sensor, brain, and power boards connect over JST-PH cables, so a fried board is a swap rather than a rebuild. Programming happens in TNY-Coder, a block-based web app, so a student can get the dog walking before anyone opens a C++ file.

The takeaway

The clever part of this project is not the gait but the decision to add position feedback to a cheap hobby servo. That one mod turns a frustrating assembly into a guided one, and it is the rule you want in any thesis robot: measure the joint, never assume it. Planning your own quadruped? Start by soldering a potentiometer tap and an op-amp buffer onto a single MG996R and reading it on an ESP32 ADC pin before you build four legs. The firmware, PCB files, and CAD are at github.com/TNY-Robotics/TNY-360, and the original article with kit pricing is on Open Electronics.

Frequently Asked Questions

How does the TNY-360 detect assembly mistakes?

Each MG996R leg servo carries a small op-amp buffer board that taps the servo’s internal potentiometer and sends an analog position signal back to the ESP32-S3. During calibration the firmware drives each joint against mechanical endstops and compares the commanded angle with the measured one, so a horn mounted a spline off or a servo on the wrong PCA9685 channel shows up as a mismatch, and the robot reports what to fix.

What parts are in a TNY-360 and what does a kit cost?

An ESP32-S3 N16R8 module, 12 modified TowerPro MG996R servos for the legs, two micro servos for the ears, a PCA9685 PWM driver, an OV2640 camera, a VL53L0X distance sensor, an IMU, an I2S microphone and speaker, a 128×64 SH1106 OLED, and a 3S pack of six 18650 cells with a BMS and INA219 monitor. Open Electronics lists the v2 barebones kit at 332 USD, the complete maker kit at 458 USD, and an assembled unit at 688 USD; all PCB, BOM, and CAD files are free on GitHub under CC BY-NC-SA 4.0.

What will I learn if I build this?

Closed-loop servo control from the ground up: how to add position feedback to a hobby servo, read it on an ADC pin, and compensate for backlash and latency in a 200 Hz kinematics loop. You will also wire a multi-board system over I2C and JST cables, manage a 3S lithium pack safely with a BMS and current monitor, and split real-time motion from Wi-Fi and UI work across the two ESP32-S3 cores, all skills that transfer directly to a robotics thesis or competition entry.

This article was inspired by reporting from Adafruit. Find the parts and modules to build it at Circuitrocks.

// written by Ann Arandia

Ann Arandia covers community projects and maker events for the Circuitrocks blog. She writes about local workshops, kid-friendly electronics, and the Philippine maker scene — the people, the meet-ups, the projects that come out of them.