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 22:57] – [SOIL MOISTURE: AUTOMATIC PLANT WATERING SYSTEM] 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. |
+ | | ||
- | 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. | ||
- | 2. Materials and Methods | + | 2. |
+ | | ||
- | 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 | ||
- | 2.1 Capacitive Soil Moisture Sensor | + | |
+ | 2.1 == Capacitive Soil Moisture Sensor | ||
The capacitive soil moisture sensor determines the amount of soil moisture by measuring changes in capacitance to determine the water content of the soil. With a capacitor having the ability to store charge, a capacitive moisture sensor further measures the change in capacitance which is contributed by the changes in the dielectric. The moisture sensor rather measures the ions that are dissolved in the moisture, meaning it does not take into account the measurement of moisture directly. It mainly focuses on the dielectric which is created between the soil and water. Furthermore, | The capacitive soil moisture sensor determines the amount of soil moisture by measuring changes in capacitance to determine the water content of the soil. With a capacitor having the ability to store charge, a capacitive moisture sensor further measures the change in capacitance which is contributed by the changes in the dielectric. The moisture sensor rather measures the ions that are dissolved in the moisture, meaning it does not take into account the measurement of moisture directly. It mainly focuses on the dielectric which is created between the soil and water. Furthermore, | ||
Line 50: | Line 47: | ||
• Dimensions 3.86 * 0.905 inches(L x W) | • Dimensions 3.86 * 0.905 inches(L x W) | ||
- | 2.2 The Arduino Uno Elegoo R3 | + | 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. |
- | 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, | + | 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 after the Esp32 Wrover b module failed to establish an internet connection to the internet of things. It is based on the At mega 328, meaning it is a high performance, | ||
+ | |||
+ | |||
+ | 2.3 == Transistor NPN 2N2222 == | ||
- | Transistor NPN 2N2222 | ||
It is regarded as of the most common NPN bipolar junction transistors meaning, it is a type of transistor which makes use of both electrons and electron holes as charge carriers. It permits a trivial current administered at one of its terminals to control a much larger current flowing between the the two terminals resulting in the switching of a particular device. The 2N2222 transistor was taken into consideration to facilitate the switching of the 5V submersible water pump. | It is regarded as of the most common NPN bipolar junction transistors meaning, it is a type of transistor which makes use of both electrons and electron holes as charge carriers. It permits a trivial current administered at one of its terminals to control a much larger current flowing between the the two terminals resulting in the switching of a particular device. The 2N2222 transistor was taken into consideration to facilitate the switching of the 5V submersible water pump. | ||
The transistor has three pins which come with it. These pins have different purposes to deliver its intended use. The bipolar junction transistor uses the terms; collector, base and emitter. | The transistor has three pins which come with it. These pins have different purposes to deliver its intended use. The bipolar junction transistor uses the terms; collector, base and emitter. | ||
Line 66: | 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.1630529853.txt.gz · Last modified: 2023/01/05 14:38 (external edit)