Phone-controlled 360° turntable: 3D printing and ESP32-C3
A 3D-printed product turntable running on an ESP32-C3, controlled over Wi-Fi from your phone or a knob. Angle moves, step-and-shoot photo mode, wiring and code.
Published · Updated

The first FoxBench DIY machine is a product turntable: a round platter that turns slowly and evenly, for filming products in 360° on a backdrop. It will also be the most reused machine on the channel, because every machine built after it will stand on this platter for its final shot.
The goals from the start:
- Turn slowly and smoothly, with no jitter, so the footage stays clean.
- Control from a phone over Wi-Fi, with no app to install.
- Still usable without a phone: a knob for speed, a button to reverse and to start/stop.
- Turn by angle and a step-and-shoot mode for 360° product photos.
- Carry around 1kg without the platter sagging.
- Run from an ordinary USB-C cable.
Work in progress: the design is done and test prints and the circuit are being checked. The controller has moved from an Arduino Nano to an ESP32-C3 to add phone control. This post will be updated with photos of the real machine and the video once it is filmed.
CAD design

Overall size is Ø160 × 64.5mm, made of 6 printed parts. Every part is already oriented for printing without supports.
| Part | Size | Notes |
|---|---|---|
| Base | Ø160 × 42mm | ESP32-C3 tray, ULN2003 standoffs, switch mount. Knob and button holes at the front, USB-C opening at the back |
| Top plate | 3mm thick | Center bearing boss, 3 roller blocks, motor mounted from below |
| Platter | Ø150 × 6mm | 1mm recess on top for felt, Ø8 stainless shaft pressed through the center |
| Ring gear | 75 teeth, module 1.2 | Screwed under the platter with 4 M3 screws into brass inserts |
| Pinion | 15 teeth | D-shaped bore, press fit on the motor shaft |
| Push button | — | Goes through the base wall and presses the switch lever inside |
The ESP32-C3 SuperMini (about 22.5 × 18mm) sits in a tray at the back of the base: the board rests on two 2mm ledges (room for wires soldered underneath) with its USB-C port facing the rear opening. Drop it in and hold it with a dab of hot glue.
1:5 gear drive
A 28BYJ-48 stepper drives the 15-tooth pinion, which meshes with the 75-tooth ring gear under the platter. The 15:75 = 1:5 ratio slows the platter down and multiplies torque. The motor tops out at about 12 rpm, so the platter’s top speed is about 2.3 rpm, roughly 26 seconds per turn: slow enough for product shots. One platter revolution is 4096 × 5 = 20,480 half-steps, so angle moves are very fine: about 57 steps per degree.
The gears use +0.25 / −0.25 profile shift and about 0.14mm of backlash, so printed gears run smoothly without binding. The math is in designing 3D-printed gears.
Platter on three rollers
Instead of hanging the whole platter on the center bearing, the platter rides on three 688 bearings used as rollers at a 66mm radius, close to the wall. The center bearing only keeps the platter centered. Two benefits:
- The load goes down near the wall, so the 3mm top plate does not flex under a heavy object.
- The platter lifts straight off for cleaning or replacing the felt.
Print colors
Printed in PLA. The body is a light color to stand out against the blue backdrop, the gears are dark, and the button is a bright color (red or orange) so it reads well on camera.
Parts list
Mechanical (mostly common 3D-printing workshop stock):
| Item | Qty | Used for |
|---|---|---|
| 688 bearing (8×16×5mm) | 4 | 1 center + 3 rollers |
| Ø8 stainless rod | 1 × 18.5mm + 3 × 14.6mm | Center shaft (pressed into platter) + roller axles |
| Ø2 steel pin | 2 × 14mm | Pins holding the limit switch |
| Brass heat-set insert M3×6×4.5 | 4 | Ring gear |
| Brass heat-set insert M3×4×4.5 | 3 | Lid posts in the base |
| M3×6 screw | 8 | Ring gear and ULN2003 board |
| M3×10 screw + M3 nut | 5 screws, 2 nuts | Lid to base, motor mount |
| Adhesive felt (or rubber sheet) | 1 × Ø140mm | Platter surface |
Electronics:
| Item | What to look for |
|---|---|
| ESP32-C3 SuperMini | USB-C, Wi-Fi and Bluetooth built in |
| 28BYJ-48 stepper | The 5V version |
| ULN2003 driver board | The one sold with the 28BYJ-48 |
| Potentiometer | B10K, M7 threaded neck, Ø6 shaft |
| Knob | Fits a Ø6 shaft |
| KW11 limit switch | 16mm lever, used as the button |
| Wire, heat shrink | 24–26AWG |
| USB-C cable + 5V charger | Any phone charger, 1A or more |
Wiring
| ESP32-C3 SuperMini | Connects to |
|---|---|
| GPIO5, GPIO6, GPIO7, GPIO10 | IN1, IN2, IN3, IN4 on the ULN2003 board |
| 5V, GND | + and − on the ULN2003 board |
| GPIO3 | Potentiometer wiper |
| 3V3, GND | Potentiometer outer pins |
| GPIO1 | KW11 switch: COM to GPIO1, NO to GND |
Three differences from the Arduino Nano version:
- The potentiometer goes to 3V3, not 5V. The ESP32-C3 analog inputs only tolerate up to 3.3V.
- The ULN2003 board still runs from 5V on the 5V pin (straight from the USB-C port). The ESP32-C3’s 3.3V control signals still drive the ULN2003.
- Avoid GPIO2, GPIO8 and GPIO9: they are ESP32-C3 boot strapping pins (GPIO9 is the BOOT button, GPIO8 the on-board LED). Hooking parts to them can stop the board from booting.
ESP32-C3 code
Download the code: ban-xoay-esp32c3.ino
No external libraries needed: Wi-Fi, the web server and settings storage all come with the ESP32 core for the Arduino IDE.
Uploading:
- Arduino IDE → File → Preferences, add to Additional boards manager URLs:
https://espressif.github.io/arduino-esp32/package_esp32_index.json - Tools → Board → Boards Manager, install esp32 by Espressif (version 3.x).
- Select ESP32C3 Dev Module and set USB CDC On Boot to Enabled.
- Plug in USB-C, pick the port, click Upload. If it will not upload: hold BOOT, tap RESET, release BOOT and try again.
Pins and settings are at the top of the file; change them here if you wire it differently:
const int COIL[4] = {5, 6, 7, 10}; // IN1, IN2, IN3, IN4 on the ULN2003
const int POT_PIN = 3; // potentiometer wiper
const int BTN_PIN = 1; // KW11: COM -> GPIO1, NO -> GND
const long PLATTER_STEPS = 4096 * 5; // 20480 steps per platter turn
const float MAX_SPS = 800.0; // ~2.3 rpm at the platter
const char *AP_SSID = "FoxBench-Turntable";
const char *AP_PASS = "foxbench360"; // change the password
The code drives the four coils with its own half-step sequence (no AccelStepper library), ramps speed up and down on angle moves so the platter does not jerk, and switches the coils off when idle to keep the motor cool.
The code compiles for the ESP32-C3 but has not been tested on the finished machine yet. Run the circuit on a breadboard before fitting it into the base.
Controlling it from your phone
- Power the turntable. The ESP32-C3 creates its own Wi-Fi network called FoxBench-Turntable (default password
foxbench360). - On your phone, open Wi-Fi settings and join that network.
- Open a browser and go to http://192.168.4.1. The control page appears: no app to install, works on both iPhone and Android.
The control page has:
| Feature | How to use it |
|---|---|
| Run / Stop / Reverse | Three buttons at the top |
| Speed | Slider from 0 to about 2.3 rpm |
| Turn by an angle and stop | Enter degrees (360 is one turn, −90 turns back 90°), or tap the quick 90° buttons |
| Step-and-shoot photos | Enter the step angle, pause time and number of shots. For example 15° × 24 shots is a full turn: the platter turns 15°, pauses 2 seconds for your photo, then continues |
| Save settings | Remembers speed, direction and auto-start on power-up |
Phone and knob work side by side: whichever changed last wins. The knob only counts when you actually turn it, so it never overrides a speed you just set on the phone.
The button on the machine has two actions:
- Short press: reverse direction.
- Hold for 1 second: start or stop.
360° photo tip: put the camera on a tripod and use step-and-shoot with 10–15° per shot and a 2–3 second pause. Take a photo each time the platter stops, then stitch them into a spin image or feed them into photogrammetry software for a 3D scan.
Assembly
- Print the 6 parts plus a tolerance test piece. Print the gear pair first to check the mesh.
- Cut the Ø8 stainless rod with a cut-off wheel: one 18.5mm piece and three 14.6mm pieces, then grind the ends flat.
- Install the M3 brass inserts with a soldering iron into the ring gear and the 3 posts in the base (see heat-set inserts).
- Press the 688 bearing into the top plate’s center boss, and press the Ø8 shaft into the platter.
- Fit the 3 rollers: drop each bearing into its slot and tap the steel axle through the block.
- Solder wires to the potentiometer and switch, connect ESP32-C3 – ULN2003 – motor, upload the code and try phone control on the bench.
- Mount the motor under the top plate and push the pinion onto its shaft.
- Fit the electronics into the base, insert the two Ø2 pins for the switch, drop the button into its hole and tidy the wires. Line the ESP32-C3’s USB-C port up with the rear opening.
- Screw the ring gear under the platter with 4 M3×6 screws and stick the felt on top.
- Drop the platter in: the shaft goes into the bearing, the platter rests on the 3 rollers and the gears mesh. Fix the top plate to the base with 3 screws.
Printing and tolerance tips
Every printer makes holes a little bigger or smaller. Before printing the full set, print a small test block to tune three key sizes:
- Ø8 shaft holes: about Ø8.2–8.3 for a sliding fit, Ø7.9–8.0 for a press fit.
- 688 bearing pocket: about Ø16.1 for a hand press fit.
- M3 insert holes: about Ø4.0.
The STL pack will include this tolerance test piece. How to make your own is in 3D printing tolerances for shafts and bearings.
Coming next
Once the machine is running, this post will get photos, the YouTube video, screenshots of the control page and a load test with about 1kg on the platter. The next build is a heat-set insert press, used to install the brass inserts for this turntable and every machine after it.