An end-to-end smart farming and precision agriculture ecosystem simulated within Cisco Packet Tracer. The project models an intelligent single-MCU edge controller handling environmental telemetry across distinct multi-crop layouts (Jasmine and Sunflower lines) to optimize water resources and automate asset protection.
The entire network runs efficiently on one single MCU-PT micro-controller board, eliminating unnecessary hardware overhead and complex dual-board routing:
- MCU Pin D0:
Sprinkler_Jasmine(Automated Morning Shift Line) - MCU Pin D1:
Sprinkler_Sunflower(Automated Evening Shift Line)
- MCU Pin A0: Ambient Temperature Sensor ($\degree$C Monitoring)
- MCU Pin A1: Ambient Humidity Sensor (Air Moisture %)
- MCU Pin A2: Tank Level Safety Sensor (Submerged Workaround Configuration)
- MCU Pin A3: Barometric Pressure Simulation Dial (Potentiometer)
- MCU Pin D2: Soil Moisture Grid (Ground Saturation Monitoring)
Rather than operating on basic, static electrical timers, the system runs a local Python edge script that dynamically evaluates environmental variables using four main programmatic rules:
- π Tank Safety Cutoff (Hardware Protection): Instantly terminates irrigation sequences if the storage reservoir drops below safe thresholds. This keeps the pump offline when dry to protect the physical motor from burning out.
- π§οΈ Predictive Barometric Forecasting: Evaluates atmospheric drops in air pressure paired with high humidity values to anticipate incoming rainstorms. The system proactively skips upcoming watering shifts, conserving tank water and letting nature handle irrigation for free.
- π± Saturated Soil Skip: Checks the ground moisture grid before opening valves. If the soil is already saturated from past cycles, it skips watering to prevent root-drowning and waterlogging.
- π₯ Dynamic Climate Tuning: Automatically scales sprinkler execution run-times based on temperature thresholds. It boosts watering time (+2s) during intense heatwaves to counter rapid evaporation, and scales down run-time (-2s) in cold conditions.
- Clone this repository or download the
Smartfarming.pktfile. - Open the file using Cisco Packet Tracer.
- Click on the central Smart_Garden_Hub MCU board.
- Open the Programming tab at the top and select
main.py. - Click the green Run button to initialize the live terminal diagnostics window.
- Demo Tip: Hold
Alt + Clickon the sensors or the potentiometer dial during execution to manipulate environment data and watch the algorithm adapt its watering choices live!