Skip to content

Rahulkt-tech/Smart-farming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌾 Intelligent IoT Eco-Garden Automation Hub

Cisco Python

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.


πŸ› οΈ System Architecture & Pin Mapping

The entire network runs efficiently on one single MCU-PT micro-controller board, eliminating unnecessary hardware overhead and complex dual-board routing:

πŸ”Ή Actuators (Digital Execution Outputs)

  • MCU Pin D0: Sprinkler_Jasmine (Automated Morning Shift Line)
  • MCU Pin D1: Sprinkler_Sunflower (Automated Evening Shift Line)

πŸ”Ή Sensing Grid (Data Inputs)

  • 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)

🧠 Embedded Automation & Business Logic

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:

  1. πŸ”’ 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.
  2. 🌧️ 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.
  3. 🌱 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.
  4. πŸ”₯ 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.

πŸ’» How to Run the Simulation

  1. Clone this repository or download the Smartfarming.pkt file.
  2. Open the file using Cisco Packet Tracer.
  3. Click on the central Smart_Garden_Hub MCU board.
  4. Open the Programming tab at the top and select main.py.
  5. Click the green Run button to initialize the live terminal diagnostics window.
  6. Demo Tip: Hold Alt + Click on the sensors or the potentiometer dial during execution to manipulate environment data and watch the algorithm adapt its watering choices live!

About

SmartGarden πŸŒΎπŸ€– β€” Intelligent Edge-Computing IoT Irrigation Ecosystem SmartGarden is an automated precision agriculture system simulated in Cisco Packet Tracer that uses real-time sensory data and a Python edge-computing script to predict rainfall, dynamically adjust crop watering schedules, and enforce hardware safety protocols.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages