Cookie jar lid alarm

A little lever under the glass lid keeps this cookie jar quiet. Lift the lid and a red lamp and a buzzer start at once. Put the lid back and both stop. There is no chip, no transistor and no magnet.

  • 4 parts
  • 5 wiring steps
  • No code needed
  • 6 V supply

Quick answer

The short version. Every pin is in the full wiring below.

What you need

  • 4 x AA battery holder
  • Hinge-lever micro switch, SPDT
  • Red dome lamp with a 6 V 0.3 A bulb
  • 5 V active buzzer

How to wire it

  1. Battery plus goes to COM, the tag at the hinge end of the switch (the lever's pivot).
  2. NC, the tag at the far end, goes to the plus of the lamp and the plus of the buzzer.
  3. Battery minus goes to the minus of the lamp and the minus of the buzzer.
  4. The middle tag (NO) stays free.
  5. Glue the switch to the rim so the lid edge rests on the lever.

Before you power it: 6 V from four AA cells. Keep the bare battery leads apart, because shorted AA cells get hot fast. Do not use a mains lamp or buzzer here.

A glass cookie jar with its lid lifted by a hand, a hinge-lever micro switch with the tags marked C, NO and NC glued to the rim, a red dome lamp, a round buzzer and a 4 x AA battery holder, joined by red, orange and black wires
The circuit as wired in the Short. Every wire end is a real pin; the netlist was checked before the video went out.

Parts list

  • 4 x AA battery holder (6 V)
  • Hinge-lever micro switch, SPDT (Omron SS-5GL-F class, rated 5 A at 30 V DC)
  • Red dome lamp with a 6 V 0.3 A bulb (a typical figure, not read from a listing)
  • 5 V active buzzer (works from 4 to 8 V, about 30 mA)

Wiring, step by step

  1. Battery plus goes to COM, the tag at the hinge end of the switch (the lever's pivot).
  2. NC, the tag at the far end, goes to the plus of the lamp and the plus of the buzzer.
  3. Battery minus goes to the minus of the lamp and the minus of the buzzer.
  4. The middle tag (NO) stays free. If your switch is marked differently, find COM and NC with a continuity tester: they must not connect while the lever is pressed.
  5. Glue the switch to the rim so the lid edge rests on the lever.

How it works

  1. The lid's weight holds the lever down. With the lever pressed, the COM to NC contact is open, so nothing runs and the circuit draws no current.
  2. Lift the lid and the lever springs up. The COM to NC contact closes and 6 V goes straight to the lamp and the buzzer.
  3. The lamp takes about 0.3 A and the buzzer about 0.03 A, so about 0.33 A in all. That is far below the switch rating of 5 A at 30 V DC.
  4. Put the lid back and it presses the lever. The contact opens and both stop.
  5. Four AA cells give 6.4 V fresh and about 4 V when flat, which stays inside the buzzer's 4 to 8 V.

What the video simplifies

  • The lid lift and the lever travel are drawn much bigger than real, so you can see them. A real lever moves a few millimetres.
  • The parts are drawn at mixed scales. The switch is drawn large next to the jar.
  • The lamp lights and fades faster than a real bulb. The 0.3 A bulb rating is a typical figure and was not read from a listing. At 0.5 A the load is still well inside the switch rating.
  • A plain active buzzer gives a steady tone. The video shows short beeps, which is how a pulsing (self-interrupting) active buzzer sounds.
  • The switch needs only about 0.16 N, but a very light plastic lid may still not press it. Someone who knows the trick can slide a finger under the lid and hold the lever down.
  • The tag order (C at the hinge end, NO in the middle, NC at the far end) follows the Omron SS-5GL(-F) sheet. Switches from other makers can differ, so check with a continuity tester.
  • There is no fuse on the 4 x AA pack. This circuit was checked on paper against the switch and buzzer sheets and was not built.

You found this by searching. Here's the whole path.

  1. Read how it works
  2. See it work
  3. Build it
  4. Show it
Next: see it work

Thirty seconds of video shows the circuit doing its job.

Then build it

6 V from four AA cells. Keep the bare battery leads apart, because shorted AA cells get hot fast. Do not use a mains lamp or buzzer here.

Then show it

Built it, or stuck halfway? Post a photo in the Wirecora Discord. Questions get an answer every day.