Touchless hand sanitiser dispenser
Hold your hand under it and a metal-gear servo presses the pump for you.
Shop by category
Shop all componentsThe EasyDriver is a small stepper driver with built-in eighth-stepping, so a 200-step motor moves in 1,600 tiny steps per turn. That gives smooth, quiet motion for photography. The Nano turns the plate 24 times by 15 degrees, waits at each stop, and pulses a pin you can use to trigger a camera remote or just to beep.
Never unplug the motor while the driver is powered; it can damage the driver.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V for the driver; the Nano can run from USB or the driver's 5 V pin.
photo_turntable.inoVerify & upload in Electrolarkconst int STEP = 3, DIR = 4, BTN = 2, BEEP = 5;
const int STEPS_PER_REV = 200 * 8; // eighth steps
const int STOPS = 24;
void move(int steps) {
for (int i = 0; i < steps; i++) {
digitalWrite(STEP, HIGH); delayMicroseconds(400);
digitalWrite(STEP, LOW); delayMicroseconds(400);
}
}
void setup() {
pinMode(STEP, OUTPUT); pinMode(DIR, OUTPUT); pinMode(BEEP, OUTPUT);
pinMode(BTN, INPUT_PULLUP);
digitalWrite(DIR, HIGH);
}
void loop() {
if (digitalRead(BTN) == HIGH) return;
for (int s = 0; s < STOPS; s++) {
move(STEPS_PER_REV / STOPS);
delay(400); // let the plate settle
digitalWrite(BEEP, HIGH); delay(80); digitalWrite(BEEP, LOW);
delay(1500); // time to take the photo
}
}
One coil pair is swapped; swap A+ and A-.
Turn the current pot down; the EasyDriver is meant for small motors.
Centre the plate and use a coupler rather than glue.
A few hundred grams on a light plate; use a bearing under the plate for heavier items.
Yes, use the beep pin with an optocoupler on a wired remote.
Smaller steps are smoother and quieter, which keeps the product still for the photo.
8 parts: EasyDriver Stepper Motor Driver (A3967), NEMA 17 2.6 kg-cm Stepper Motor 42HS34-0404 D-Type, Generic Nano CH340 Development Board (Soldered), Tactile Push Button Switch, Buzzer Module 3.3–5V, DC Power Adapter (5.5x2.1mm), Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2-3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (photo_turntable.ino).
About ₹1,297 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Microstepping with the EasyDriver; Converting angles to steps; Setting a stepper driver's current.
Never unplug the motor while the driver is powered; it can damage the driver.
Hold your hand under it and a metal-gear servo presses the pump for you.
Wave your hand and the lid lifts by itself, then closes after three seconds.
Your first motion project: turn the knob and the servo follows.
Dial in an exact servo angle, 2° per click, shown on screen.
Learning project. Check every circuit and the datasheet of each part before you power it up.