Pump
Controlling Peristaltic Pump with Arduino Uno
What is the Peristaltic Pump?
Peristaltic Pump practical reference
A peristaltic pump that moves liquid through flexible tubing without contacting the pump mechanism — ideal for precise, contamination-free dosing.
Key specifications
- Operating voltage: 12V DC on most common hobby dosing pumps (5V, 6V, and 24V variants also exist — confirm your specific model before wiring)
- Flow rate: ~100 mL/min typical for common small dosing pumps
- Current draw: ~200-700 mA depending on voltage and model
- Fluid path: Liquid only contacts the silicone tubing, not the pump mechanism — good for keeping different liquids from cross-contaminating
Pinout and connection notes
Treat it electrically like any brushed DC motor — never wire it directly to a GPIO pin. Swap the two leads to reverse the pumping direction.
- +: Positive DC motor lead — drive via MOSFET, transistor, or relay, same as any brushed DC motor
- -: Negative DC motor lead
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.
Setting Up Peristaltic Pump with Arduino Uno
Library
None — built-in digitalWrite/analogWrite by —
No library needed; driven via a transistor/MOSFET, not directly from a pin.
Wiring
| Component pin | Arduino Uno pin | Note |
|---|---|---|
| Transistor/MOSFET gate (via resistor) | D9 | Never wire the pump directly to a digital pin. |
| Driver GND / pump supply GND | GND | Shared ground between Arduino and pump supply. |
| Pump + / external 6-12V supply | — | Check your specific pump's rated voltage and current — commonly 6V or 12V. |
Swipe sideways to see every column →
- Like any DC pump, drive this through a transistor or logic-level MOSFET rated for its stall current, on its own supply rail — do not connect it directly to a digital pin or the Arduino 5V rail.
- Include a flyback diode across the pump terminals for the same reason as any inductive DC motor load.
- Peristaltic pumps meter volume by run-time, not a built-in flow sensor — calibrate the mL-per-second rate for your specific tubing and pump before trusting exact dosing amounts.
Related Components
Active Buzzer
Self-oscillating buzzer that beeps with just a single HIGH signal — no PWM required.
BLDC ESC
High-speed brushless motor and electronic speed controller combo.
Continuous Servo
Modified servo that spins continuously like a geared motor.
Mini Water Pump
Small 5V submersible pump for irrigation and fountain projects.
Related Guides & Projects
Arduino Uno R4 Minima Pinout: Every GPIO, ADC, DAC, and Op-Amp Pin Explained
A complete Arduino Uno R4 Minima pinout reference — digital I/O, ADC, DAC, op-amp, CAN, dual UART, and exactly what it leaves out compared to the WiFi variant.
Mastering PWM on Arduino: Dimming LEDs and Controlling Motors
Understand what PWM actually is on Arduino, dim an LED smoothly, and safely control a DC motor's speed with a driver chip -- plus the mistakes (like wiring a motor straight to a pin) that damage boards.
4-Digit 7-Segment Counter with TM1637 & Arduino
Drive a TM1637-based 4-digit 7-segment display with Arduino Uno to show a real-time up/down counter, elapsed timer, and scrolling text. Covers library setup, brightness control, and custom segment mapping.
Arduino Uno R4 Minima vs WiFi: Which One Should You Choose?
Same processor, same memory, different price. Here's what the WiFi variant's extra hardware actually gets you, and when the Minima is the smarter buy.