Soldered Anywhere logo Soldered Anywhere
Menu
← Back to Editorial Columns
DIY Lab Revolution: Building a Blood-Processing Centrifuge with Raspberry Pi Pico visual summary
Analysis

DIY Lab Revolution: Building a Blood-Processing Centrifuge with Raspberry Pi Pico

By Soldered Anywhere Editorial Team 9/18/2026

The barrier to entry for advanced biological research has traditionally been financial. In the world of hematology and cellular biology, the equipment required to even begin basic tasks—like separating plasma from red blood cells—can cost thousands of dollars. For independent researchers, students, or those in resource-limited settings, these costs are often prohibitive.

However, the "maker" movement is beginning to disrupt the laboratory supply chain. By utilizing low-cost microcontrollers, high-torque hobbyist motors, and precision 3D printing, engineers are proving that "good enough" lab hardware can be built on a workbench rather than purchased from a catalog. A prime example of this is [Thomas Nguyen]’s recent project: a custom-built centrifuge designed specifically for T-cell separation.

The Engineering Challenge: Precision at High Velocity

Centrifugation is a process that uses centrifugal force to separate substances of different densities. In blood processing, this is vital for isolating specific components like T cells, which are essential for immunology research. [Thomas] needed a device capable of spinning 15 mL conical tubes at specific speeds to achieve the necessary sedimentation.

The engineering challenge here is twofold: speed and stability. When you spin several hundred grams of liquid at thousands of revolutions per minute (RPM), even a slight imbalance can lead to catastrophic mechanical failure. This is why commercial units are heavy, armored, and expensive. To replicate this safely, [Thomas] turned to a combination of modern hobbyist electronics and robust firmware.

For those interested in how similar hacking mentalities can be applied to other lab equipment, you might enjoy our look into Voiding the Warranty for Vision: Hacking Budget Celestron Microscopes for Ultra-Wide FOV, which explores expanding the capabilities of entry-level optics.

The Brains and Brawn: Raspberry Pi Pico and the A2212 Motor

At the heart of the build is the Raspberry Pi Pico. This $4 microcontroller is becoming a staple in hardware engineering due to its dual-core processor and flexible I/O. In this centrifuge, the Pico handles the user interface, monitors safety sensors, and generates the Pulse Width Modulation (PWM) signal required by the Electronic Speed Controller (ESC).

To provide the "brawn," [Thomas] utilized an A2212 brushless motor. These motors are commonly found in budget drones and RC planes because they offer an incredible power-to-weight ratio.

  • The Motor: The A2212 is a "runner" motor, meaning the outer shell spins. This provides high torque, which is necessary to overcome the air resistance (drag) of the spinning rotor.
  • The ESC: A 30-amp ESC acts as the intermediary, translating the Pico’s logic signals into the high-current three-phase power the motor requires.

This setup allows for precise speed control, which is essential because different blood components require different Relative Centrifugal Forces (RCF) to separate effectively.

Safety Systems: Vibration and RPM Monitoring

Building a DIY centrifuge isn't just about making things spin; it's about making sure they don't explode. [Thomas] integrated two critical safety features into his design that elevate it from a "hobby project" to a piece of functional lab gear.

1. The MPU-6050 Vibration Detection

The MPU-6050 is a 6-axis accelerometer and gyroscope. In this build, it serves as an "earthquake sensor" for the centrifuge. If the tubes are improperly balanced—perhaps one tube has 14.5 mL of fluid and the other has 15 mL—the resulting vibration at high speeds can destroy the motor bearings or shatter the 3D-printed housing. The Pico monitors the MPU-6050 in real-time; if vibrations exceed a safe threshold, the system immediately cuts power to the motor.

2. IR Sensor for RPM Feedback

Open-loop control (sending a signal and hoping the motor reaches the right speed) isn't sufficient for lab work. [Thomas] used an infrared (IR) sensor to create a closed-loop feedback system. By counting how many times a reflective strip on the rotor passes the sensor, the Pico can calculate the exact RPM. This allows the user to set a specific speed and ensures the centrifuge maintains it regardless of the load.

In many ways, this level of precision engineering mirrors the work seen in The Compact Powerhouse: A Deep Dive into the Electrolama pt1 USB Multitool for Hardware Engineers, where specialized tools are used to verify and optimize hardware performance.

DIY vs. Commercial: Making the Choice

While [Thomas Nguyen]’s build is a triumph of DIY engineering, it raises a question for other researchers: when should you build, and when should you buy?

The DIY route offers total customization. If you need a specific rotor angle or a unique tube size that commercial units don't support, building your own is often the only path. However, for those who need a "plug-and-play" solution with guaranteed safety certifications, entry-level commercial units have become surprisingly affordable.

If your research requires standard 15ml or 20ml tubes and you don't have the time to calibrate a custom Pico-based system, a desktop unit might be the more practical choice:

Desktop 800-1 Electric Centrifug...

For smaller-scale operations, such as working with microcentrifuge tubes for DNA extraction or quick spin-downs, a mini-centrifuge is often sufficient and takes up significantly less bench space:

VEVOR Mini Centrifuge Machine

Regardless of whether you build or buy the machine, the consumables remain a constant. Quality tubes are non-negotiable, as cheap plastic can fail under high RCF, leading to sample loss or machine damage.

500pc 1.5ml Microcentrifuge Tubes

The Physics of Separation: RCF vs. RPM

A common pitfall for those new to centrifugation is focusing solely on RPM. However, the biological "magic" happens because of RCF (Relative Centrifugal Force). The formula for RCF is:

RCF = 1.118 × 10⁻⁵ × r × (RPM)²

Where r is the rotational radius in centimeters. This means that a smaller DIY centrifuge needs to spin much faster than a large commercial unit to achieve the same separation results. [Thomas]’s design takes this into account, utilizing a fixed-angle rotor that optimizes the sedimentation path for T-cell isolation.

Validation: Testing with Simulants

Before [Thomas] introduces real blood products into his machine, he is following a rigorous validation protocol. This is a crucial step in any scientific hardware build. He is currently testing the unit with:

  • Dyed Water: To check for leaks and ensure the seals of the tubes hold under pressure.
  • Glycerol: Because glycerol is denser than water, it can be used to simulate the viscosity and density layers of blood, allowing him to verify that the separation "bands" form correctly at his calculated RPMs.

Only after the machine proves it can safely and repeatedly separate these simulants will it be used for live biological samples. This methodical approach is what separates a dangerous "hack" from a legitimate piece of laboratory engineering.

The Future of Open-Source Lab Hardware

[Thomas Nguyen]’s centrifuge is more than just a tool; it’s a proof of concept for the future of decentralized science. When we combine the processing power of the Raspberry Pi Pico with the rapid prototyping of 3D printing, the "impossible" becomes a weekend project.

Whether you are building your own high-speed rotor or optimizing your lab's power consumption with tools like the Adafruit Mini Power Meter, the message is clear: the tools of discovery are no longer locked behind a corporate paywall. They are being built, one line of code and one 3D-printed layer at a time, by engineers who refuse to let a budget stand in the way of science.