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 Dimension Engineering Sabertooth 2x5 is a dual 5 A motor driver with regenerative braking and built-in protection. Its DIP switches pick the input mode; in simplified serial mode, one byte controls a motor: 1-127 for motor 1 (64 is stop) and 128-255 for motor 2 (192 is stop), and 0 stops both. This sketch sends those bytes from a SoftwareSerial pin and runs a forward, turn and reverse test.
Lift the wheels off the table for the first test.
Tick anything you already have and the total updates.
Dimension Engineering Sabertooth 2x5
Follow the colours: red is power, dark grey is ground, blue is a signal.
2S LiPo into the Sabertooth; the Nano runs from USB or the Sabertooth's 5 V terminal.
sabertooth.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
SoftwareSerial st(10, 11); // RX not used, TX to S1
void motors(int m1, int m2) { // -63..63 each
st.write((byte)constrain(64 + m1, 1, 127));
st.write((byte)constrain(192 + m2, 128, 255));
}
void setup() {
st.begin(9600);
delay(2000);
st.write((byte)0); // all stop
}
void loop() {
motors(30, 30); delay(2000); // forward
motors(30, -30); delay(1000); // turn
motors(-30, -30); delay(2000); // reverse
motors(0, 0); delay(3000); // stop
}
The ground wire is missing between the Nano and 0V.
The DIP switches are not in simplified serial at 9600 baud.
Lithium cutoff has tripped; charge the battery.
Yes, within its 6-18 V input; switch lithium cutoff off.
When slowing down, the motors push energy back into the battery.
Yes, from its UART TX pin at 9600 baud.
6 parts: Dimension Engineering Sabertooth 2x5 Dual Motor Driver, Generic Nano CH340 Development Board (Soldered), 2 × 200RPM 12V Low Noise Dc Motor With Metal Gears - Grade A, Bonka 2S 7.4V LiPo Battery Pack (1000 to 4200mAh, XT60), 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 1-2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (sabertooth.ino).
About ₹5,227 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
One-byte motor commands; Driver DIP switch modes; Regenerative braking.
Lift the wheels off the table for the first test.
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.