Giter Club home page Giter Club logo

esp01-plant-watering's Introduction

ESP01-plant-watering

A plant watering system using the ESP01 micro controller and MQTT / Home Assistant for controlling.

This repository contains the code used for programming the ESP01 using platformIO as well as well as the corresponding electric plan and the configuration used for Home Assistant integration. As MQTT is used for communication with Home Assistant, you need to set up a MQTT broker of your choice in advance.

Part list

  • ESP01
  • 12V (or something else) water pump
  • Flow meter (I used DIGMESA FHKSC)
  • Water proof housing
  • Two MOSFETs (for example 2N7000A and IRL520NPBF)
  • 3.3 V voltage regulator (for example LD33V)
  • Some cables and soldering material

Electric Layout

The electric layout is pretty simple for this project. You can find the electric plan in the following image. Electric Plan

Flashing the ESP01

Instructions on how to flash the ESP01 as well as how to install and use platformio are available on the internet, therefore this will be neglected here. In order to get the code to work, you need to rename and modify the file src/config_template.h to src/config.h. In this file you need to go through all definitions and adapt them to your needs. Afterwards, you can compile and flash the software to the ESP01.

Home Assistant Integration

The necessary configuration files for integrating the plant watering system in Home Assistant can be found in the folder: home-assistant. I prefer to separate the different component types in my Home Assistant configuration. Therefore, you will find one file for each component used. Additionally, I added the necessary parts of my configuration.yaml file. The result of this integration is shown in the following image. Home Assistant Integration

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.