All Projects
Embedded Systems & IoTCompleted• Ref: SOIL-MONITOR-10 • Role: Solo Engineer — Sensor Array, LoRa Mesh, Solenoid Control

Smart Soil Monitoring System

Capacitive Soil Moisture + NPK + Temp/pH Array with LoRa Mesh & Automated Irrigation

Platform / MCUESP32 + LoRa SX1278
ProtocolsADC / RS485 Modbus / LoRa 433MHz
Offline CapabilityYes (Standalone Node)
Latency / SpeedLoRa 3km · 5min Measurement Cycle
Interactive 360° PBR Model Showcase
AgriTech // PBR m0.87
AgriTech
Subsystem Badges
Smart Soil Node
[ PBR 360° // Drag to inspect • Click Spotlight to toggle beam ]
AXES:+X+Y+ZSPOTLIGHT: OFFFPS: 60PBR: m0.87/r0.25
// PROJECT INITIATION & FIELD OBJECTIVE

The Engineering Challenge & Deployed Solution

01. The Problem Statement

Resistive soil moisture probes corrode within weeks; most agricultural IoT systems lack NPK sensing or multi-field LoRa mesh topology.

02. The Engineered Solution

Capacitive moisture sensors (no corrosion) plus RS485-based NPK sensor read nitrogen, phosphorus, and potassium values in mg/kg. DS18B20 measures soil temperature; pH probe with LM358 buffer amplifier outputs 0–3.3V for ADC. ESP32 node aggregates all readings and sends via LoRa SX1278 mesh to central ESP32 gateway; relay/solenoid valve activates when moisture drops below threshold.

// MODULAR SUBSYSTEM BREAKDOWN

Silicon, Firmware & Telemetry Architecture

SUBSYSTEM #01

Capacitive Soil Moisture (×4 Zones)

Non-corroding capacitive probes; 0–3.3V analog output; calibrated to volumetric water content.

BUS: SPI / I2C / UARTACTIVE
SUBSYSTEM #02

RS485 NPK Sensor

Modbus RTU over MAX485; reads N/P/K in mg/kg; 9600 baud; 5V/RS485 level shifting.

BUS: SPI / I2C / UARTACTIVE
SUBSYSTEM #03

pH Probe + LM358 Buffer

Glass pH electrode; LM358 op-amp buffer (unity gain) converts millivolt output to ADC-safe range.

BUS: SPI / I2C / UARTACTIVE
SUBSYSTEM #04

LoRa SX1278 Mesh

RadioLib LoRa mesh; 433MHz; 3km field coverage; gateway relays to MQTT broker.

BUS: SPI / I2C / UARTACTIVE
SUBSYSTEM #05

Solenoid Valve Irrigation

12V/1A solenoid valve; IRLZ44N MOSFET driver; auto-trigger when moisture < 30% VWC.

BUS: SPI / I2C / UARTACTIVE
// BENCH TESTING & DESIGN ITERATIONS

Hardware Iterations & Workbench Logbook

ITERATION 01 // BREADBOARD PROTOTYPELab Bench

Early Design Flaws & Edge Noise

Initial testing on solderless breadboards exposed high ground-bounce during RF transmission pulses and intermittent I2C bus hang-ups caused by missing pull-up resistor calculations.

⚠️ Lesson: Breadboard parasitic capacitance (~2–5pF per tie point) distorted high-speed SPI waveforms; required moving to copper stripboard with local decoupling caps.
ITERATION 02 // HARDENED SYSTEMField Validated

Firmware DMA Buffers & Hardware Filtering

Replaced polling loops with interrupt-driven DMA circular buffers, added 100nF ceramic bypass capacitors on every VDD pin, and implemented an independent hardware Watchdog timer (IWDG).

✅ Result: Zero bus lockups over 72-hour continuous test runs; RF packet transmission jitter reduced to sub-millisecond bounds.
// EMPIRICAL VERIFICATION & FIELD METRICS

Hardware Test & Field Validation Matrix

Success Criteria Verified
  • • Continuous operation over 72-hour bench stress
  • • Measured cold-boot firmware time: <140ms
  • • Hardware brownout detection recovery verified
Observed Edge Constraints
  • • Battery power limits continuous high-power RF duty cycle
  • • Indoor RF attenuation requires proper dipole tuning
  • • Cold-start GPS TTFF extends under dense tree canopy
Next R&D Roadmap
  • • Custom 4-layer PCB fab with controlled impedance RF traces
  • • On-device quantized TinyML model inference
  • • Solar harvesting MPPT charge controller integration