Touchless hand sanitiser dispenser
Hold your hand under it and a metal-gear servo presses the pump for you.
Shop by category
Shop all componentsA continuous rotation servo turns like a geared motor instead of moving to an angle: a 1.5 ms pulse stops it, shorter or longer pulses set speed and direction. The DS04-NFC is a strong version with metal-reinforced gears, good for pushing dry food. A Nano with a DS3231 clock runs the auger at set meal times, and a button gives an extra portion.
Check the pet still eats normally; a jam means no food.
Tick anything you already have and the total updates.
DS04-NFC 360 degree continuous rotation servo
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter, stepped down to 5 V for the servo.
food_auger.inoVerify & upload in Electrolark#include <Servo.h>
#include <RTClib.h>
Servo auger;
RTC_DS3231 rtc;
const int STOP = 90, RUN = 60; // 60 = turn one way at medium speed
const unsigned long RUN_MS = 4000;
const int MEALS[][2] = {{8, 0}, {13, 0}, {19, 30}};
int lastMin = -1;
void feed() { auger.write(RUN); delay(RUN_MS); auger.write(STOP); }
void setup() {
pinMode(2, INPUT_PULLUP);
auger.attach(9); auger.write(STOP);
rtc.begin();
if (rtc.lostPower()) rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
}
void loop() {
DateTime now = rtc.now();
if (now.minute() != lastMin) {
lastMin = now.minute();
for (auto &m : MEALS) if (now.hour() == m[0] && now.minute() == m[1]) feed();
}
if (digitalRead(2) == LOW) { feed(); delay(1000); }
}
STOP is not exactly the centre; adjust by one at a time.
Kibble is too big for the auger pitch; widen it or reverse briefly.
The RTC lost its battery; re-upload to set the time.
It needs no motor driver and already has strong gearing.
Yes, write a value on the other side of STOP for a moment.
Within about 10% for dry food; weigh a few to check.
8 parts: DS04-NFC 360° Continuous Rotation Servo, DS3231 Precision RTC Module with EEPROM, Generic Nano CH340 Development Board (Soldered), Tactile Push Button Switch, 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 intermediate project and takes about 3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (food_auger.ino).
About ₹1,025 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How continuous rotation servos are controlled; Dosing by run time; Using a real-time clock for schedules.
Check the pet still eats normally; a jam means no food.
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.