This shows you the differences between two versions of the page.
iothings:proiecte:2022:automated_irrigation_system [2023/01/19 01:45] razvan.negulescu |
iothings:proiecte:2022:automated_irrigation_system [2023/01/20 09:10] (current) razvan.negulescu |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Automated Irrigation System ==== | ==== Automated Irrigation System ==== | ||
- | Student: Negulescu Razvan-Adrian, ACES\\ | + | * Student: Negulescu Razvan-Adrian, ACES\\ |
- | Git code: \\ | + | * Youtube demo: https://youtu.be/jzyOkNfnHeY |
- | Youtube demo: \\ | + | * Project zip: {{:iothings:proiecte:2022:automated_irrigation_system.zip|}} |
+ | * Application: https://automated-irrigation-system-v1.web.app/ | ||
=== 1. Introduction. Description of the project === | === 1. Introduction. Description of the project === | ||
+ | In recent years, smart agriculture has experienced considerable developement, productivity | ||
+ | and efficiency, being the main descriptive terms of this process. With the developement of controlled | ||
+ | technology a lot of methods and systems have been developed for monitoring the paramters specific | ||
+ | to agriculture. | ||
+ | In this case, farmers can control the main factors that influence the agricultural process, | ||
+ | obtaining a maximum productivity, advantageous from an economic point of view. | ||
+ | In this project we are using an ESP32 CH340 developement board connected to a soil | ||
+ | moisture sensor, a DHT11 temperature and humidity sensor and a water pump and other peripherals to create | ||
+ | an smart irrigation system redesigned on a smaller scale, for a potted plant that can be found in everyone's home. | ||
+ | |||
+ | For programming the board I used Arduino IDE, being compatible and having a special set of | ||
+ | libraries for ESP32. The soil moisture sensor is used to measure the moisture level of the soil, and based on a predefined threshold | ||
+ | it automatically waters the plant using the submersible water pump. | ||
+ | |||
+ | Also to keep the plant in a friendly enviroment (a good temperature) we are using a DHT11 sensor to read the temperature and humidity, and using a cooling fan and a heating element (incandescent light), based on a set threshold we can chage the temperature in the plant proximity. | ||
+ | |||
+ | I created a Firebase database to store all extracted values, and I implemented a Web Application to have a better vizualization on the data using figures such as gauges and linear graphs. | ||
=== 2. Hardware components and wiring === | === 2. Hardware components and wiring === | ||
Line 27: | Line 45: | ||
* Micro USB data cable | * Micro USB data cable | ||
* PC with an internet connection and with Arduino IDE | * PC with an internet connection and with Arduino IDE | ||
+ | |||
+ | * Here is how the setup looks like: | ||
+ | |||
+ | {{:iothings:proiecte:2022:poza_automated_irrigation_system_setup.jpg?720|}} | ||
+ | |||
+ | * Here is a better view to the connections: | ||
{{:iothings:proiecte:2022:irrigation_system_schematic.jpg?720|}} | {{:iothings:proiecte:2022:irrigation_system_schematic.jpg?720|}} | ||
=== 3. Software implementation === | === 3. Software implementation === | ||
+ | * The code for the ESP32 was created in ArduinoIDE. | ||
- | + | {{:iothings:proiecte:2022:code_logic.jpg?720|}} | |
- | === 4. Demonstration === | + | |
+ | * Firebase database fetching data from the Esp32: | ||
+ | |||
+ | {{:iothings:proiecte:2022:Firebase_Automated_Irrigation_System.jpg?720|}} | ||
+ | |||
+ | * The web application cards and gauges: | ||
+ | |||
+ | {{:iothings:proiecte:2022:happy_plant_simple.jpg?720|}} | ||
+ | |||
+ | * The web application charts: | ||
+ | |||
+ | {{:iothings:proiecte:2022:happy_plant_charts.jpg?720|}} | ||
+ | |||
+ | * The web aplication table: | ||
+ | |||
+ | {{:iothings:proiecte:2022:happy_plant_table.jpg?720|}} | ||
+ | |||
+ | |||
+ | === 4. Demonstration === | ||
+ | This setup was implemented to measure the moisture level and the other parameters once a day. | ||
+ | To create a demo video, I changed the thresholds in the ESP32 code, so that the room temperature and the moisture of the soil don't create any difficulties. | ||
+ | At the start of the wiki is a Youtube link to the demo. | ||
=== 5. Conclusion === | === 5. Conclusion === | ||
+ | In conclusion this project is an interesting way to see how the embedded systems and the Internet of Things can | ||
+ | be used in our every day life and what benefits we could get from them and last but not least it is a great way to | ||
+ | learn more about senors, circuits, protocols and how to implement a Firebase DB and creating a web application. | ||
+ | The main use of this project is to implement an easy way to monitor the soil moisture, temperature and humidity | ||
+ | of a plant, also being convenient and cost-effective. | ||
+ | |||
+ | |||
=== 6. Resources === | === 6. Resources === | ||
+ | * https://randomnerdtutorials.com/ | ||
+ | * https://randomnerdtutorials.com/esp32-data-logging-firebase-realtime-database/ | ||
+ | * https://randomnerdtutorials.com/esp32-esp8266-firebase-gauges-charts/ | ||
+ | * https://www.instructables.com/ | ||
+ | * https://www.w3schools.com/html/ | ||
+ | * https://www.w3schools.com/js/default.asp |