Justine Acosta
JUSTINE ACOSTA · GMT+8 ·
All projects
UNIVERSITY · IOT CAPSTONE · 2024Archived

IoT Solar Dryer with Automatic Hybrid Source Switching

Solar drying that falls back to the grid on its own.

  • Node.js
  • Express
  • MongoDB
  • React
  • Socket.io
  • MQTT
  • ESP32
  • Arduino
  • HTML
  • CSS
  • Bootstrap
  • Custom PCB

A university build whose screenshots weren’t kept, so it’s described in words.

The problem

Open-air and plain solar drying leave farmers at the mercy of the weather: a cloudy afternoon stalls a batch, and nobody knows the temperature or humidity inside the dryer without standing next to it.

What I built

An IoT-enabled solar dryer with Peltier-based optimisation that switches itself between solar and grid power, so drying carries on when the sun drops. A full-stack dashboard shows live sensor readings and lets an operator run the dryer remotely, from a custom PCB that ties the sensors and the switching together.

My role

Capstone leader and lead developer. I led a multidisciplinary team across software development, hardware integration and electrical systems, built the monitoring and control dashboard, and designed the custom PCB.

How it works

ESP32 and Arduino boards on a custom PCB read the temperature, humidity and current sensors and drive the power switching, publishing readings and taking commands over MQTT.

A Node.js and Express backend stores the readings and users in MongoDB and relays live telemetry to a React dashboard over Socket.io, where an authenticated operator watches the chamber and runs the dryer remotely.

The switching logic watches the solar supply: when it can no longer carry the drying load, the board moves the load to the grid, and moves it back once the sun returns. Each switch is published over MQTT, so the dashboard always shows which source is powering the dryer.

Challenges

  • Noisy sensors

    Temperature, humidity and current readings jitter, and a jittery reading could flip the dryer between sources. Readings are smoothed and the switch waits for a clear threshold, so one spike never changes the power source.

  • A connection that drops

    The dryer sits outdoors on Wi-Fi that comes and goes. MQTT’s small messages and reconnects keep the board talking, and Socket.io picks the live view back up when the browser reconnects.

  • Hardware and software in step

    The PCB, the firmware and the dashboard were built by different people at once. They were designed against one shared message format, so each part could be built and tested on its own and still fit together.

Features

  • Automatic switching between solar and grid power sources.
  • Peltier-based optimisation of the drying chamber.
  • Live temperature, humidity and current readings over WebSockets.
  • Remote operation from an authenticated web dashboard.
  • A custom PCB integrating the temperature, humidity and current sensors.
  • A live view of which source, solar or grid, is powering the dryer.
  • Commands from the dashboard to the board over MQTT, behind sign-in.
  • Every reading stored in MongoDB, so each drying run can be looked back on.

Results

  • Crop drying time cut from 6 hours to 4, a 33% reduction.
  • Field-tested on real drying runs and defended as my BS Computer Engineering capstone.