Battery-Powered Rain Sensor with LED and Piezo Speaker Alert
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to detect rain using a YL-83 Rain Sensor and provide visual and auditory alerts through an LED and a Piezo Speaker. The circuit is powered by a 9V battery and utilizes an NPN transistor to control the LED and Piezo Speaker based on the rain sensor's output.
Component List
9V Battery
- Description: Provides power to the circuit.
- Pins:
+,-
YL-83 Rain Sensor - Detection Board
- Description: Detects the presence of rain.
- Pins:
POS,NEG
LED: Two Pin (red)
- Description: Provides a visual indication when rain is detected.
- Pins:
cathode,anode
NPN Transistor (EBC)
- Description: Acts as a switch to control the LED and Piezo Speaker based on the rain sensor's output.
- Pins:
emitter,base,collector
Piezo Speaker
- Description: Provides an auditory alert when rain is detected.
- Pins:
pin1,pin2
Wiring Details
9V Battery
Pin
-is connected to:cathodeof the LEDpin1of the Piezo Speaker
Pin
+is connected to:POSof the YL-83 Rain Sensoremitterof the NPN Transistor
YL-83 Rain Sensor - Detection Board
Pin
POSis connected to:+of the 9V Batteryemitterof the NPN Transistor
Pin
NEGis connected to:baseof the NPN Transistor
LED: Two Pin (red)
Pin
cathodeis connected to:-of the 9V Batterypin1of the Piezo Speaker
Pin
anodeis connected to:collectorof the NPN Transistorpin2of the Piezo Speaker
NPN Transistor (EBC)
Pin
emitteris connected to:POSof the YL-83 Rain Sensor+of the 9V Battery
Pin
baseis connected to:NEGof the YL-83 Rain Sensor
Pin
collectoris connected to:anodeof the LEDpin2of the Piezo Speaker
Piezo Speaker
Pin
pin1is connected to:cathodeof the LED-of the 9V Battery
Pin
pin2is connected to:collectorof the NPN Transistoranodeof the LED
Code
No microcontroller code is provided for this circuit.