![]() Then, the servo returns to its original position. That is after the servo motor horn moves 70 degrees toward the first pot, the motor pump will be on for five seconds and then stop automatically. When the moisture level dips below 600, the servo horn rotates at an angle of 70 degrees. Place the flower pots where the pipe from the servo motor horn can easily reach them. Changing the threshold value according to your need.The default values are five seconds and eight seconds. Changing the watering time according to the size of the pot.The default values are 70 degrees and 145 degrees. Changing the angle of rotation of the servo horn toward the first pot and second pot.Installing the water pump in the container Attaching the pipe on the servo hornīefore powering the circuit on, you need to keep in mind the following macro definitions in the code: Attach the water pipe on the servo motor horn. Install the pump in a water container that can hold a few liters of water. Component Layoutĭownload PCB and Component Layout Automatic Plant Watering System Working Do not immerse the sensors fully inside the soil. Upload the code to the Arduino UNO board and install the sensors in the soil of the potted plants. Alternatively, you can assemble them on a breadboard or Arduino prototyping shield, or a general-purpose PCB. PCB LayoutĪssemble the components on the PCB to minimize errors. Comment out if you do not wish to use the serial monitor.Īn actual-size, single-sided PCB layout of the automatic plant watering system is shown in Fig. ![]() Serial debugging is available in this program. The sensor will calibrate by itself once it is kept in the soil and the threshold value will be shown on the serial monitor in Arduino. Compile the autowatering.ino code and upload it to the microcontroller, using Arduino IDE version 1. ![]() The code is well-commented and easy to understand. The program is written in Arduino programming language.
0 Comments
Leave a Reply. |