
This project consists of creating an automatic watering system for plants, which triggers a water supply only in case of need. Suitable for a single plant or a small plantation, this system can be replicated at different scales. It will allow you to maintain your plants in your absence, or to manage the growth of species particularly sensitive to moisture by setting fine adjustments.
This automatic watering device will provide an opportunity to study the use of an analog signal from a sensor to activate a fairly powerful actuator (here an electric pump) using a relay.
Located near the plant or plants to be monitored, the installation monitors the state of drought of the earth with the help of a dedicated sensor, characterizing the resistance of the earth between two electrodes. This information is then used to activate a 5V pump, driven by an Arduino board to supply plants with water.
To make the assembly, we can connect
For the soil moisture sensor:
For relay :
For the water pump:
Here is the program for the Arduino board connected to the automated parking system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
int digitalPin = 4; // For relay int analogPin = A0; // For the soil moisture sensor int digitalVal; // digital readings int analogVal; //analog readings void setup() { pinMode(digitalPin, OUTPUT); digitalWrite(digitalPin, LOW); } void loop() { analogVal = analogRead(analogPin);//read the value returned by the moisture sensor if (analogVal<400){//if the humidity sensor returns a value<500 digitalWrite(digitalPin, HIGH);//The water pump waters the plant } else { // sinon digitalWrite(digitalPin, LOW);//Water pump stops watering } delay(100); } |
David 10-12-2121
Hello bro, i want to make color detector with a phone and a arduino for detect color of coffee beans, it is possible?