Giter Club home page Giter Club logo

lazyplants's Introduction

LazyPlants

Codacy Badge codecov

Our vision is to create an automatic plant watering system for all those that cant keep their plants alive because they’re too lazy to water them. With ‚LazyPlants‘ we want to save those sad, dried out plants. To give them back the joy of life, we want to develop a cost-effective solution.

Documentation

Documentation: here
Blog: here

Connecting the sensors


The pin assignment can be adapted according to the ESP. However, the pin for the soil moisture sensor must be able to read an analogue signal. The pins for HC-SR04, DHT22 and the relay must be digitally controllable.

Installation and adjustments of the ESP script

If everything has been wired exactly as shown in the wiring diagram, only the following changes need to be made in ESP.ino:

  • Enter the WiFi-SSID and password
// WLAN
const char* ssid = "yourSSID";
const char* pw = "yourPW";
  • Enter the User-Name and the password
String email = "[email protected]";
String pw_API = "yourPassword";
  • Enter a unique espID
String espID = "yourEspId";
  • Enter a mesuring intervall
#define IntervallTime 5

At the Module.h you have to cange the following thinks

  • the timezone, if you don't live at the UTC+2 _timezone
const long utcOffsetInSeconds_winter = 3600; // Winterzeit in sek zur UTC Zeit
const long utcOffsetInSeconds_summer = 7200; // Winterzeit in sek zur UTC Zei
  • Indication of the minimum and maximum tank level. It is important to remember that the sensor measures the distance to the water surface. The first parameter is given in cm, the second is given as the fill level in percent.
//weitere Parameter
#define maxTankhoehe 30 //Angabe in cm bei denen der Sensor den Tank als leer erkennt
#define minTanklevel 10 //Füllgrad in % b dem die Pumpe nicht mehr gießt

If you use your own Backend you have to cange the ServerPath and the Endpoint Names:

String baseUrl = "yourServerPath"; // Pfad zum Backend
String login_table = "user/login"; // Stelle an der sich der ESP bei der API einloggen muss
String tablePlant = "plant"; // Stelle an der sich der ESP die Pflanze holen kann
String tableDB = "data"; // Stelle an der ESP die Pflanzen Datensätze posten soll

If you have not wired the sensors and the relay as shown in the plan, you must adjust the pin assignment at the Module.h.

// PINs
#define ultraschalltrigger 34 // Pin an HC-SR04 Trig
#define ultraschallecho 35    // Pin an HC-SR04 Echo
#define BodenfeuchtigkeitPIN 33
#define PumpePIN 26
#define dhtPIN 23
#define dhtType DHT22
DHT dht(dhtPIN, dhtType);

Once you have made the specified changes, you can load the ESP.ino and Module.h onto your ESP. The debugging information is displayed via the serial monitor. If you have not wired the sensors and the relay as shown in the plan, you must adjust the pin assignment.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

lazyplants's People

Contributors

codacy-badger avatar ela-1337 avatar jdk-21 avatar kokoloris19097 avatar mahallon avatar naschkadse avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kokoloris19097

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.