Touchless hand sanitiser dispenser
Hold your hand under it and a metal-gear servo presses the pump for you.
Shop by category
Shop all componentsPlants lean towards the light. Turning them slowly keeps them even. The LV8729 driver splits each motor step into up to 128 microsteps, so the motor glides instead of clicking. The Nano makes one tiny step at a time, spread over 24 hours, so the plant turns about 15 degrees an hour.
Keep water off the driver; put a drip tray under the pot.
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 motor is barely loaded, so set a low current.
plant_turntable.inoVerify & upload in Electrolarkconst int STEP = 3, DIR = 4, EN = 5;
const bool FAST = false; // true for a quick test
const long STEPS_PER_DAY = 200L * 128; // one turn of a 200-step motor at 1/128
void setup() {
pinMode(STEP, OUTPUT); pinMode(DIR, OUTPUT); pinMode(EN, OUTPUT);
digitalWrite(DIR, HIGH);
digitalWrite(EN, LOW);
}
void loop() {
digitalWrite(STEP, HIGH); delayMicroseconds(20);
digitalWrite(STEP, LOW);
if (FAST) delayMicroseconds(200);
else delay(86400000UL / STEPS_PER_DAY); // about 3.4 s per microstep
}
Lower the current; with almost no load it needs very little.
Your microstep pins give a different setting; check the board table.
The pot is pressing on the shaft; use a bearing to take the weight.
No, the motion is far too slow to notice.
Gear motors cannot turn this slowly and evenly; a stepper at 1/128 can.
Yes, flip DIR every 12 hours so cables never twist.
6 parts: LV8729 Ultra-Quiet Stepper Driver (StepStick), JK42HS40 NEMA17 Stepper Motor – 4.2 kg-cm, D-Shaft, Generic Nano CH340 Development Board (Soldered), 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 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (plant_turntable.ino).
About ₹1,789 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Very fine microstepping; Spreading motion over a long time; Setting the microstep pins.
Keep water off the driver; put a drip tray under the pot.
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.