Code Monkey home page Code Monkey logo

iot-and-ai-based-irrigation-system's Introduction

IoT and AI based Irrigation System

The system consists of many IoT nodes which sense various environmental variables (Currently random numbers) and turn on/off the irrigation system based on the response from the server. The nodes use MQTT protocol to publish their sensed data to a broker in a specific topic (Different for each node). A python server reads the published data and adds the data along with timestamp to a sqlite3 database for some future analysis (Not implemented). The server also makes an irrigation decision (wether to turn on or off) based on the current sensed data using the AI model (Currently uses random decision as data is synthetic) and publishes the decision for the specific node to read and perform action.

The project consists of 6 files

  1. main.py: The code to be executed on the IoT device (Micropython)
  2. server.py: The code for the server
  3. IOT_Project.ipynb: The EDA and Construction of the AI model
  4. ml_model.py & random_forest_model.pkl: Model integration file and the weights of the model
  5. Tarp_10000.csv: Contains the training dataset for our AI Model

Usage

Start the MQTT broker on the network. Put the main.py file on the IoT device and change the wifi ssid and password to your credentials and change the IP and Port of the MQTT broker to whatever ip and port you used. Start the server by python server.py <broker url> <broker port>

iot-and-ai-based-irrigation-system's People

Contributors

shanta-11 avatar aryanlath avatar nityampareek avatar

Watchers

 avatar  avatar

Forkers

aryanlath

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.