afterware
Resources
Saved
Hardware · build

An Arduino UNO Q grows algae and watches it by microscope

Original

A 3D printed cube pumps a sip of algae into a viewing chamber, photographs it through a USB microscope, and lets OpenCV judge whether the culture is thriving or going wrong.

Build sheet
Board
Arduino UNO Q
Sensor
USB microscope
Method
OpenCV contour analysis
Actuators
Peristaltic pump, aerator, LEDs
Can I build this?Advanced · AI 3/5 · $120–220
Difficulty
Advanced
AI-buildability
3/5

The MCU commands, OpenCV pipeline and logging are software AI can write well, but the build also needs a printed peristaltic pump, wiring, a laser-cut or printed housing, and a working wet system with tubing and a viewing chamber.

Time
A few weeks
Cost
$120–220
Tools
3D printerlaser cuttersoldering iron
Starter prompt

Based on "An Arduino UNO Q grows algae and watches it by microscope" on Afterware: https://afterware.xyz/p/algaesense-a-microscope-driven-algae-grower

Write a Python program for an Arduino UNO Q that captures frames from a USB microscope, enhances contrast, applies thresholding and morphological filtering, and counts filament contours to estimate algae coverage. Have it send serial commands such as PUMP_SAMPLE 3000, AERATOR OFF and LIGHT 180 to the MCU side, and log each measurement with a timestamp. Run the cycle GROW, stop aeration, sample, settle, image, analyse, and repeat at a set interval.

Estimates based on the original write-up. How AI-buildability is scored. Building with an AI assistant? Connect it to Afterware (free MCP server).

Story

AlgaeSense sits on top of an algae tank like a lid with a lab inside. The 3D printed cube houses the electronics and the growth LEDs. A 3D printed peristaltic pump pulls a small sample through silicone tubing into a viewing chamber, where a USB microscope takes a look. The aerator shuts off first, so bubbles and swirling water don't blur the shot.

The Arduino UNO Q's two halves split the job. The MCU side drives the pumps, aerator, LEDs and sensors with short commands like LIGHT, AERATOR and PUMP_SAMPLE. The Linux side runs the microscope, logging and control decisions, plus an OpenCV pipeline: contrast enhancement, thresholding, morphological filtering, then contour detection.

Maker Bhuvan Makes calls it an early warning tool, not a toxin detector. It tracks filament density, contour size and morphology changes between samples. It doesn't detect microcystins or dissolved chemicals. What the prototype does show is the full loop (sample, image, detect, actuate, log) repeating on its own.

Resources · 2
More like this
More like this