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 BTS7960 (IBT-2) module has two 43 A half-bridges, enough for a 775 motor in a bench grinder, winch or conveyor. A Nano reads a potentiometer for speed and a button for direction, ramps the PWM gently and always stops before reversing. RPWM drives one direction and LPWM the other; both enable pins stay high.
Motors can start suddenly: keep fingers, hair and loose clothes clear, and lift wheels off the bench while testing.
The SMPS has mains terminals: keep its cover on and use an earthed plug.
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 SMPS rated well above the motor's running current (775 motors draw 5-20 A under load).
bts7960_motor.inoVerify & upload in Electrolarkconst int RPWM = 5, LPWM = 6, EN = 7, POT = A0, BTN = 2;
bool forward = true, lastBtn = HIGH;
int speed = 0;
void apply() {
if (forward) { analogWrite(LPWM, 0); analogWrite(RPWM, speed); }
else { analogWrite(RPWM, 0); analogWrite(LPWM, speed); }
}
void setup() {
pinMode(EN, OUTPUT); digitalWrite(EN, HIGH);
pinMode(BTN, INPUT_PULLUP);
}
void loop() {
int target = map(analogRead(POT), 0, 1023, 0, 255);
bool b = digitalRead(BTN);
if (lastBtn == HIGH && b == LOW) { // reverse: ramp down, flip, ramp up again
while (speed > 0) { speed = max(0, speed - 5); apply(); delay(15); }
delay(300);
forward = !forward;
}
lastBtn = b;
if (speed < target) speed = min(target, speed + 3); // soft start
if (speed > target) speed = max(target, speed - 5);
apply();
delay(15);
}
Check both EN pins are high and that LPWM goes to D6.
The heatsink side must have airflow; lower the duty or add a fan.
Keep logic and motor grounds joined at one point and use the soft start.
Yes, the BTS7960 takes up to about 27 V; use a 24 V supply.
It limits the huge inrush current and protects gears and belts.
The module has R_IS and L_IS current-sense pins you can read on analog inputs.
8 parts: Generic Nano CH340 Development Board (Soldered), BTS7960 43A High-Current H-Bridge Motor Driver, RS-775 DC Motor with Ball Bearing, 12-24V High Torque, 16mm Rotary Potentiometer (Linear), Tactile Push Button Switch, Enclosed SMPS Power Supply, 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 (bts7960_motor.ino).
About ₹1,063 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How the BTS7960's two half-bridges make an H-bridge; Soft start and safe reversing; Wiring high-current motor supplies.
Motors can start suddenly: keep fingers, hair and loose clothes clear, and lift wheels off the bench while testing. The SMPS has mains terminals: keep its cover on and use an earthed plug.
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.