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 Hitec HS-311 is a dependable standard-size analog servo with nylon gears and enough torque to turn a venetian blind's tilt wand through a printed coupler. An LDR light module measures daylight at the window, and the Nano moves the servo between open, half and closed, slowly so the blind does not jerk.
Keep blind cords out of reach of children.
Tick anything you already have and the total updates.
LDR light sensor module
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter through a 5 V buck for servo and Nano.
blind_tilter.inoVerify & upload in Electrolark#include <Servo.h>
Servo s;
const int OPEN = 90, HALF = 50, CLOSED = 10;
const int BRIGHT = 300, DIM = 700; // LDR module: lower = brighter on most boards
int pos = OPEN;
void moveTo(int target) {
while (pos != target) { pos += (target > pos) ? 1 : -1; s.write(pos); delay(30); }
}
void setup() { Serial.begin(9600); s.attach(9); s.write(pos); }
void loop() {
int light = analogRead(A0);
Serial.println(light);
if (light < BRIGHT) moveTo(CLOSED);
else if (light > DIM) moveTo(OPEN);
else moveTo(HALF);
delay(60000); // check once a minute
}
Power it from the buck, not the Nano, and join the grounds.
It is pushing against the blind's end stop; reduce the angle range.
Your LDR module reads higher in brighter light; swap the comparisons.
For tilt wands on normal venetian blinds, yes; heavy blinds need a high-torque servo.
Use an ESP32 instead of the Nano and add a web page.
No, those need a motor that turns many times; this only tilts slats.
7 parts: HiTec HS-311 Standard Economy Servo, Generic Photosensitive Resistor Sensor Module for Arduino – Light Dependent Resistor (LDR), Generic Nano CH340 Development Board (Soldered), Step-Down Converter to 5V USB / 5V 3A, 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 beginner project and takes about 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (blind_tilter.ino).
About ₹2,242 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Standard servo pulses and angles; Powering servos from a separate 5-6 V supply; Slow, smooth servo moves.
Keep blind cords out of reach of children.
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.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.