H.A.R.V.E.S.T. System

Humidity-based And Regulation for Vegetation, Environment, Soil, and Temperature

H.A.R.V.E.S.T. System Device
8
Sensor Types
5
Actuators
Smart Agriculture IoT Platform

Autonomous Irrigation
Controlled Intelligence

The H.A.R.V.E.S.T. System combines STM32F401 processing power with ESP8266 connectivity, delivering real-time environmental monitoring and adaptive irrigation control through multi-sensor fusion and MQTT telemetry.

Processor
STM32F401
84MHz Cortex-M4
Connectivity
ESP8266
WiFi + MQTT
RTOS
FreeRTOS
Real-time Tasks
Update Rate
2 seconds
Telemetry

System Components

Hover over the board to explore each module and its specifications

1

STM32F401CCU6

Main microcontroller running at 84MHz with FreeRTOS for real-time multi-tasking

ARM Cortex-M4
256KB Flash
64KB RAM
12-bit ADC
2

ESP8266 WiFi

WiFi module for cloud connectivity via MQTT protocol

802.11 b/g/n
MQTT Client
AT Commands
2s Telemetry
3

BME280 Sensor

Environmental sensor measuring temperature, pressure, and humidity

±1.0°C accuracy
300-1100 hPa
±3% RH
I2C: 0x76
4

DS18B20 (3x)

Three 1-Wire soil temperature sensors for zone monitoring

12-bit resolution
0.0625°C
Waterproof probe
PA5/6/7
H.A.R.V.E.S.T. PCB Layout
5

Soil Moisture (3x)

Capacitive soil moisture sensors with analog output

0-100% range
Non-corrosive
12-bit ADC
PB0/1, PA4
6

Water Level (2x)

Analog water level sensors for tank monitoring

0-3.3V output
Auto pump trigger
>50% threshold
PA0/1
7

5-Ch Relay Module

12V relay board controlling pumps and solenoid valves

2x Water pumps
3x Solenoid valves
Active-LOW
10A rating
8

Power Supply

Multi-voltage power distribution with protection circuits

5V/2A for MCU
12V/5A actuators
Buck converter
Fuse protected

System Architecture

🧠

FreeRTOS Tasks

  • • task_wifi: MQTT communication
  • • task_sensor: Data acquisition
  • • defaultTask: System heartbeat
📡

MQTT Protocol

  • • Broker: broker.mqtt.cool
  • • Telemetry: d02/telemetry
  • • Commands: d02/cmd
  • • QoS: 0 (fire and forget)
🎮

Control Modes

  • • AUTO: Sensor-driven
  • • POMPA: Manual irrigation
  • • SEDOT: Water transfer
  • • STOP: Emergency shutoff

Data Flow Pipeline

Sensors
STM32
ESP8266
MQTT
Dashboard