Skip to content
You Start with one site
Amounts in Start with one site
Build track 1 · Mechanisms and embedded

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.

About KSh 2,990USD 23 in parts Printing: 8 to 14 hours Building: one evening
One turn: the slider pushes a part off onto the ramp, and the next part waits on the line.

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.

Stroke60 mm
Crank, rod30 mm, 100 mm
Rate60 a minute
Fits a bed of220 x 220 mm
Running fit0.25 mm a side
Motor margin5 times or more

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.

PartQtyAbout
Arduino Nano (ATmega328P)A clone with a CH340 USB chip is fineFind it1KSh 520USD 4.00
N20 gear motor, 6 V, about 100 rpm3 mm D shaft, 10 mm longFind it1KSh 455USD 3.50
TB6612FNG driver breakoutA DRV8833 board works tooFind it1KSh 325USD 2.50
Slot sensor moduleLM393, 5 mm slot, digital outputFind it1KSh 130USD 1.00
Mini breadboards, 170 pointsAbout 47 x 35 mm, they sit in the trayFind it2KSh 195USD 1.50
Resistors and capacitor0.5 ohm 1 W, five 1 k, one 1 uFFind it7KSh 78USD 0.60
Jumper wiresMale to maleFind it20KSh 195USD 1.50
6 V supply4 x AA holder, or a 6 V 1 A adapterFind it1KSh 260USD 2.00
M3 screws and nuts4 x M3x40, 3 x M3x16, 4 x M3x8, 5 nutsFind it16KSh 195USD 1.50
PLAThe base is half of itFind it170 gKSh 442USD 3.40
USB cableTo match your NanoFind it1KSh 195USD 1.50
TotalKSh 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.

Build track
Follow this build, one step at a time

Tick each step as you finish it. Your place is kept, so you can stop and come back.

1

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.

2

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.

3

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.

The bushing turns freely in hole 25 and not in 15: print the parts as they are. If it needs 30 or more, rebuild with that Clearance (step 2) first.

PLA, 0.2 mm layers, 3 walls, 15 % infill, no supports.

PartPrintLay it
Clearance ladder1Flat. Print it first.
Base1Top up, as it sits. 206 x 125 mm.
Crank1Disc face down, hub up.
Rod1Flat.
Slider1Top face down, key and flag up.
Pin bushing2Flange down.
Pin cap2Flat.
Motor mount1Flanges down.
Foot4Standing, nut pocket down.
Ramp1On its side wall.
Test part, 20 mm6Any way up.
Every printed part laid out as it prints: the large grey base with its groove, fence, sensor pad and breadboard tray; the teal crank face down; the gold rod; the blue slider upside down with its key and flag up; the motor mount; four feet; the ramp on its side; two bushings, two caps, the clearance ladder and two orange test cubes.
Check it: every part lies flat on one face, with nothing hanging in the air.
4

Assemble

  1. Push an M3 nut into each foot. Screw the four feet under the base with M3x40 screws from the top.
  2. 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.
  3. Press the crank onto the shaft, hub down, until it stops. A drop of glue if it is loose.
  4. Slide the slider into the groove from the open end.
  5. Lay the rod on the two bushings (flange down), add the caps, and screw each bushing down with an M3x16. Snug, not tight.
  6. Screw the slot sensor to its pad (M3x16 and a nut under the base), the slot over the flag's path.
  7. Screw the ramp under the end of the base (two M3x8). Stick the two breadboards in the tray.
Turn the crank by hand. Check: the rod swings freely, the slider runs end to end, and the flag passes through the slot without touching.
Close up of the slot sensor beside the crank: a black U-shaped sensor on a raised pad, and the thin blue flag from the slider passing between its two arms.
The flag in the slot at the inner dead centre. Slide the sensor along its slot to move the point where it counts.
5

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.

Wiring drawing. Nano D2 to the slot sensor output. Nano 5 V to the sensor and to the driver VCC. Nano D3, D4, D5 and D6 through 1 k resistors to the driver PWMA, AIN1, AIN2 and STBY. Driver AO1 and AO2 to the motor. Driver VM to the 6 V supply plus. Driver GND to the shunt node; a 0.5 ohm shunt from that node to ground; and from the node through 1 k to Nano A0, with 1 microfarad from A0 to ground.
Open the drawing full size. Every ground symbol is one wire to the Nano GND.
The shunt sits between the driver GND and ground, so A0 reads 0.5 V per amp. With the 1.1 V reference that is 2.15 mA a count, up to 2.2 A.
6

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.

7

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
power6 V x 0.125 A = 0.75 W per stroke0.75 W x 1.03 s = 0.77 J per 1,000770 J = 0.21 Wh

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.

8

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.

9

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

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

Found this useful?