The pusher: a printed crank slider that counts every stroke and stops itself on a jam.
On a packing line, a pusher kicks a part off the belt, one per turn. Build one on your desk: print it, drive it with a small motor and an Arduino Nano, and make it report what it does.
What you end with
A machine that pushes one part per turn, holds 60 strokes a minute when the load changes, and stops within a third of a second when a part wedges. Every stroke prints a line: the count, the time, the current.
What you need
Rough prices for single parts bought online, in
Get the parts wherever suits you: a local electronics shop, or online. Pick a shop and each Find it link searches there.
| Part | Qty | About |
|---|---|---|
| Arduino Nano (ATmega328P)A clone with a CH340 USB chip is fineFind it | 1 | KSh 520USD 4.00 |
| N20 gear motor, 6 V, about 100 rpm3 mm D shaft, 10 mm longFind it | 1 | KSh 455USD 3.50 |
| TB6612FNG driver breakoutA DRV8833 board works tooFind it | 1 | KSh 325USD 2.50 |
| Slot sensor moduleLM393, 5 mm slot, digital outputFind it | 1 | KSh 130USD 1.00 |
| Mini breadboards, 170 pointsAbout 47 x 35 mm, they sit in the trayFind it | 2 | KSh 195USD 1.50 |
| Resistors and capacitor0.5 ohm 1 W, five 1 k, one 1 uFFind it | 7 | KSh 78USD 0.60 |
| Jumper wiresMale to maleFind it | 20 | KSh 195USD 1.50 |
| 6 V supply4 x AA holder, or a 6 V 1 A adapterFind it | 1 | KSh 260USD 2.00 |
| M3 screws and nuts4 x M3x40, 3 x M3x16, 4 x M3x8, 5 nutsFind it | 16 | KSh 195USD 1.50 |
| PLAThe base is half of itFind it | 170 g | KSh 442USD 3.40 |
| USB cableTo match your NanoFind it | 1 | KSh 195USD 1.50 |
| Total | KSh 2,990USD 23 |
Also: a 3D printer with a 220 x 220 mm bed or larger, a small screwdriver and hex key, and a laptop with the Arduino IDE.
Build it
Each step links to the lesson section that teaches it. Open one only when you need it.
Tick each step as you finish it. Your place is kept, so you can stop and come back.
Kept on this device. Sign in to keep it on every device.Kept with your account.
Check the design before you print
Set r 30 and l 100 on the bench. Watch where the slider is fastest, find the two dead centres, then size the motor.
The worst crank angle turns 1 N of push into 31.3 N mm of torque. The push here is about 0.2 N (a 10 g part and the slider, on PLA), so the crank needs about 6 N mm. A 100 rpm N20 gives 30 N mm or more: at least 5 times that.
Open the model
It is the crank slider from the FreeCAD lesson, made printable. Three cells drive it: CrankRadius, RodLength and Clearance. What changed for printing:
- Pins are printed bushings on M3 screws. The rod turns on them with 0.25 mm all round.
- The slider runs in a dovetail groove, so the floor stays flat for the parts.
- A flag on the slider passes through the slot sensor at the inner end of the stroke.
- The crank disc is also the flywheel: it carries the crank over the push.
Checked over a full turn in FreeCAD 1.1: the joints close, the stroke is 60 mm, and no two parts touch, motor and boards included.
Print the clearance ladder, then the parts
Every printer prints holes a little small. The ladder has six holes for a 6 mm pin, from 0.15 to 0.40 mm a side. Print one pin bushing with it and find the first hole it turns in freely.
PLA, 0.2 mm layers, 3 walls, 15 % infill, no supports.
| Part | Lay it | |
|---|---|---|
| Clearance ladder | 1 | Flat. Print it first. |
| Base | 1 | Top up, as it sits. 206 x 125 mm. |
| Crank | 1 | Disc face down, hub up. |
| Rod | 1 | Flat. |
| Slider | 1 | Top face down, key and flag up. |
| Pin bushing | 2 | Flange down. |
| Pin cap | 2 | Flat. |
| Motor mount | 1 | Flanges down. |
| Foot | 4 | Standing, nut pocket down. |
| Ramp | 1 | On its side wall. |
| Test part, 20 mm | 6 | Any way up. |

Assemble
- Push an M3 nut into each foot. Screw the four feet under the base with M3x40 screws from the top.
- Slide the motor into the motor mount, shaft up. Screw the mount under the base (two M3x8). The shaft comes up through the big hole.
- Press the crank onto the shaft, hub down, until it stops. A drop of glue if it is loose.
- Slide the slider into the groove from the open end.
- Lay the rod on the two bushings (flange down), add the caps, and screw each bushing down with an M3x16. Snug, not tight.
- Screw the slot sensor to its pad (M3x16 and a nut under the base), the slot over the flag's path.
- Screw the ramp under the end of the base (two M3x8). Stick the two breadboards in the tray.

Wire it
The Nano tells the driver how hard to push (PWM) and which way. The shunt turns motor current into a small voltage the Nano can read.
Flash the firmware
Arduino IDE: open pusher/pusher.ino, choose Arduino Nano, then Upload. If it stops with "not in sync", choose ATmega328P (Old Bootloader) and upload again.
Bare metal: the same program with registers, in bare/main.c. Run make, then one of these:
avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 115200 -U flash:w:pusher.hex:i # new bootloader avrdude -p atmega328p -c arduino -P /dev/ttyUSB0 -b 57600 -U flash:w:pusher.hex:i # old bootloader
Timer2 makes the 31 kHz PWM, INT0 counts strokes, Timer1 ticks each millisecond and reads the ADC, and the UART prints. It uses 3.3 KB of the 32 KB flash and 156 bytes of the 2 KB RAM.
Run it and measure
Open the Serial Monitor at 115200. It starts by itself. These lines come from the firmware's own tests, on a simulated pusher (lines between left out):
strokes,period_ms,mean_ma,state,duty_pct 1,0,90,run,63 2,1044,114,run,65 3,1086,118,run,69 4,1030,125,run,67 6,1023,125,stop,0 you typed s 6,1023,125,run,63 you typed g 14,1028,125,jam-current,0 a part wedged
Type s to stop, g to go, + or - to change the rate. Save the lines to a file and plot them: that is your record of strokes per hour and energy per stroke.
Make it act
Stop on a jam. Hold the slider with a finger. The motor current climbs; after 0.25 s it stops, the LED lights and the line says jam-current. If the sensor sees no stroke for 2.5 s, it says jam-timeout. Type c, then g.
Hold the rate. Put a heavier part in front. The stroke takes longer, so the PI raises the duty until each stroke is back to 1.0 s. The integral stops at full duty, so it never winds up.
Optional: monitor it, then predict
The pusher already counts its strokes and stops itself on a jam; nothing here is needed for that. To see strokes per hour and jams from anywhere, add an ESP32 that reads the Nano's serial line and sends each stroke over MQTT to a broker you run, or to siliconwit.io, our monitoring service. It works with any MQTT client, so the same ESP32 can move between them by changing its broker address.
A guide that starts to drag shows in the current long before it jams. Record normal strokes, and flag the ones that look different.
You are done when
- The crank turns by hand with no rub, and the flag clears the sensor.
- It pushes a 20 mm part off onto the ramp each turn, and the count goes up by one each time.
- The period settles near 1000 ms, and comes back after you add load.
- Holding the slider stops the motor, and the line says
jam-current. - You have a file of lines, and you can say the energy per stroke.
Downloads
- All print files (STL) and print notespusher-stl.zip · 201 KB
- FreeCAD 1.1 model, with the spreadsheetPusher.FCStd · 210 KB
- STEP, every partPusher.step · 371 KB
- Firmware: Arduino sketch, bare-metal C, testspusher-firmware.zip · 22 KB
- Wiring drawingpusher-wiring.svg · 22 KB
Checked in FreeCAD 1.1 over a full turn, and the firmware logic in tests on a laptop. A printed build is next: if your print needs a change, tell us in the discussion below.
References
- Slider Crank Mechanism: the FreeCAD lesson this design starts from.
- Crank-Slider Experiments: the motion, dead centres and motor sizing.
- ATmega328P Timers: the registers behind the PWM and the millisecond tick.
- Toshiba TB6612FNG data sheet: inputs, standby and the 1.2 A rating per channel.