How ti-capacitor/embedded_irrigation_system works
This is an Arduino embedded irrigation system. Its documented workflow accepts serial commands to select automatic, manual, or maintenance mode; manual commands can select a crop and request or stop watering, while automatic watering uses moisture readings and crop-specific thresholds. The sampled implementation shows command parsing, sensor reads, and valve control, but not the main sketch’s orchestration, so links from that controller to irrigation behaviors are omitted. The PCB files indicate a hardware design artifact; its runtime connections are not established by the available evidence.
Main entry points: irrigation.cpp Serial commands · MY_FINAL_PROJECT.ino Sketch controller
Components 10
Firmware control
- Sketch controller
firmware/Emb_irrigation/MY_FINAL_PROJECT.ino - Serial commands
firmware/Emb_irrigation/irrigation.cpp - Mode state
firmware/Emb_irrigation/irrigation.cpp
Irrigation behavior
- Moisture reading
firmware/Emb_irrigation/irrigation.cpp - Valve control
firmware/Emb_irrigation/irrigation.cpp
Hardware design
- Irrigation PCB
hardware/PCB/Gerber_irrigation-circuit_PCB_irrigation-circuit_2026-04-25.zip - Circuit BOM
hardware/PCB/BOM_irrigation-circuit_2026-04-25.csv
Other components
- Serial operator
- Analog moisture input
- Valve hardware
Connections 4
- Serial operator → Serial commands: sends commands
firmware/Emb_irrigation/irrigation.cpp - Serial commands → Sketch controller: sets watering flags
firmware/Emb_irrigation/irrigation.cpp - Analog moisture input → Moisture reading: provides analog input
firmware/Emb_irrigation/irrigation.cpp - Valve control → Valve hardware: writes pin signal
firmware/Emb_irrigation/irrigation.cpp