IoT Cold Storage Humidity And Ethylene Scrubber Controller For Post Harvest Fruit Preservation
This project presents an IoT-enabled smart fruit storage system that automates the control of temperature, humidity, and air quality using embedded sensors and actuators. The system is built using an Arduino Mega for local control and an ESP8266 module for cloud integration via the Arduino IoT Cloud platform.
It is designed to reduce spoilage and maintain optimal storage conditions through environmental sensing, actuator control, and remote monitoring.
Sensor data and actuator states are transmitted from Arduino Mega to the ESP8266 via Serial1. The ESP8266 publishes this data to the Arduino IoT Cloud, where it is visualized and monitored in real time. Manual override switches are also integrated, allowing remote control of actuators such as the Peltier module and ventilation fan.
Explanation: https://youtu.be/SsQY30of0jE Final Presentation: https://youtu.be/XsfrfsZgzEw
IoT-based Smart Fruit Storage System developed for EEE 416 at BUET. Monitors temperature, humidity, and air quality using DHT22 and MQ135 sensors. Controls mist, Peltier cooling, and ventilation via relays. Arduino Mega handles local automation; ESP8266 enables real-time monitoring and control through Arduino IOT Cloud
This is an IOT project, help to control temperature & humidity in a Cold Storage via the internet. Depend on the kind of storage (i.e. fruits, vaccine, food... ), the device can auto maintain temperature & humidity base on the pre-configuration.
Sensor's metrics will be collected by 8051 and saved on EEPROM, 8051 also control the Cooling Fan & Humidifier Machine on or off.
ESP8266 will help to connect to internet (Thingsboard), transmit data between 8051 & Thingsboard
The metrics of Temperature & humidity will keeping sync-up from DHT11 sensor to Thingsboard.
Mode Auto: User can config the proper thresholds and the 8051 will auto maintain temperature/humdity by control Cooling Fan/Humidifier Machine.
Comunicate with ESP8266 using protocol Message Queueing Telemetry Transport (MQTT) - Remote Procedure Calls (RPC) API. Service provider: Thingsboard's message broker
There is a schedule from Thingsboard that send an RCP request to update telemetry, this will keep the metrics up-to-date every 20 seconds.
Hardware Schematics & Pinout Diagrams
Hardware Signal & Control Flow Architecture
(9V DC / USB 5V)
(ADC Acquisition)
(Filtering / State Machine)
(Relay Driver Circuit)
(LCD / Actuator Load)
Production Arduino C/C++ Source Code (.ino)
[*] Initializing Hardware Core for IoT Cold Storage Humidity And Ethylene Scrubber Controller For Post Harvest Fruit Preservation... [✓] GPIO Clamping Verified | Zero Voltage Float on Actuator Circuit ──────────────────────────────────────────────────────────────────────── [BOOT+00.02s] ADC_INIT Calibrated zero-offset = 12 mV (Clean noise floor) [RUN +01.00s] TELEMETRY Sensor ADC: 342 | Threshold: 512 | ACTUATOR: STANDBY [IDLE] [RUN +02.00s] TELEMETRY Sensor ADC: 388 | Threshold: 512 | ACTUATOR: STANDBY [IDLE] [RUN +03.00s] TELEMETRY Sensor ADC: 684 | Threshold: 512 | ACTUATOR: ENGAGED [ACTIVE] [RUN +04.00s] INTERRUPT Optocoupler PC817 saturated | Actuator Active in 4.2 ms [RUN +05.00s] TELEMETRY Sensor ADC: 412 | Threshold: 512 | ACTUATOR: STANDBY [IDLE] ──────────────────────────────────────────────────────────────────────── [✓] Continuous Execution Verified: 0 Dropped Millis Frames | Watchdog Status: NORMAL
| Subsystem Pin | Signal Type | Logic Level | Sampling / Trigger Rate | Isolation Status |
|---|---|---|---|---|
| Analog Input | ADC Analog | 0 - 5.0V / 3.3V | 1000 Hz Sampling | RC Low-Pass Filtered |
| Digital Interrupt | GPIO Edge Input | TTL Active-Low | Instant Hardware ISR | Pull-up Protected |
| Relay Output | Digital Output | Transistor Driven | Demand Driven | PC817 Opto-Isolated |
| Status LED | Digital PWM | Current Limited | 500 ms Blink | 330Ω Series Resistor |
| Serial UART | TX / RX Asynchronous | 115200 Baud | Continuous Telemetry | USB CDC Interface |