Spice dispenser

An eight-spice dispenser that measures each dose by weight. I designed it, built it and wrote the firmware.

Role
Solo build
When
Spring 2026, ENME351
Tools
SolidWorks, PETG printing, laser cutting, Arduino
Status
Working prototype; recorded doses overshoot the 3 g target
Built
Three dose cycles with the Processing monitor reading the scale, May 2026Built

Result

I set the target to 3 g and ran three funnels in a row. The scale read:

Every dose overshot. That is one run of three doses, not a repeatability test.

What I'd change

Lid and eight hoppers Carousel, gates and bands Servo and rack on the deck Hall sensor, under the carousel Home: magnet over the Hall sensor SG90 pinion Rack in a printed slide bed Plastic gate Rocks 3 steps each way, 4 times Salt flowIllustrative Load cell Load-cell bendIllustrative XT60 port 3S2P battery Rear switch L298N driver Arduino Uno Breadboard rails: 5 V and GND 5 V buck HX711 Spice dispenser CAD while the interactive model loads

Loading the 3D model…

01 Overview

One carousel, one outlet

Eight hoppers ride on one carousel, so a single servo, outlet and scale serve every spice. Scroll to take it apart, or press Play.

02 Select

Home, then index

Before each dose the stepper backs up until a magnet passes the Hall sensor, then counts 19 steps to the first funnel and 25 for each one after.

03 Open

Rack and pinion gate

The servo's 16-tooth pinion drives a printed rack. A pusher on the rack slides the gate insert out and uncovers the outlet.

04 Weigh

Shake, pour, weigh, close

The stepper rocks the carousel three steps each way, four times, to loosen the spice. It falls onto a platform over the load cell. At the set weight the rack retracts and two rubber bands pull the gate shut.

05 Power

Battery outside, control inside

A 3S2P pack plugs into an XT60 on the side wall. The switch feeds an L298N for the stepper and a buck converter that supplies 5 V to everything else.

06 Cycle

Back to home

After each dose the carousel returns to the magnet, so every dose starts from a known position.

Specs

System

System
Hoppers8 on one carousel
Carousel driveNEMA 17 stepper, 200 steps per turn
HomingHall sensor and magnet, every cycle
GateSG90 servo, 16-tooth pinion and printed rack
Gate returnTwo rubber bands on M3 anchors
WeighingCantilevered load cell with HX711
ControllerArduino Uno R3
Stepper driverL298N, both enables jumpered
Power3S2P pack (about 11.1 V) on an XT60, LM2596 buck to 5 V
Dose setting3 g target, 2.95 g cutoffTarget
Recorded doses4.57, 3.85 and 3.65 g in one three-dose run
MaterialsPETG housing, funnels and lid; laser-cut wood deck and metal funnel bottom
MonitorProcessing app over USB

Firmware pins

Firmware pins
PinGoes toSignal
D3L298NIN1
D9L298NIN2
D10L298NIN3
D11L298NIN4
D6SG90 servoSignal
A0Hall sensorAnalog output
D4HX711DOUT
D5HX711SCK

Build

Stepper, connector and metal holder
Printing the carousel (timelapse)
Signal map from the firmware

I printed the housing, funnels and lid in PETG and laser-cut the wooden deck and the metal funnel bottom. Bolted joints hold the cantilevered weighing platform, and the M3 bolts double as anchors for the return bands. I added a capacitor after the stepper first ran unevenly.

What I'd change

  1. Redesign the gate. The thin one sometimes stuck with damp spices.
  2. Close the gate earlier. In the run on video, three 3 g doses came out at 4.57, 3.85 and 3.65 g. The firmware stops only 0.05 g short of the target, so salt still falling after the gate closes probably accounts for most of the overshoot.
  3. Run repeated-dose tests to set that early-stop margin and measure how consistent the doses are.
  4. Evaluate a desiccant compartment and food-contact materials.
Sources and model notes
  • Housing, hoppers, carousel, gates and inserts, rack, stepper, deck and platform are my original CAD. Original CAD
  • The pinion, slide bed, pusher, bands, electronics placement and wire paths are reconstructed from how I built it. Their dimensions are approximate. Reconstructed
  • Every wire follows the firmware's pin assignments. Rail voltages have not been measured.
  • The salt and the load-cell bend are illustrations. Under a few grams the real beam moves too little to see. Illustrative
  • The 3 g target and 2.95 g cutoff are firmware settings. The recorded doses are the scale readings on the Processing monitor in the May 2026 video, read frame by frame. That is one run of three doses, not a repeatability test.

The servo is drawn with an SG90 reference mesh by Gafeju from the FreeCAD Parts Library, CC BY 3.0. The drive study is lit with the Studio Small 09 HDRI by Sergej Majboroda from Poly Haven, CC0. Download the placement STL

Want to talk shop? Email is fastest