Maker Turns a Drone Motor and Raspberry Pi Pico Into a $50 Centrifuge for Cancer Research

User Avatar Aswinth Raj
Author
Share
DIY Centrifuge Built With Raspberry Pi Pico

A used lab centrifuge that takes 15 mL conical tubes sells for $800 to $3,000 on eBay. Thomas Vu Nguyen needed one for a home wet lab and built his own instead, the PicoCentrifuge, from a drone motor, a Raspberry Pi Pico and a 3D printer, for about $50 in parts.

The machine is part of Bloom, his open-source project to predict personalised cancer neoantigens from a patient's sequencing data. Proving those predictions works means testing peptides on T cells, and the first step is spinning blood over a density gradient to pull out the immune-cell layer. That needs roughly 400 x g for 30 minutes, followed by a slow coast down.

A drone motor, an ESC and a Pico

The drivetrain is an A2212/1000KV brushless outrunner of the kind used on small quadcopters, driven by a 30 A sensorless ESC and powered from a 2S LiPo. The Pico talks to the ESC exactly like a flight controller would: a 50 Hz PWM signal with a 1,000 to 2,000 microsecond pulse. His first MicroPython test simply armed the ESC at 1,000 us and ramped the throttle up and down in 20 us steps with no rotor fitted, to confirm the drivetrain behaved before any parts were designed.

The ESC has its brake disabled and a smooth ramp programmed, because a centrifuge must never stop hard. A sudden stop would disturb the gradient that took 30 minutes to form, so the rotor coasts down over at least two minutes.

Closed-loop speed and an imbalance cut-out

The required speed comes from the standard formula rpm = sqrt(RCF / (1.118e-5 x r)), with r in cm. A smaller rotor radius therefore needs a higher RPM to reach the same g-force. To hold that speed for half an hour, an IR reflective sensor reads the underside of the rotor as a tachometer, and the Pico runs a PID loop on the ESC throttle.

Safety gets its own sensor. An MPU-6050 bolted to the chassis near the bearing holder, not on the rotor, watches the vibration signature. If a tube shifts or a part comes loose, the Pico cuts motor power. Opposing tubes must be matched to within 0.1 g, and the whole assembly runs inside a lidded containment pot.

A compact fixed-angle design

His first attempt, a swinging-bucket design generated by an AI agent in Fusion 360, needed a 466 mm containment vessel, roughly an 18-inch stock pot. He redrew it from scratch in Onshape as a compact fixed-angle centrifuge: motor and ESC in the base, a 5-to-8 mm aluminium coupler to an 8 mm steel shaft, bearings, and a four-arm PETG rotor holding four 15 mL tubes. Opposing arms are printed in the same job so they shrink identically, and the filament is dried first so moisture bubbles do not become weak points at speed.

The unit is assembled, but it has not spun blood yet. His validation list comes first: fastener retention, balance checks, a deliberate imbalance to test the MPU-6050 cut-out, a guarded overspeed run, and finally dyed water over glycerol for 30 minutes to prove it can separate liquids by density. CAD is public on Onshape, and the BOM and build log are on GitHub.

If you want to try the motor side first, our guide on controlling an A2212 BLDC motor and ESC with Arduino uses the same 50 Hz PWM signal.

Image credit: Thomas Vu Nguyen (ComfyBloom), build photo cropped and resized.

About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn

Have any question related to this Article?

Add a comment

No account needed. Your comment appears once a moderator has reviewed it.

Never shown publicly.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.