Intro: Automatic Plant Watering System
In this instructable I will show you how to make an automatic plant watering system using an Arduino. This can be very useful if you are a forgetful person, if you are going on vacation or if you are just a lazy person. :)
Step 1: Code
This code tells the pump to water your plants after a certain amount of time. I chose 86400 seconds because it is one day but you can change this by adjusting the first wait command. If you want to adjust the amount of water, change the last wait. Once you are finished just upload the program to your Arduino.
*If you are not using the led only keep blocks 1,6,7 and 8*
Step 2: Parts
1. An arduino with a cable
2. Electrical tape
3. An LED with its corresponding resistor (this is optional)
4. A water pump with a hose and a cable
5. 2 jumper cables
Step 3: Water Container
You will need a container to store your water. you can either 3d print one or use an already existing one. I am going to use an old trash can.
Step 4: Planter
If this is not for your garden you will probably need a planter. Like the water container, you can either make one ore use an existing one.
Step 5: Circuit Step One
If you are using an led then place one end of the resistor to ground and connect the other one to the negative lead of the led. you can either solder this or simply use electrical tape. Then connect the positive lead to pin 8.
*I am using a 330 ohm resistor but you can use an other one if you don't have a 330 ohm resistor.*
*The positive lead is the long one and the negative lead is the short one.*
** If you are not using the led please ignore this step.*
Step 6: Step Two of Circuit
Next connect one jumper cable to pin 13.
Step 7: Step Three of Circuit
Step Three of Circuit
Step 8: Step Four of Circuit
Connect both jumper cables to their corresponding cable of the water pump(the positive to the positive and the negative to the negative).
Step 9: Final Step
Submerge your pump in water and place the hose in your planter.