YJYONGQUAN JI
← All projects
RICE OEDK · SEED INTERNSHIP

Bayou
Water Sampler

Automated water collection using a modified 3D printer.

Our team adapted a 3D printer to move a sampling needle between vials, pump water into them, and repeat the process on a schedule. The system holds 44 samples and can be controlled remotely over a cellular connection.

My contributions

  • Printer conversion
  • Programming
  • Electrical systems
  • Remote-control hardware
  • Testing
  • System integration
About the project
The water sampler’s needle positioned above the sample vials during a bench test
The sampler during a collection test.
WHEN & WHERE
Summer 2026
Rice University OEDK
CLIENT
Dr. Mark Torres
TEAM
Water Wheel
Yong Ji · Shawn-Michael Ferguson
Stephanie Casio · Jayden Hiles
TEAM SCOPE
Mechanical design · Prototyping · Electronics · Python & embedded code · Interface · Testing
PROJECT OVERVIEW

Why automate water sampling?

Researchers need water samples collected over time to study changes in river water quality. Returning to the same site for every sample takes time and effort.

We built on previous sampler teams’ work. Their devices had problems with needle positioning, pump strength, and ease of use. Our goal was to make sample collection more consistent and easier to schedule, while storing each sample in its own vial for later analysis.

This project brought mechanical design, electronics, and software together. I worked on the printer conversion, programming, electrical systems, remote-control hardware, testing, and system integration.

DESIGN TARGETS

What the sampler needed to do

Collection
≥5 mLOne sample every 24 hours
Storage & operation
≥31 vialsStore at least 31 samples and operate for at least 31 days
Pump
≤60 secondsFill one sample within a minute
Water resistance
IPX4 targetProtect the electronics from splashing water
Heat resistance
≥125°FTolerate hot outdoor conditions
Filtration
0.45 µmFilter particles at or above this size

The interface also needed to make scheduling and checking the sampler easier. These were project targets; the filter and waterproof enclosure still needed to be added at the end of the project.

HARDWARE & CONTROLS

From printer to sampler

The printer’s existing motion system moves the needle between sample locations. We added a needle holder, vial holders, a tubing guide, and a 12 V pump. The vial layout provides 44 sample positions within a footprint of about 16 × 22 inches.

G-code controls the printer’s movement. The software raises the needle before moving sideways, lowers it only at the purge or sample location, and coordinates pumping with the motion.

A collection cycle

  1. Prepare: home the printer and move the needle to a safe travel height.
  2. Purge: move to the waste position and pump water through the tubing.
  3. Collect: move to the selected vial, lower the needle, and fill it.
  4. Finish: raise the needle, switch off the motors, and report the result.
CAD model of the modified 3D printer, pump, needle holder, and sample rack
The sampler assembly from our final poster.

Electronics and software

Raspberry Pi
Runs the Python listener and collection script, sends movement commands to the printer over USB, and controls the pump.
Blues Swan
Handles the schedule, wakes and powers the Pi for each collection, and coordinates shutdown afterward.
Notecard & Notehub
Carry settings and collection results over a cellular connection, linking the sampler to the web interface.

The filled-vial count advances only after a successful collection. If a run fails, the next scheduled attempt uses the same vial. Before cutting power, the Swan waits for a signal that the Pi has shut down safely.

REMOTE OPERATION

Schedule and check a collection

The Flask interface supports a single collection or a repeating schedule, an immediate run, and a target number of filled vials. It shows the next collection time, how many vials are filled, and the latest result.

Water sampler interface showing bottle count, schedule, repeat options, and immediate collection controls
The team’s web interface. Scheduling, bottle counts, and results are available in one view.

Between collections, the system shuts down the Pi and returns the Swan to sleep. This reduces the power used while the sampler is waiting for its next run.

TESTING & NEXT STEPS

Checking collection and control

The final poster’s ten-sample test shows volumes of 10–12 mL, all above the 5 mL minimum. The presentation also reports sample collection in under one minute after the pump upgrade.

Other poster-reported results were a remote-control delay of 15 seconds or less, 44-sample capacity, and 32 days of battery life.

The operating procedure includes checking the motion with the pump disconnected before collecting water. This lets us verify vial positions and needle clearance without pumping into the wrong place.

Bar chart of ten sample volumes, ranging from 10 to 12 mL, above the 5 mL target
Ten sample volumes from the final poster; the red line marks the 5 mL minimum.
Water sampler test showing the needle moving between the purge station and vials Watch the sampler test
Bench test of the collection sequence · Silent video

What remained to be done

The next steps were to add the filter, pH and temperature sensors, a flow meter, and a waterproof enclosure. These additions would help prepare the sampler for outdoor water-quality studies.

FINAL PRESENTATION

Project poster

Open the full poster
Team Water Wheel final poster with project overview, design targets, testing, and next steps
Team Water Wheel · Rice University OEDK · SEED 2026