Rain drop sensor with TinkerPie
A board that notices water drops: rain alarms, wet-floor signs.
| Type | Analog sensors |
|---|---|
| Connect to | P10-P13 |
| Gives | 0-100 % (wet = high) |
| Simulator | Yes: a control appears under the simulated board |
How it works
The rain board has two sets of metal lines very close together. Water drops connect them, which lowers the resistance between them, so the reading rises when it gets wet.
How to wire it
Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.rainSensor(Pin.P10)
// Arduino C++
sensors::rainSensor(Pin::P10) Good to know
- Gives a level from dry to very wet; there is also a digital output with a threshold knob.
- The metal lines corrode slowly; switch the sensor on only when you read it.
- Keep the small control board dry.
Projects with the Rain drop sensor
Similar modules
- Potentiometer (knob)
- Soil moisture sensor
- Light sensor module (LDR)
- Sound sensor module
- Gas / smoke sensor MQ-2
- Air quality sensor MQ-135
- Water level sensor
- Force sensor (FSR)
Questions
Can I try the Rain drop sensor without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
How long will a rain sensor last outside?
The metal tracks slowly corrode in water. Powering the sensor only when you take a reading makes it last much longer.