← Back to the editor

Setting up the turntable

The badge photos on this site are taken on a motorised turntable in a light box, by the Badge Turntable Android app. A printed band of markers round the turntable's rim tells the app exactly which way the badge is facing. This page explains how that works, makes the marker band and a platter sticker for your turntable and a stand to hold the badge, and walks through setting it all up.

How it works

What the phone sees: the badge on the platter and the marker band round the rim, drawn from your measurements below. The red line is the camera's axis.

The setup

  • A turntable with an IR remote, such as the JAYEGT 5.74 in display stand. The phone presses its remote's buttons with its own IR blaster (the OnePlus 13 and 9 Pro have one). A turntable with no remote works too: you start and stop it yourself, or turn the badge by hand.
  • A light box, so every photo has the same even light and plain background.
  • The phone on a tripod, looking at the badge and the front of the rim.
  • The marker band round the rim, and optionally a sticker on the platter's top to place badges centred and square. Both are made below.

The markers

The band is a row of ArUco markers: small black-and-white square codes that the app finds in the camera picture with OpenCV. Each marker is a 4×4 grid of bits inside a black border, and every marker on the band has a different code (from OpenCV's DICT_4X4_50). Marker k sits at k × step degrees round the rim, where the step is 360° divided by the number of markers. So a 36-marker band has a marker every 10°, and marker 0 is 0°.

Because every marker is different, the band is an absolute encoder: any single frame tells the app where the table is, without counting from a starting point. That lets the app check that every move really happened, stop the table at an angle, take the stills as the right angles come past, and cut the spin video to exactly one turn so it loops cleanly.

From markers to an angle

A marker at angle α round the rim, with the table turned to θ, appears sideways from the turntable's axis by the sine of the difference: x = xaxis + R·sin(α − θ). The app doesn't need to know where the axis is in the picture, or how big the rim looks: with three or more markers in view, a least-squares fit finds the axis, the radius and the angle together, in every frame. So zooming, refocusing or nudging the phone doesn't upset it. With five or more, it also allows for perspective, since the camera is close. In tests, the angle comes out within about 0.1°.

The band can be printed white with black markers, or black with white markers so it disappears against a black rim in the photos. The app reads either.

Calibration

The band gives the angle; calibration learns how the turntable moves. The app turns the table at least once round and measures its speed and direction, how far it coasts after a stop, and whether the band was put on upside down. It then brings the table back to the front. Calibration is only needed when the app drives the table itself (Auto table); capturing by hand needs none.

The app

  • Sessions. Each badge is a session on the phone: a name, optional notes, and its photos and video. The rest of the badge's details (con, year, maker and so on) are filled in here in the editor.
  • The capture. One capture takes four stills, the front, both sides and the back (0°, 90°, 180° and 270° from the front), and an optional 360° spin video that loops on the badge's page. Exposure, focus and white balance are locked so all the shots match.
  • Moving shots (the default). The table turns slowly and each still is taken as its angle comes past, read off the band. Then the table speeds up for the spin video, and returns to the front. With IR and Auto table, the app does all of it; otherwise it tells you when to start and stop the table.
  • By hand. The app asks for each view in turn, and you turn the table, or the badge, and press Capture. No band, IR or turntable needed. If the band is in view, the angle is still shown and recorded.
  • Extra shots. Single photos with a label (lanyard, add-ons installed, detail, lit up, packaging), taken without moving the table. An extra set repeats the whole capture under a label, such as with SAOs installed.
  • Remote control. The editor's Turntable panel drives the phone over your local network: a live preview, camera controls, calibration and capture, and it saves the photos straight into the badge you're editing. After pairing once with a code shown on the phone, the connection is encrypted end to end.

The Capture screen

The app's Capture screen: a badge on the turntable in the light box, with the marker band read along the bottom of the preview, the angle readout and controls on the left, and the capture controls on the right
A badge on the JAYEGT turntable, with a black marker band round the rim and a platter sticker. The green squares are the markers the app has read.
  • Across the top: the phone's name and address, and the pairing code for the editor, while remote control is on.
  • The readout (top left): the ring angle, how many markers it can read, and how far the badge is turned from the front.
  • Set front: makes the way the badge faces now the front, 0°.
  • Side bars: drag the handles in from the sides to paint over the light box's edges, for a narrow badge.
  • Zoom, EV and WB: zoom and exposure, each with its value between − and +, and white balance. Turn EV down if markers go missing in a bright box.
  • On the preview: how far the badge is turned from the front, a grid, a line that turns green when the turntable's axis is centred, and a box round the band with each marker it found outlined.
  • The badge button (top right): the open session, or pick one.
  • Moving shots and Auto table: how the four views are taken (see above), and whether the app drives the table with IR.
  • Calibrate, Extra shot, Capture: calibration (for Auto table), a single labelled shot, and the capture itself.
  • Along the bottom: what to do next.

Make the band and sticker

Measure your turntable and choose your printer. The preview updates as you type, and the numbers are kept for next time.

Your turntable
Print on
More settings
Measuring: Circumference: wrap a strip of paper round the rim, mark where it overlaps, and measure it flat. It's more accurate than the diameter. Band height: the height of the rim's flat face that the camera sees, a little less than all of it so the band doesn't overhang. Platter top: across the top surface, for the sticker. Leave it empty to use the rim's size.

Marker band

Platter sticker

Printing

  • Paper: print at 100% / Actual size, never "Fit to page", and check the 100 mm bar with a ruler before cutting. Matte paper or matte sticker paper works best: gloss reflects the light box's LEDs and washes the markers out.
  • Label printer: Print band sends the labels through the printer's driver at 4×6 in. Or download the ZPL, which draws every marker cell in the printer's own dots, and send it straight to the printer: Zebra Setup Utilities → Send File, or on a network printer nc <printer-ip> 9100 < ring.zpl. After loading new labels, let the printer measure them first (its calibrate function, or send ~JC).
  • Black band on a thermal printer: raise the darkness if the black comes out grey.
  • The sticker is made for a cutter's Print & Cut (Silhouette Cameo and similar): open the SVG in the cutter's software, turn on its registration marks, set only the red circle to cut, then print at 100% on sticker paper and cut. Or print it and cut round the circle with scissors.

Fit them

  1. Clean the rim so the band sticks flat.
  2. Cut each strip on its corner marks. The marks for the two cuts at each corner cross, so cut along the line through them; the cuts can go in any order.
  3. Put strip 1 on first, caption edge up and markers upright, with its first marker roughly where the badge's front will face. The exact front is set later in the app.
  4. Add the other strips in order, each butted against the last with no gap and no overlap.
  5. The last strip should meet the start of strip 1. A millimetre or two either way is fine. If it's more, reprint with the corrected size below: it allows for your printer's scale and your measuring at once, because it's based on what actually printed.
  6. Stick the platter sticker on with its red 0° line toward the camera, once the table is at its front (after Set front, below).

Make a badge stand

The stand assembled: two clear acrylic uprights joined by a crossbar, holding a badge upright by its bottom edge
Two uprights and a crossbar, holding a badge (green) by its bottom edge.

Most badges won't stand up by themselves, so they stand on the platter in a small laser-cut acrylic stand. Two uprights have a notch at the top that the badge's bottom edge drops into. A crossbar slots into both from below, with a half-lap joint, and holds them upright and apart. Each crossbar sets one spacing, so the sheet has a few, for narrow to wide badges: use the widest that keeps both uprights under the badge.

The joints are only as good as the slot width, and acrylic sold as 3 mm is often anywhere from 2.8 to 3.2 mm, and the laser's kerf widens every cut. So cut the test comb first, from the same sheet. Try each gap on a scrap of that sheet, and use the one that pushes on by hand and holds without wobbling.

Your acrylic and badges
More settings

Slot width: the comb gap that fits your acrylic snugly. Too tight cracks the acrylic; too loose and the uprights lean. Pocket width: the badge's board thickness plus about 0.4 mm, so 2.0 mm for the usual 1.6 mm board. The flare above it guides the badge in. Spacings: how far apart the uprights stand, one crossbar for each. The badge's width has to reach past both uprights.

Cutting sheet

OpenSCAD file

Cutting and putting it together

  1. Import the SVG into LightBurn (or your laser's software). It comes in at its real size, with the cuts in black (LightBurn's layer 00) and the engraved labels in blue (layer 01) as single lines. Set black to cut through your acrylic, and blue to a light Line engrave, or turn it off.
  2. Leave the protective film on while cutting, to keep the faces clean, and peel it off after.
  3. Assemble: each upright's slot faces down and the crossbar's slots face up. Push an upright down onto each end of the crossbar until the bottoms are level. The spacing engraved on the crossbar is the distance between the uprights' centres.
  4. Stand it in the middle of the platter, square to the sticker's 0° line, and drop the badge into both pockets, facing the camera.

The OpenSCAD file makes the same parts, with a 3D preview of the assembled stand. Open it in OpenSCAD, set the numbers in the Customizer (Window → Customizer), and export the cut and engrave modes as two SVGs.

Set up the app and editor

  1. Install Badge Turntable on the phone (the source and how to build it are on GitHub), put the phone on the tripod and open the Capture screen. Frame the badge closely with the front of the band in view: the closer, the smaller the markers can be.
  2. Settings → Turntable: choose your turntable. The JAYEGT 5.74 in is built in. For another one, choose Custom and give it the remote's codes (from a Flipper .ir file, a USB IR receiver, or typed in), and use each button's Test. With no remote, choose None.
  3. Check the band: turn the table by hand and watch the angle on the preview. It should rise smoothly with no jumps. If markers aren't found, turn the exposure down (about −2 EV) or add light: an over-bright band washes out.
  4. Calibrate (if the app will drive the table). Keep the turntable on USB power: a flat battery slows the motor and loses its home position.
  5. Set front: turn the table so the badge faces the camera and press Set front. Captures start there, and the table returns there afterwards.
  6. Connect the editor: on the phone, turn on Settings → Remote control. Here, open your copy of the repo in the editor, open the Turntable panel, click Find phones (allow the browser to reach your local network), and pair with the 6-digit code from the phone's banner. After that it connects by itself, encrypted.