Teach Your Kid Electronics

Intermediate · Project 4

Rain Alarm

Make an alarm that buzzes when raindrops land on a sensor made of two bare wires.

Build this only with an adult present. Before you start, read our safety notice and disclaimer.

Intermediate⏱ About 25 min

🧰 What you need

  • 1×Half-size breadboardA board full of little holes with metal clips inside, so you can build circuits without soldering.
  • 1×3×AA battery holder with wire leadsHolds three AA batteries in a row and gives you a red (+) and black (−) wire.
  • 3×AA batteryA regular household battery. Each one gives 1.5 volts.
  • 2×2N3904 transistor (NPN)A tiny electronic switch: a small current into its middle leg (base) controls a bigger current.
  • 1×1 kΩ resistor — brown, black, red, goldColors: brown, black, red, gold.
  • 1×Active buzzer, 5 VBeeps all by itself when you connect it to a battery. Long leg is +. (A "passive" buzzer only clicks.)
  • 1×Stiff bare wire — two pieces, about 30 cm eachUncoated craft wire (or a straightened paper clip) you can bend into shapes.
  • 7×Jumper wire — two long ones for the sensorA short wire with stiff ends that push into the breadboard.
  • 1×Paper towelHolds water between the rain sensor wires.

✨ The finished project

A rain alarm: water across two bare wires switches on a Darlington pair and an active buzzer ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 + 2N3904EBC 2N3904EBC 1 kΩ AAAAAA3 × AA = 4.5 V+− wire 1wire 2
A rain alarm: water across two bare wires switches on a Darlington pair and an active buzzer ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 + 2N3904EBC 2N3904EBC 1 kΩ AAAAAA3 × AA = 4.5 V+− wire 1wire 2
Schematic: A rain alarm: water across two bare wires switches on a Darlington pair and an active buzzer Q2 Q1 + +4.5V +4.5V 4.5 V 2N3904 2N3904 1 kΩ wire 1 / wire 2 buzzer
The finished build. This picture is generated from the circuit itself and checked by computer, so every leg is in the right hole.

Pure water barely conducts electricity, but rainwater, tap water and puddles always have a little salt and dirt dissolved in them, and that water conducts. When a raindrop lands between two bare wires, it makes a tiny bridge for current. That’s all we need to sound an alarm!

This is the Touch Switch circuit again, with the touch pads swapped for a rain sensor and the LED swapped for a buzzer.

Make the rain sensor

  1. Lay a paper towel flat on a plate or tray.

  2. Bend two pieces of bare wire into matching zig-zags and lay them on the towel side by side, about 5 mm apart. They must not touch each other.

  3. Tape the ends down, and attach one long jumper wire to each zig-zag (twist tightly, or use alligator clips).

Build it

  1. Transistors: Q1 with E e13, B e14, C e15; Q2 with E e8, B e9, C e10. Flat sides facing you.

  2. Green wire: c13 to c9 (Q1’s emitter to Q2’s base).

  3. Red wires: a15 to T+15 (top red + rail, column 15), and a10 to T+10 (top red + rail, column 10).

  4. 1 kΩ resistor: b14 to b19.

  5. Blue wire: b8 (Q2’s emitter) to b6.

  6. Buzzer: long (+) leg in e6, short leg in e3. Then a black wire from a3 to T-3 (top blue − rail, column 3).

  7. Sensor wires: one into a19, the other into T+21 (top red + rail, column 21).

  8. Power: battery red into T+1, black into T-2. All quiet. Now drip some water onto the sensor: BZZZ! 🌧️

Not working?

  • No buzz when wet? Add a pinch of salt to the water, which makes it conduct much better. Check the zig-zag wires are bare metal and close together.
  • Buzzing when dry? The two zig-zags are touching somewhere. Spread them apart.
  • Quiet even with salt water? Touch the two sensor wire ends directly together. If it buzzes, the board’s fine. Also check the buzzer is active and its long leg is in e6.

Try it!