AR-179ArduinoBeginnerPremium

Arduino Wanted Level: A Motion Alarm That Adds Stars While It Sees You (PIR + 5 LEDs + Passive Buzzer + Button)

The longer the motion sensor sees you, the higher your wanted level! When the PIR sensor catches movement, the first star lights at once and a new one joins every 1.5 seconds while you stay in view; at 5 stars the passive buzzer plays a rising and falling siren. Slip out of sight and the stars blink as they search for you; stay hidden and the level drops one star at a time. Press the button to surrender: three falling notes play and the level resets.

4.0(1)
Arduino Wanted Level: A Motion Alarm That Adds Stars While It Sees You (PIR + 5 LEDs + Passive Buzzer + Button)
Whoever sneaks into your room now gets caught: the longer they stay in front of the sensor, the more stars light up, and at the fifth one the siren starts. If they slip out of sight, the stars blink as they search, then go out one by one; pressing the button means giving up. You learn to read a motion sensor, keep time without waiting and make a siren sound with a buzzer.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions