Giter VIP home page Giter VIP logo

apoorvar5 / waterlevel_iot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 254 KB

Smart Tank using IoT: This ESP8266-based project monitors water levels in a tank using ultrasonic sensors. It sends real-time data to ThingSpeak, enabling remote tracking. LEDs indicate water status. An efficient and cost-effective solution for smart water management. Ensure optimal usage with this IoT-powered tank monitoring system.

C++ 100.00%
arduino internet-of-things iot monitoring sensor

waterlevel_iot's Introduction

Smart Tank Monitoring System with IoT

Welcome to the Smart Tank Monitoring System repository! This project utilizes an ESP8266 microcontroller to monitor water levels in a tank and sends data to ThingSpeak, an IoT platform, for real-time tracking. The following information will guide you through the project details and code.

Code Overview

  • File: SmartTank.ino

    This Arduino sketch monitors water levels using an ultrasonic sensor, controls LEDs based on the water level, and sends the data to ThingSpeak for remote monitoring.

Hardware Components

  1. ESP8266 Microcontroller
  2. Ultrasonic Sensor (HC-SR04)
  3. LEDs (Red and Green)
  4. Resistors
  5. Jumpers and Breadboard

Configuration

  • WiFi Connection:

    • Replace ssid and pass with your WiFi network credentials.
  • ThingSpeak:

    • Replace ch_no with your ThingSpeak channel number.
    • Replace write_api with your ThingSpeak write API key.

Pin Configuration

  • Ultrasonic Sensor:

    • trigPin1 - Trigger pin connected to D1.
    • echoPin1 - Echo pin connected to D2.
  • LEDs:

    • redled - Red LED connected to D3.
    • grnled - Green LED connected to D4.

Usage

  1. Setup:

    • Connect the hardware components based on the provided pin configuration.
    • Upload the code to your ESP8266 using the Arduino IDE.
  2. Monitor:

    • Power up the system.
    • The ultrasonic sensor measures water level.
    • LEDs indicate the water status (red for low, green for normal).
  3. ThingSpeak Integration:

    • Data is sent to ThingSpeak every 10 seconds.
    • Monitor the tank's water level remotely using the ThingSpeak channel.

Additional Information

  • The system checks water levels and sends updates to ThingSpeak periodically.
  • Adjust the threshold (if (distance1 <= 5)) based on your tank configuration.
  • LEDs provide a quick visual indication of water status.

Contributions

Feel free to contribute to the project by improving the code, enhancing functionality, or adding features. Create a pull request with your changes.

If you encounter issues or have questions, please open an issue on GitHub.

Happy tank monitoring! ๐Ÿšฐ๐Ÿ“Š

waterlevel_iot's People

Contributors

apoorvar5 avatar

Watchers

 avatar

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.