Rain Sensor using an Arduino and compressed air valve.
HTML-код
- Опубликовано: 13 сен 2024
- I wanted a rain sensor for a future project but I need the rain to be removed from the sensor so it can detect after about 10 minutes. I`ve tried fitting the sensor to a servo motor in the past to tilt it 90 degrees to let the rain drain off but it was too slow.
If you use OBS studio on your desktop it will help record your screen so you don't have to keep moving your camera! great video
I use Avidemux to edit and it has trouble mixing different video types. I`ve can capture video on my PC. I`ll have a go with OBS and see if I can mix that with my old Canon D1100 vid`s. Cheers for watching. I`m always trying to get better. My early vids were rubbish lol.
you making a water plants if plants not wet lol- , what happens if it keeps raining woud trhe air keep blowing anver 5 secs mate ?
This is for the washing line. To take it in when it rains. :) I did use the air valve for watering plants a few years ago. Got flooded out too many times lol
@@damianbutterworth2434 lol i thougfht you already did the auto washing line when you did the blinds whats this version 2 ? are you gonna have it put back out the washing when it stops rraining ie : if rain- true then say in if rain = flalse then pop back out lol would be efficient if it was only a short shower your washing would be able to go out when it stopped :)
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
int sensorValue = 0; // value read from the pot
#include
LCD_I2C lcd(0x27, 20, 4); // Default address of most PCF8574 modules, change according
void setup() {
// If you are using more I2C devices using the Wire library use lcd.begin(false)
// this stop the library(LCD-I2C) from calling Wire.begin()
lcd.begin();
lcd.display();
lcd.backlight();
pinMode(8, OUTPUT);
digitalWrite(8, HIGH);
}
void loop() {
// read the analog in value:
sensorValue = analogRead(analogInPin);
if(sensorValue >= 200){
lcd.setCursor(0,1);
lcd.print("RAINING!!!!!!!!!!");
delay(5000);
digitalWrite(8, LOW);
delay(1000);
digitalWrite(8, HIGH);
delay(5000);
}
if(sensorValue