user:munashe001
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:munashe001 [2021/09/01 23:52] – old revision restored (2021/09/01 22:58) munashe001 | user:munashe001 [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Munashe-Moses Chabvuta (munashe001) - Public Page ====== | ||
- | This public page ''// | ||
- | * You can introduce yourself, add links to your contributions in this wiki, tell a story or present your other works | ||
- | * Think about [[wp> | ||
- | Limitations: | ||
- | * You shouldn' | ||
- | * Only a superuser can add a picture | ||
- | |||
- | Feel free to remove this paragraph (beside the title)...\\ | ||
- | Now, write something! :-D | ||
- | |||
| | ||
- | 1. === Introduction === | + | 1. |
+ | === Introduction === | ||
- | Soil Moisture refers to water contained within the soil and is also regarded as a measure of soil health. Soil moisture is further | + | Soil Moisture refers to the amount of water contained |
- | Soil moisture is major variable in controlling | + | Soil moisture is major variable in plant functions. It acts as a solvent where nutrients and minerals are broken down for easy absorption by the roots of plant. It provides turgidity which gives the plant true stability and positioning. It further controls |
As soil moisture availability declines, the functionality and growth of plants is disrupted resulting in lower crop yields. As the climate changes, moisture availability is becoming more variable. As a result the automatic plant watering system project takes into account the measurement of soil moisture of house plants by a capacitive soil moisture sensor. If the soil moisture values obtained by the sensor are below a certain value the sensor will automatically turn on the water pump which is responsible for delivering the water requirements of the plant until the optimum moisture content is achieved by the soil. | As soil moisture availability declines, the functionality and growth of plants is disrupted resulting in lower crop yields. As the climate changes, moisture availability is becoming more variable. As a result the automatic plant watering system project takes into account the measurement of soil moisture of house plants by a capacitive soil moisture sensor. If the soil moisture values obtained by the sensor are below a certain value the sensor will automatically turn on the water pump which is responsible for delivering the water requirements of the plant until the optimum moisture content is achieved by the soil. | ||
Line 23: | Line 13: | ||
=== Materials and Methods === | === Materials and Methods === | ||
- | The following materials and components were brought together to drive the project. | + | The following materials and components were brought together to drive the project. |
+ | |||
+ | • Arduino Uno R3 | ||
+ | |||
+ | • ESP32 Wrover-B | ||
• Capacitive Soil Moisture Sensor | • Capacitive Soil Moisture Sensor | ||
- | • 5V water submersible pump | + | • 5V water submersible pump |
+ | |||
+ | • 2N2222 NPN Transistor | ||
+ | |||
+ | • Breadboard | ||
• Jump Wires | • Jump Wires | ||
- | • ESP32 Wrover-B module | ||
- | |||
- | • 2N222 NPN Transistor | ||
Line 51: | Line 46: | ||
• Dimensions 3.86 * 0.905 inches(L x W) | • Dimensions 3.86 * 0.905 inches(L x W) | ||
+ | |||
+ | Capacitive soil moisture measuring has some advantages over the resistive soil moisture sensor. There is reduced corrosion of the probe and there is an improved reading of the moisture value as opposed to using a resistive moisture sensor. | ||
2.2 == The Arduino Uno Elegoo R3 == | 2.2 == The Arduino Uno Elegoo R3 == | ||
- | The Arduino Uno micro-controller was considered as the core of the operations of the automatic plant watering system. It is based on the At mega 328, meaning it is a high performance, | + | The Arduino Uno micro-controller was considered as the core of the operations of the automatic plant watering system |
Line 69: | Line 66: | ||
Fig1. Shows how current flows from the collector to the emitter. https:// | Fig1. Shows how current flows from the collector to the emitter. https:// | ||
- | As a result the base which is the middle leg of the transistor is connected to Pin 32 of the esp32 which will be set to output as the pin mode. The emitter is connected to the ground while the collector is connected to the other leg of the 5V submersible pump. | + | As a result the base which is the middle leg of the transistor is connected to digital pin 12 of the micro-controller |
+ | 3. | ||
+ | === Results === | ||
+ | Below is the the final code which is part of the results. It drives the whole project by sending instructions to Arduino micro controller to execute the performance of the components mentioned in the materials and methods. | ||
+ | |||
+ | < | ||
+ | const int dryairvalue = 570;// this the air value of the capacitive soil moisture sensor | ||
+ | |||
+ | const int watervalue = 275;// this is the water value of the soil moisture sensor | ||
+ | |||
+ | int moisturevalue = 0; // | ||
+ | |||
+ | int moisturepercent= 0; | ||
+ | |||
+ | const int Sensor = A0; | ||
+ | |||
+ | const int pumpPin = 12; | ||
+ | |||
+ | |||
+ | void setup() { | ||
+ | |||
+ | Serial.begin(9600); | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | { | ||
+ | | ||
+ | digitalWrite(pumpPin, | ||
+ | delay(5000); | ||
+ | } | ||
+ | else if(moisturepercent <= 0) | ||
+ | { | ||
+ | Serial.println(" | ||
+ | digitalWrite(pumpPin, | ||
+ | delay(5000); | ||
+ | } | ||
+ | else if(moisturepercent >0 && moisturepercent < 100) | ||
+ | { | ||
+ | Serial.print(moisturepercent); | ||
+ | | ||
+ | } | ||
+ | delay(250); | ||
+ | } | ||
+ | </ | ||
user/munashe001.1630533153.txt.gz · Last modified: 2023/01/05 14:38 (external edit)