Skip to content
ActuatorsPump

Peristaltic Dosing Pump

Precision tube pump for accurate liquid dosing.

Wiring & code for

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

  1. Confirm the exact part number and breakout-board revision.
  2. Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
  3. Check controller pin assignments and bus address or interface mode against the example code.
  4. Power up with external loads disconnected, then test signals before full integration.
  5. 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.

Board Integration

Library

None — built-in digitalWrite/analogWrite by —

No library needed; driven via a transistor/MOSFET, not directly from a pin.

Wiring

Component pinArduino Uno pinNote
Transistor/MOSFET gate (via resistor)D9Never wire the pump directly to a digital pin.
Driver GND / pump supply GNDGNDShared 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 →

C++
  • 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.
View full Arduino Uno guide