A ₹920 turntable that turns a small object by an exact angle each time you press a button. It is useful for product photos or for photographing an object from 12, 24 or 36 sides. The page is built around one fact that catches people out: the common 28BYJ-48 stepper does not take exactly 2,048 steps per turn, and ignoring that makes the table drift.
Scope: beginner. This is a design worksheet with illustrative costs. It has not been bench-tested by this site. The step arithmetic below was computed and checked by script. The gear ratio is taken from third-party calculations and listings; we could not open a datasheet excerpt that states it, so confirm it against your own motor by counting turns. The stepper is a low-torque part, so this is for a light object, not a heavy one.
How it works
The 28BYJ-48 is a small geared stepper. The motor inside takes 32 full steps per turn, and a gear train reduces that. The gear ratio is sold as 64:1, but a calculation from the gear tooth counts, quoted on the Arduino forum and in some listings, gives about 63.68:1. With that ratio the output shaft needs 32 × 63.68395 = about 2,037.9 full steps for one turn, not the round 2,048 that most tutorials use.
The difference looks small but it adds up. If you tell the sketch that one turn is 2,048 steps, the table actually turns 360 × 2,048 / 2,037.89 = about 361.8 degrees, so it gains 1.8 degrees every time round. Photographing 36 sides then drifts by more than the gap between two pictures after a few turns.
Bill of materials
| Part | Qty | Unit | Total |
|---|---|---|---|
| Arduino Uno R3 (or compatible) | 1 | ₹550 | ₹550 |
| 28BYJ-48 stepper with ULN2003 driver board | 1 | ₹120 | ₹120 |
| Push button | 1 | ₹10 | ₹10 |
| 5 V supply or USB power bank for the motor | 1 | ₹90 | ₹90 |
| Breadboard | 1 | ₹60 | ₹60 |
| Jumper wires | 1 | ₹50 | ₹50 |
| Round turntable plate (card or acrylic, hand-cut) | 1 | ₹40 | ₹40 |
| Parts total | ₹920 | ||
Scroll the table sideways to see every column.
Prices checked Nov 2026. Shipping and tools are not included.
Prices are illustrative figures for Indian sellers in November 2026, before shipping, and have not been checked against current listings. The motor usually comes with its ULN2003 driver board.
The numbers
| Shots per turn | Steps per shot (true ratio) | Steps per shot (if you assume 2,048) |
|---|---|---|
| 12 | 169.82 | 170.67 |
| 24 | 84.91 | 85.33 |
| 36 | 56.61 | 56.89 |
Because the steps per shot are not whole numbers, rounding each shot makes the error grow. Taking 57 steps for each of 36 shots is 2,052 steps, which is 362.5 degrees, 2.5 degrees too far after one turn. The fix is to keep a running total of the exact fractional steps and move to the rounded total each time, so each shot is at most half a step off and errors never accumulate. Over 36 shots the largest error is 0.49 step, about 0.09 degrees.
Power and wiring
| Part | Arduino Uno | Note |
|---|---|---|
| ULN2003 IN1 to IN4 | D8, D9, D10, D11 | Connect in order |
| ULN2003 power | Separate 5 V supply, common GND | Do not power the motor from the Uno 5V pin if you can avoid it |
| Push button | D2 to GND | Uses the internal pull-up |
Tutorials commonly show the library constructor with the pins in the order 8, 10, 9, 11. If you pass 8, 9, 10, 11 the motor tends to vibrate without turning. Several sources recommend a separate 5 V supply for the motor rather than the Arduino 5V pin.
The sketch
// 28BYJ-48 turntable: advance 360/SHOTS degrees per button press.
// Design worksheet: confirm STEPS_PER_REV by counting turns on your motor.
#include <Stepper.h>
const float STEPS_PER_REV = 2037.886; // 32 x 63.68395, third-party figure
const int SHOTS = 36; // pictures per turn
const int BUTTON_PIN = 2;
Stepper motor(2048, 8, 10, 9, 11); // 2048 only sets the speed scale
float accumulated = 0; // exact steps we should have made
long doneSteps = 0; // whole steps actually made
void releaseCoils() {
for (int pin = 8; pin <= 11; pin++) digitalWrite(pin, LOW);
}
void advance() {
accumulated += STEPS_PER_REV / SHOTS;
long target = lround(accumulated);
motor.step(target - doneSteps);
doneSteps = target;
releaseCoils(); // stops the motor heating; removes holding torque
if (doneSteps >= lround(STEPS_PER_REV)) {
accumulated = 0; // one full turn done
doneSteps = 0;
}
}
void setup() {
pinMode(BUTTON_PIN, INPUT_PULLUP);
motor.setSpeed(10); // rpm, a gentle value for this motor
}
void loop() {
if (digitalRead(BUTTON_PIN) == LOW) {
delay(30); // debounce
if (digitalRead(BUTTON_PIN) == LOW) {
advance();
while (digitalRead(BUTTON_PIN) == LOW) {} // wait for release
}
}
}Releasing the coils lets the motor cool but also lets a light load drift if it is pushed, which is a trade-off; remove the call if you need it to hold. The reset after a full turn leaves an error of about a tenth of a step, roughly 0.02 degrees, which is far below anything you can see.
What other builders report
This section summarises public material in our own words; none of it is our measurement. Third-party listings and forum calculations disagree on the exact gear ratio and on coil resistance, which is why this page tells you to count turns on your own motor. Tutorials commonly suggest speeds around 10 to 15 rpm for this motor and warn that higher speeds risk missed steps, but sources differ and none we found is a datasheet limit.
Test plan
- Direction and pins: confirm the motor turns smoothly. If it only buzzes, check the pin order in the constructor.
- Count a turn: mark the plate and the base, command 2,038 steps, and see where the mark lands. If it is early or late, adjust STEPS_PER_REV and note the result.
- Shot spacing: tape a paper protractor to the base and press the button through one full turn. Record the angle at each stop.
- Return to start: run ten full turns and see whether the mark still lines up. Drift here means the step count is wrong, not the code.
- Load: add the object you will photograph and repeat. Missed steps show up as a mark that stops short.
- Heat: hold the motor after a long run and check it is only warm.
What usually goes wrong
| Symptom | Likely cause | Fix |
|---|---|---|
| Motor buzzes, does not turn | Pins in the wrong order | Use 8, 10, 9, 11 in the constructor |
| Turns but loses position | Speed too high or load too heavy | Lower the rpm, lighten the load |
| Mark drifts each turn | Wrong steps per revolution | Count turns, correct STEPS_PER_REV |
| Table shifts when idle | Coils released | Keep the coils on if holding matters |
| Uno resets | Motor on the Uno 5V pin | Separate 5 V supply with common ground |
| Button double-fires | Contact bounce | Keep the 30 ms debounce |
Upgrades
- Camera trigger: add a relay or optocoupler to fire a camera after each move.
- Home switch: add a limit switch so it always starts from the same angle.
- Smoother motion: half-step for finer steps, with the step count doubled.
- Bigger load: move to a NEMA 17 stepper and a proper driver.
Cost and parts notes
The ₹920 total is an illustration and does not include shipping. Use the cost calculator to compare sellers.
Common questions
How many steps per revolution does a 28BYJ-48 take?
Tutorials use 2,048 in full-step mode and 4,096 in half-step. Calculations from the gear teeth give about 2,038 and 4,076, so count turns on your own motor.
Why does my table drift?
Usually because the sketch assumes 2,048 steps per turn, or because each shot is rounded separately. Use the true count and a running total.
Can it hold a heavy object?
No. It is a small low-torque motor. Keep the load light.
Why release the coils?
To stop the motor and driver heating. It removes holding torque, so keep them on if the load must not move.
Last reviewed: November 2026. This is a design worksheet with illustrative costs. It has not been bench-tested by this site; library names, pins and limits must be checked against your board and the current library versions, and measurements from your build are welcome.