Skip to the content
2 layers56.6 × 53 mmSyringe pump, the printed circuit board in 3D

This repo contains code, 3D models and instructions for building a syringe pump.

Size
56.6 × 53 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
34
Pads
71
Tracks, vias
89, 2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Sep 2026
Updated
22 Oct 2026

Overview

Syringe pump is an open-source printed circuit board by oscarbranson, from the oscarbranson/syringe-pump repository on GitHub. It is a 2-layer board of 56.6 × 53 mm with 10 parts on 34 nets, routed with 89 tracks and 2 vias.

Its parts include 2 resistors and 1 capacitor. It belongs with the AVR (ATmega, ATtiny) boards of this library.

README

README.md

Syringe Pump

This repo contains code, 3D models and instructions for building a syringe pump.

The pump was originally designed to automate the filtration of samples through a luer lock filter using a 60ml syringe for Total Alkalinty titrations.

As such, the motor, lead screw and pump body are designed around exerting a relatively high force to push the plunger of a 60ml syringe.

Bill of Materials

Tools

  • Wire cutters
  • Wire strippers
  • JST XH and PH compatible crimping tool
  • Soldering iron
  • 3D printer (or access to one)
  • Multi-meter

Parts to Buy

The following items are needed to build a single pump:

QuantityDescription
1Stepper motor (NEMA 17)
16mm to 8mm Motor Coupler
1Tr8x1 Stainless Steel Lead Screw with brass nut, 8mm OD, 1mm pitch, 200mm length
2Stainless Steel Rods, 6mm OD, 200mm length
2LM6UU Linear Bearings, 12mm OD, 6mm ID, 19mm length
8M3, 20mm machine screws
4Square nuts, 5.4mm XY, 1.7mm Z
1Arduino Nano V3 (or compatible) with header pins
1DRV8825 Stepper Motor Driver with pins and heat sink
1Electronics PCB (see electronics/pcb folder)
2Hall effect sensor (US5881LUA)
1B3F-10XX Push button switch
210k Ohm Resistors
1100uF Capacitor
2JST-PH-3A + JST-PH-3P connector and plug
1JST-PH-2A + JST-PH-2P connector and plug
1JST-PH-4A + JST-PH-4P connector and plug
1JST-PH-6P plug
16JST-PH pins
1JST-XH-2A + JST-XH-2P connector and plug
2JST-XH pins
6Colours of 26AWG silicone wire, <1m each
112V DC power supply, 1.5A minimum

Parts to Print

Tested using Prusament PLA filament, 0.2mm layer height, 20% infill, 3 perimeters, no supports. All parts are in the 3d_models folder.

  • Pump Body
  • Pump Shuttle
  • 2x Hall Sensor Mounts
  • Button Cover

Assembly Instructions

Electronics

First, connect JST-HX pins to leads of the power supply, and connect them to the JST-XH-2P plug on the PCB. Check the polarity of the power supply and the PCB before connecting.

To assemble the control board, solder the following components to the PCB:

  1. Arduino Nano V3 (or compatible) with header pins
  2. DRV8825 stepper driver (And attach heatsink)
  3. 10k Ohm resistors
  4. 100uF capacitor
  5. JST header connectors (PH and XH)
  6. Place the PCB in the pump body.

When finished, the board should look like the image below.

[image]

Set the DRV8825 Stepper Driver Current Limit

  1. Connect a multi-meter to the VREF pin and GND pin of the DRV8825 stepper driver.
  2. Turn on the power supply.
  3. Adjust the potentiometer on the driver until the voltage reads the current limit of the motor x 0.5. For example, set the voltage to 0.6 if using a 1.2A stepper motor. See the DRV8825 datasheet for more information.

Wires

Stepper Motor
  1. Cut 4 pieces of wire ~240mm long.
  2. Crimp JST-PH pins to each end of the wires.
  3. Connect the JST-PH-6P plug to one end, and the JST-PH-4P to the other end, in this configuration:
  4. Secure the wires in the motor wire housing in the pump body.
  5. Connect the 4-pin connector to the PCB.
Button
  1. Cut 2 pieces of wire ~290mm long.
  2. Crimp JST-PH pins to one end of the wires.
  3. Solder the other end of the wires to two legs of the button switch.
  4. Insert the crimped pins into the switch leg cutouts in the button hole on the pumb body, and push the wires through until they protrude from the hole in the back of the pump body. The button should sit snugly in the cutout, and protrude slighly from the top of the pump body.
  5. Secure the wires in the button wire housing in the pump body.
  6. Connect the 2-pin connector to the PCB.
Hall Effect Sensors
  1. Cut two sets of 3 pieces of wire - one set should be ~250mm long, the other set should be ~110mm long.
  2. Solder one end of the wires to the legs of the hall effect sensors.
  3. Bend the head of the hall sensor so that it sits at 90 degrees to the legs, and place the sensors in the sensor mounts with the leads trailing out of the back.
  4. Push the trailing wires through the holes in the pump body until they protrude from the back. The hall sensor mount should sit snugly in the cutout, so that you can move it to a fixed position, and the trailing wires should be long enough to reach the PCB.
  5. Crimp JST-PH pins to the ends of the trailing wires, and attach a 3-pin female connector.
  6. Run the wires through the cutout channels in the back of the pump body towards the PCB slot.
  7. Attach the 3-pin JST-PH connectors to the sockets on the PCB.

Pump Assembly

Once the electronics are assembled, the pump can be assembled.

To orient the body, we will refer to the 'top' of the body as the side with the motor attached, and the 'motor side' as anything side facing the motor. The 'base' of the body is the side with the syringe mount, and 'syringe side' refers to the sides facing the syringe. The 'back' of the body is the side with the wire and PCB cutouts. The 'front' of the body is the side where the rails and drive rod will be visible.

Shuttle

  1. Place a linear bearing in each of the two cutouts in the shuttle. The bearings should sit flush with the surface of the shuttle.
  2. Place magnets in both of the magnet slots in the shuttle. Make sure they are oriented correctly for the hall sensors.
  3. Insert the lead screw nut into the cutout in the shuttle.

Motor

  1. Attach the thin side of the motor coupler to the shaft of the stepper motor, and tighten the set screw. These will not be accessible after installing the motor, so tighten them well now.
  2. Place four 3mm bolts through the holes on the top side of the motor (from the syringe side) so that they protrude from the top surface.
  3. Align the motor with these bolts, and tighten all four to fix the motor.

Pump Body

  1. Insert square nuts into the four cutouts in the pump body - two on the top, and two on the base, both accessible from the motor side. Push them in with a flat head screwdriver until they can travel no further.
  2. Insert two bolts though the holes on the front of the pump body so they bit the square nuts. Screw them in until they protrude slightly in the linear rail holes, then back them off to leave the holes clear.
  3. Push the drive rod through the hole in the base of the pump body. Place the shuttle in its path, with the circular cutout facing the syringe side, and screw the lead screw into the nut in the shuttle until 2-3cm of the lead screw protrudes from the top of the shuttle.
  4. Place the lead screw in the motor coupler, and tighten the grub screws to secure it.
  5. Insert linear rails on both sides of the shuttle from the front side of the pump body, and push them through until they are flush with the top of the body.
  6. Tighten the bolts on the front of the pump body to secure the linear rails in place.
  7. Place the button cover over the button hold on the top of the pump body.

Software

The pump control software is in the syringe_pump folder. It is written in C++ and is designed to run on an Arduino Nano.

To build and upload the code to the Arduino, you will need to install the Arduino IDE, and run the following command:

{bash}
arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328 -p /dev/ttyUSB0 -u syringe_pump

To monitor the serial output of the Arduino, you can use the following command:

{bash}
arduino-cli monitor -p /dev/ttyUSB0 -c baudrate=115200

Commands

A number of commands are available via the serial interface:

  • state - Returns the current state of the pump, including position, speed, and status.
  • pos - Returns the current position of the pump in steps and mm.
  • home - Moves the pump to the home position (fully retracted).
  • short - The same as a short button press.
  • long - The same as a long button press.
  • stop - Stops the pump.
  • cal - Calibrates the pump by moving it to the home position and setting the current position to 0.
  • clearcal - Clears the calibration data.
  • enable - Enables the stepper motor.
  • disable - Disables the stepper motor.
  • rate - prints the current step rate of the pump in steps per second.
  • ? - prints a list of available commands.
  • forward [mm] - Moves the pump forward by the specified distance in mm.
  • fast forward [mm] - Moves the pump forward by the specified distance in mm at maximum speed.
  • backward [mm] - Moves the pump backward by the specified distance in mm.
  • fast backward [mm] - Moves the pump backward by the specified distance in mm at maximum speed.

Parts

10
QtyValueFootprintReferences
2Conn_01x03Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalHallEnd1, HallStart1
2RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2
1Arduino_Nano_v3.xModule:Arduino_Nano_WithMountingHolesA1
1CCapacitor_THT:C_Radial_D6.3mm_H7.0mm_P2.50mmC1
1Conn_01x02Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalButton1
1Conn_01x02Connector_JST:JST_XH_B2B-XH-AM_1x02_P2.50mm_VerticalPWR1
1Conn_01x04Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalMotor1
1Pololu_Breakout_DRV8825Module:Pololu_Breakout-16_15.2x20.3mmA2

Similar boards

  • 2 layers57 × 55.2 mmLogicAnalyzer, the printed circuit board in 3D

    LogicAnalyzer

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    10 parts5.1kGPL-3.0
  • 2 layers32.2 × 15.4 mmProtector, the printed circuit board in 3D

    Protector

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    10 parts4.3kMIT
  • 2 layers26 × 18 mmConn, the printed circuit board in 3D

    Conn

    yaqwsx/KiKit

    Automation tools for KiCAD

    10 parts2.1kMIT
  • 2 layers44.3 × 30.5 mmLime2-SATA RevA, the printed circuit board in 3D

    Lime2-SATA RevA

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    10 parts1.5k
  • 2 layers17.8 × 43.2 mmNano Adapter, the printed circuit board in 3D

    Nano Adapter

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    10 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    10 parts1kGPL-3.0

Questions

How big is the Syringe pump PCB?

It measures 56.6 × 53 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Syringe pump use?

10 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Syringe pump KiCad files?

From the oscarbranson/syringe-pump repository on GitHub, at the commit this page was made from: the board is electronics/SyringePump.kicad_pcb and its schematic electronics/SyringePump.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Syringe pump design in my own project?

Its repository states no licence, so its author keeps all rights: ask oscarbranson before reusing the design.