All projects

Camera & software

BRIN Smart Aquaculture.

Arduino and PLC integration, two-way MQTT control, and local fish tracking with YOLO11 and SORT.

MY ROLE
Research Assistant Intern — Hardware & Industrial IoT
My contribution
Integrated Arduino and PLC hardware, built the MQTT bridge, and developed YOLO11 detection and SORT tracking.
Key result
Verified water-quality telemetry and actuator control, and exported fish trajectories from video.

TOOLKIT

  • Arduino Uno
  • Haiwell PLC
  • MQTT
  • Python
  • YOLO11
  • SORT
Tilapia video with detection boxes, track IDs, and movement speeds in pixels per second

The problem & my part.

This BRIN internship project instrumented a tilapia aquarium for water-quality monitoring and equipment control. A local computer vision pipeline analyzed fish movement from recorded video.

My contribution

I handled the hardware integration, Arduino firmware, MQTT bridge, and the hardware-to-software data flow. I developed the YOLO11 fish detector and SORT tracking pipeline. I supported the software team with the Supabase and Next.js dashboard integration.

How the pieces connect.

  1. 01

    Aquarium sensors and controls

    The Arduino Uno connects selected sensors to the PLC. The PLC also reads directly connected sensors and drives the aquarium actuators.

  2. 02

    Local telemetry and control

    A Python service receives PLC telemetry over MQTT, writes local CSV logs, and forwards readings to Supabase. It publishes actuator commands back to the PLC.

  3. 03

    Dashboard

    The team’s Next.js dashboard reads current and historical measurements from Supabase. Supabase Realtime relays manual control changes to the local server.

  4. 04

    Local vision

    OpenCV reads the video, YOLO11 detects tilapia, and SORT assigns track IDs across frames.

The team’s dashboard displays telemetry from the Arduino, PLC, and Python/MQTT pipeline.

Inside the work.

Sensor acquisition and actuator control

I integrated the Arduino and PLC paths for water-quality measurements including dissolved oxygen, pH, conductivity, and temperature. The PLC drives the aerator, heater, chiller, and feeder.

Bidirectional Python/MQTT bridge

The telemetry process parses PLC JSON, estimates ammonia from ammonium, pH, and temperature, and updates cloud records. The control process listens for manual changes and uses local readings for automatic control. It sends both types of commands to the PLC over MQTT.

Tilapia detection and tracking

I developed the YOLO11 detector and passed its boxes and confidence scores to SORT. I logged timestamped track IDs and box centers, then used the center paths to estimate image-plane speeds and export CSV logs and trajectory plots.

What came together.

Integration tests covered the sensor-to-dashboard path, manual commands back to the PLC, and automatic actuator control. The vision module exported fish positions, speed plots, and trajectories from aquarium footage.

Results at a glance

Telemetry
Sensor and actuator data reached the local CSV logs and the Supabase-backed dashboard.
Control
Manual dashboard changes and automatic commands reached the PLC actuators via MQTT.
Video analysis
YOLO11 and SORT produced track overlays, coordinate logs, and speed and trajectory plots.
The local video pipeline overlays fish detections, track IDs, paths, and speeds on recorded footage.

A NOTE ON SCOPE

The IoT and vision workflows were tested separately. Fish speed is reported in pixels per second in the camera image.

Download résumé

NEXT PROJECT

Modular STEM Educational Robot