Model : Automated Windshield Wiper System
This simple project explains how to build a Arduino based model wiper system for vehicles.
A raindrop sensor is used to detect rain.An analog reading is taken from the sensor.
When the raindrop sensor value exceeds a specific limit, the two servo motors will operate after a 10 seconds delay for smooth operation.
The servo motors(both Servo -01 & Servo -02) are controlled by the Arduino to operate between 0-120° degrees.
The LCD Module will always display whether it is raining or not.When it rains, the LCD module will display that the wiper system is activated.
Tools & Components
1 X Arduino Nano1 X Raindrop Sensor + HL-01 Module
1 X 16x2 LCD Module + i2c Module
2 X Metal Gear Servo Motor
1 X Breadboard
2 X Wiper Blades
Jumper Wires
Suitable arrangement for Wiper mechanism
Connecting Components
Servo -02 Sig. Pin - Arduino Pin D10
Raindrop Sensor Analog Pin - Arduino Pin A0
LCD i2c SCL Pin -Arduino Pin A5
LCD i2c SDA Pin -Arduino Pin A4
Note :
- Sensitivity of the raindrop sensor can be adjusted from the HL-01 module.
- Raindrop sensor must be mounted on top to detect rain better.
- Servo motors require high current when operating.Hence a power supply with 3A rating is suitable for proper operation.
Arduino Code
//2020 CraftyBin@Blogspot
//Author : Chathura H.
#include <Servo.h>
Servo myservo1;
Servo myservo2;
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
myservo1.attach(11);
myservo2.attach(10);
Serial.begin(9600);
lcd.begin();
}
int inputvalue;
void loop() {
inputvalue = analogRead(A0);
Serial.println(inputvalue);
delay(100);
if (inputvalue <= 200)
{lcd.backlight();
lcd.print("Rain Detected");
delay(500);
lcd.clear();
lcd.print("Activating Wiper");
delay(500);
lcd.clear();
delay(10000);
myservo1.write(120);
myservo2.write(120);
delay(1500);
myservo1.write(0);
myservo2.write(0);
delay(1500);
}
else {
lcd.backlight();
lcd.print("Rain Not Detected");
delay(500);
lcd.clear();
myservo1.write(0);
myservo2.write(0);
}
}
//Author : Chathura H.
#include <Servo.h>
Servo myservo1;
Servo myservo2;
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
myservo1.attach(11);
myservo2.attach(10);
Serial.begin(9600);
lcd.begin();
}
int inputvalue;
void loop() {
inputvalue = analogRead(A0);
Serial.println(inputvalue);
delay(100);
if (inputvalue <= 200)
{lcd.backlight();
lcd.print("Rain Detected");
delay(500);
lcd.clear();
lcd.print("Activating Wiper");
delay(500);
lcd.clear();
delay(10000);
myservo1.write(120);
myservo2.write(120);
delay(1500);
myservo1.write(0);
myservo2.write(0);
delay(1500);
}
else {
lcd.backlight();
lcd.print("Rain Not Detected");
delay(500);
lcd.clear();
myservo1.write(0);
myservo2.write(0);
}
}
Safety First !
Always Connect the power supply if you are absolutely sure that the components are connected correctly without changing polarity and short circuited the wiring.
Even if it seems nothing is wrong : DOUBLE CHECK EVERYTHING !!
Your Feedback is very important to us.
Please Leave a comment about how you feel about this project.
Borgata Hotel Casino & Spa
ReplyDeleteBorgata Hotel Casino 김제 출장마사지 & Spa is located in 안산 출장샵 Atlantic City, New Jersey. The 광양 출장안마 casino's 제주 출장안마 400 guestrooms and suites consist of 110 gaming machines and Rating: 동두천 출장안마 2.6 · 3,326 reviews
Post a Comment