Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Rain Sensor Plate (YL-83 / FC-37): Examples, Pinouts, and Specs

Image of Rain Sensor Plate (YL-83 / FC-37)Design with Rain Sensor Plate (YL-83 / FC-37) in Cirkit Designer

Introduction

The Rain Sensor is a device designed to detect the presence of rain or water. It is commonly used in weather monitoring systems, automatic wiper control in vehicles, and smart irrigation systems. The sensor typically consists of a rain detection board and a control module that outputs either an analog or digital signal based on the presence of water droplets.

By integrating this sensor into a circuit, users can automate responses to rain, such as activating windshield wipers, sending alerts, or pausing irrigation to conserve water.

Explore Projects Built with Rain Sensor Plate (YL-83 / FC-37)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino UNO Controlled Rain-Activated Servo System: A project utilizing Rain Sensor Plate (YL-83 / FC-37) in a practical application
Arduino UNO Controlled Rain-Activated Servo System

This circuit features an Arduino UNO microcontroller connected to a YL-83 Rain Sensor and a Tower Pro SG90 servo motor. The rain sensor's analog output is read by the Arduino on pin D4 to detect rain presence, and the servo motor is controlled via pin D5. When rain is detected, the servo motor is actuated to a position based on the sensor's output, likely to perform an action like closing a water tap or moving a cover to protect something from the rain.

Open Project in Cirkit Designer
Image of Arduino UNO Controlled Rain-Activated Servo System: A project utilizing Rain Sensor Plate (YL-83 / FC-37) in a practical application
Arduino UNO Controlled Rain-Activated Servo System

This circuit features an Arduino UNO connected to a YL-83 Rain Sensor and a Tower Pro SG90 servo motor. The rain sensor's analog output is connected to a digital pin on the Arduino, which reads the sensor's state to control the position of the servo motor. When the sensor detects rain, the servo is set to one position, and when no rain is detected, it moves to another position, likely representing a simple rain-activated mechanism.

Open Project in Cirkit Designer

Technical Specifications

Pin Configuration and Descriptions

Rain Detection Board

Pin Name Description
VCC Power supply input (3.3V to 5V)
GND Ground connection
AOUT Analog output signal
DOUT Digital output signal

Control Module

Pin Name Description
VCC Power supply input (3.3V to 5V)
GND Ground connection
DOUT Digital output signal
AOUT Analog output signal
Sensitivity Adjust Potentiometer to adjust the sensitivity of the digital output

Usage Instructions

How to Use the Rain Sensor in a Circuit

  1. Connect the Power Supply:
    • Connect the VCC pin to a 3.3V or 5V power source.
    • Connect the GND pin to the ground of the circuit.
  2. Choose the Output Type:
    • For digital output, connect the DOUT pin to a digital input pin on your microcontroller.
    • For analog output, connect the AOUT pin to an analog input pin on your microcontroller.
  3. Adjust Sensitivity:
    • Use the onboard potentiometer to adjust the sensitivity of the digital output. Turn clockwise to increase sensitivity and counterclockwise to decrease it.
  4. Monitor the Output:
    • The digital output will be HIGH (1) when no rain is detected and LOW (0) when rain is detected.
    • The analog output will vary based on the amount of water on the sensor.

Important Considerations and Best Practices

Example: Connecting to an Arduino UNO

Below is an example of how to use the Rain Sensor with an Arduino UNO to monitor rain and display the status via the Serial Monitor.

// Define pin connections
const int digitalPin = 2; // Digital output from the sensor
const int analogPin = A0; // Analog output from the sensor

void setup() {
  pinMode(digitalPin, INPUT); // Set digital pin as input
  Serial.begin(9600); // Initialize serial communication
}

void loop() {
  int digitalValue = digitalRead(digitalPin); // Read digital output
  int analogValue = analogRead(analogPin);   // Read analog output

  // Print the digital and analog values to the Serial Monitor
  Serial.print("Digital Output: ");
  Serial.println(digitalValue);
  Serial.print("Analog Output: ");
  Serial.println(analogValue);

  // Add a delay to avoid flooding the Serial Monitor
  delay(500);
}

Troubleshooting and FAQs

Common Issues

  1. No Output Signal:

    • Cause: Loose or incorrect wiring.
    • Solution: Double-check all connections, ensuring the VCC and GND pins are properly connected.
  2. Erratic Readings:

    • Cause: Unstable power supply or dirty detection board.
    • Solution: Use a stable power source and clean the detection board with a soft cloth.
  3. Digital Output Always HIGH:

    • Cause: Sensitivity is too low or no water is detected.
    • Solution: Adjust the potentiometer to increase sensitivity and ensure the board is exposed to rain.
  4. Digital Output Always LOW:

    • Cause: Sensitivity is too high or the board is wet.
    • Solution: Adjust the potentiometer to decrease sensitivity and dry the board.

FAQs

Q1: Can the Rain Sensor detect the intensity of rain?
A1: Yes, the analog output provides a variable signal that corresponds to the amount of water on the detection board, which can be used to estimate rain intensity.

Q2: Is the Rain Sensor waterproof?
A2: The detection board is designed to handle water, but the control module and connections should be protected from water exposure.

Q3: Can I use the Rain Sensor with a 3.3V microcontroller?
A3: Yes, the sensor operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V microcontrollers like the ESP32.

Q4: How do I clean the Rain Sensor?
A4: Use a soft, dry cloth to gently wipe the detection board. Avoid using abrasive materials or chemicals.