amc2021:groupg:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc2021:groupg:start [2021/09/06 14:03] – [2.1.5 Relay Module] marie001 | amc2021:groupg:start [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 61: | Line 61: | ||
=== 2.1.5 Relay Module === | === 2.1.5 Relay Module === | ||
- | A [[file:///C:/ | + | A [[http://www.dipmicro.com/?datasheet=HLS8L.pdf|Relay HLS8L-DC5V-S-C]] with a coil voltage(primary voltage) of 5V was used as an electrical switch to control when the pump turns on and off as the water pump has a higher voltage than the ESP32. The relay module acts like a bridge inbetween the water pump and the ESP32. |
{{: | {{: | ||
Line 89: | Line 89: | ||
==== 3.1 Code ==== | ==== 3.1 Code ==== | ||
+ | |||
+ | The code below includes the libraries used and shows how it was connected to Wifi and to MQTT for data transmission. | ||
<file c++ Automatic watering system.ino> | <file c++ Automatic watering system.ino> | ||
Line 214: | Line 216: | ||
</ | </ | ||
+ | |||
+ | The code below is about the measurement readings and MQTT publishing. | ||
<file c++ MQTT publishing.ino> | <file c++ MQTT publishing.ino> | ||
Line 264: | Line 268: | ||
**Why the pump should be turned on when the soil moisture value is above 2800?** | **Why the pump should be turned on when the soil moisture value is above 2800?** | ||
- | * Dry in open air = | + | * Dry in open air = 3500 |
- | * Dry soil needing water > 380 / 2800 | + | * Dry soil needing water = 2800 - 3100 |
- | * Ideal soil moisture = 277 – 380 | + | |
* Moisture in a just watered soil = 1800 | * Moisture in a just watered soil = 1800 | ||
* Moisture in a cup of water = 1640 | * Moisture in a cup of water = 1640 | ||
Line 273: | Line 276: | ||
* Value < 1500 implies that the soil is too wet. | * Value < 1500 implies that the soil is too wet. | ||
- | * Soil moisture between | + | * Soil moisture between |
* Soil moisture value > 3300 implies that the soil is dry enough and it should be watered. | * Soil moisture value > 3300 implies that the soil is dry enough and it should be watered. | ||
Line 298: | Line 301: | ||
=== 4.1 Limitations & Improvements === | === 4.1 Limitations & Improvements === | ||
At first, we tried using the DHT 11 and DHT 22 sensors for the measurement of the two parameters namely temperature and humidity which unfortunately did not give us any results and it seemed to be unreliable. We then switched to the Grove Temperature & Humidity sensor (SHT31) which gave us accurate results for the measurement of these two parameters. | At first, we tried using the DHT 11 and DHT 22 sensors for the measurement of the two parameters namely temperature and humidity which unfortunately did not give us any results and it seemed to be unreliable. We then switched to the Grove Temperature & Humidity sensor (SHT31) which gave us accurate results for the measurement of these two parameters. | ||
- | We also wanted to use the ultrasonic sensor to measure the water level but it required a voltage of 5V which is not supported by the ESP32 as it has a maximum of 3.3 V. | + | We also wanted to use the ultrasonic sensor to measure the water level but it required a voltage of 5V which is not supported by the ESP32 as it has a maximum of 3.3 V. |
+ | In our project, we have a drip water system which waters one small pot at a time and the water tube has to be placed in each of the pots in order to water them. As an improvement for a better watering system, a sprinkler could be used instead to water the plants. | ||
+ | To conclude, the aim of this project which was to develop an automated watering system for plants in indoor greenhouses was achieved, regardless of the limitations, | ||
===== 5.0 Video showing the project ===== | ===== 5.0 Video showing the project ===== | ||
amc2021/groupg/start.1630929834.txt.gz · Last modified: 2023/01/05 14:38 (external edit)