AutoWaterFlora : the Self Watering Plant
by Phoenix ZX200 in Circuits > Arduino
294 Views, 1 Favorites, 0 Comments
AutoWaterFlora : the Self Watering Plant
This is a self watering plant apparatus which will start the pump for specific time and at specific intervals.
Working:
The project works on the simple timer of Arduino Uno board and will initiate the pump to work for specific time at specific intervals. I have taken the pump working time as 2 seconds and interval as 6 hours.
Supplies
Electronics
Arduino Uno : https://www.amazon.in/Robotbanao-Atmega328p-Cable...
Motor Shield : https://www.amazon.in/Robotbanao-L293D-Shield-Ard...
Pump : https://www.amazon.in/Robotbanao-Mini-Micro-Subme...
Adapter : https://www.amazon.in/LRIPL120-Power-Adapter-AIRT...
Tools
Hot Glue Gun
Screwdriver
Some more materials
A potted plant
Old plastic container for water
Uploading the Code
Code:
The code is quiet simple and easy to understand.
#include // Add the AFMotor Library to the IDE
AF_DCMotor motor(2); // Make a motor object on the second motor output
void setup() {
motor.setSpeed(100); // Set the speed of the motor
motor.run(RELEASE);
} void loop() {
motor.run(FORWARD); //Start the motor
delay(2000); //Time for the pump to work = 2 seconds, can be changed as per needs
motor.run(RELEASE); // Stop the motor
delay(21600000); //Pump interval = 6 hours, can be changed as per needs
Wiring
Do the wiring of the components as per this diagram. Note that the Shield is attached to Arduino Uno (on top).
Motor to be connected on M2 terminal and the power source as per negative positive.
The Shield to be on top of Arduino Uno.
Important Step
Add the AFMotor library:
- Download the Attached compressed folder.
- To add the library go to Sketch tab > Include Library> Add .ZIP library> Select the compressed folder of this file.
Also using the glue gun paste the motor in the plastic container.
Please visit my blog: https://phoenixzx200.blogspot.com/
Comment, Share and Follow