1.Product Introduction
Raindrop sensor is a device used to detect the falling of raindrops, which is commonly used in automotive, smart home, and meteorological fields. It can sense the presence of precipitation and trigger the corresponding operation or feedback.
The working principle of the raindrop sensor is to use the resistance between two electrodes to sense the landing of raindrops. When the raindrop falls to form a conductive path between the electrodes, the resistance value will change accordingly, and the sensor determines whether there is a raindrop by measuring the resistance change.
Application reference: This module can be used for car wiper, smart home and weather detection station.
2.Parameter Specification
Parameter | Value//Description |
---|---|
Operating voltage | 3.3V~5V |
Operating temperature | -25°C~+85°C |
Output signal | analog signal |
Size | 3.16cm*2.38cm |
3.Wiring Diagram
Raindrop Sensor | UNO |
---|---|
VCC | 5V |
GND | GND |
S | Analog pin A0 |
4.Sample Code
1//www.acebott.com
2void setup() {
3 pinMode(A0, INPUT); // Set pin A0 as an input
4 Serial.begin(9600); }
5void loop() {
6 Serial.println(analogRead(A0)); // Read the state of pin A0 and print it to the serial monitor
7 delay(1000);
8}
5.Test Result
After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to automatic scrolling mode.
Drop water on the module and check the value of the serial port monitor with and without water on the raindrop sensor. You can see that the more water on the raindrop sensor, the greater the value of the serial port monitor.
6.Related Resources
7.Get One Now
B2B Business: info@acebott.com