Here is the third chapter of your report:
Chapter 3: Implementation of Arduino as an Automatic Control System in Plant Watering Systems
In this chapter, we will discuss the implementation of the Arduino-based automatic control system for plant watering. The system consists of three main components: the Arduino microcontroller, the soil moisture sensor, and the water pump. We will describe the hardware and software design of the system, as well as the testing and validation process.
3.1 Hardware Design
The hardware design of the plant watering system consists of the following components:
Arduino microcontroller: The Arduino microcontroller used in this project is the Arduino Uno. It is a popular microcontroller board that is widely used in various automation and control applications.
Soil moisture sensor: The soil moisture sensor used in this project is the DHT11 sensor. It is a low-cost digital sensor that can measure both temperature and humidity. The sensor outputs a digital signal that can be easily read by the Arduino microcontroller.
Water pump: The water pump used in this project is a 12V DC submersible water pump. It is a small and compact pump that can be used for various applications, including plant watering.
Jumper wires: Jumper wires are used to connect the various components of the system to the Arduino microcontroller.
The soil moisture sensor is connected to the Arduino microcontroller using the A0 analog input pin. The water pump is connected to the Arduino microcontroller using the D2 digital output pin. The power supply for the system is provided by a 12V DC power adapter.
3.2 Software Design
The software design of the plant watering system consists of the following components:
Arduino IDE: The Arduino Integrated Development Environment (IDE) is used to write and upload the code to the Arduino microcontroller.
C programming language: The code for the plant watering system is written in C language, which is the programming language used for Arduino microcontrollers.
The software design of the plant watering system consists of two main parts: the sensor reading and the control logic.
Sensor reading: The soil moisture sensor outputs an analog signal that is read by the Arduino microcontroller using the A0 analog input pin. The analog signal is converted to a digital value using the analogRead() function in the C language.
Control logic: The control logic of the plant watering system is implemented using the if-else statement in the C language. The soil moisture sensor reading is compared to a threshold value, and if the reading is below the threshold, the water pump is turned on to water the plants. If the reading is above the threshold, the water pump is turned off.
3.3 Testing and Validation
The plant watering system was tested and validated using the following steps:
Setup: The hardware components of the system were assembled and connected to the Arduino microcontroller. The software code was uploaded to the Arduino microcontroller using the Arduino IDE.
Testing: The soil moisture sensor was placed in the soil near the plants, and the water pump was turned on and off manually to ensure that it was working properly.
Validation: The plant watering system was left to run for several days, and the soil moisture sensor readings were monitored to ensure that the system was functioning correctly.
The plant watering system was found to be working correctly, and the plants were watered automatically according to the threshold value set in the control logic.
3.4 Conclusion
In this chapter, we discussed the implementation of the Arduino-based automatic control system for plant watering. The hardware and software design of the system was described, as well as the testing and validation process. The plant watering system was found to be working correctly, and the plants were watered automatically according to the threshold value set in the control logic. In the next chapter, we will discuss the results and analysis of the plant watering system.