What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
You can build this educational intruder-alarm circuit with either three 555 timer ICs or a Raspberry Pi Pico running MicroPython. Both versions demonstrate the same basic sequence—an exit delay, an entry delay, and an alarm stage—but they use different sensor-switch conventions and different ways to control timing. The Pico is the microcontroller used in this project; it is not a complete Raspberry Pi computer.
What the alarm sequence does
Both implementations model three steps: give someone time to leave after arming, allow a short interval to disarm after an entry is detected, and then activate an alarm stage. The 555 circuit assigns those jobs to separate timer ICs. The Pico version uses MicroPython to implement the delays and state changes.
This is a breadboard learning project, not a certified or professionally validated security system. The project does not establish performance against real-world intrusion, nor does it document a tamper-resistant enclosure, backup-power behavior, or compliance with alarm-audibility requirements.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minuteHow the 555 timer intruder alarm works
Magnetic contacts monitor doors and windows
In the 555 arrangement, each door or window uses a normally open reed contact positioned so a nearby magnet holds it closed while the opening is shut. The contacts are wired in series. Opening any monitored door or window removes the magnet, opens its contact, and interrupts continuity in the sensor loop. A cut in the loop also interrupts continuity.
#1 Best Overall
- IoT Starter Kit for Beginners: The SunFounder Raspberry Pi Pico W Ultimate Starter Kit offers a rich IoT learning experience for beginners aged 8+. With 450+ components, 117 projects, and expert-led video lessons, this kit makes learning microcontroller programming and IoT engaging and accessible, RoHS Compliant
- Expert-Guided Video Lessons: This kit includes 27 video tutorials by the renowned educator, Paul McWhorter. His engaging style simplifies complex concepts, ensuring an effective learning experience in microcontroller programming
- Wide Range of Hardware: The kit includes a diverse array of components like sensors, actuators, LEDs, LCDs, and more, enabling you to experiment and create a variety of projects with the Raspberry Pi Pico W
- Supports Multiple Languages: The kit offers versatility with support for three programming languages - MicroPython, C/C++, and Piper Make, providing a diverse programming learning experience
- Dedicated Support: Benefit from our ongoing assistance, including a community forum and timely technical help for a seamless learning experience
The terminology can be confusing: the reed contact is described as normally open, but the magnet holds it closed in the normal, door-shut condition. The circuit responds to the resulting break in the loop.
A monostable timer needs a defined trigger state
A 555 monostable produces a timed output pulse when its trigger input, pin 2, is pulled below one-third of the supply voltage. In Charles Platt’s example, a 47 kΩ resistor and a 10 µF capacitor produce a pulse of about three seconds. A 10 kΩ pull-up keeps pin 2 from floating at an indeterminate voltage until the pushbutton pulls it low.
The alarm’s sensor loop does not create the same momentary low-going connection as the test pushbutton: it changes state and remains open. Platt describes using a pulldown and coupling capacitor to turn that sustained sensor change into a short trigger pulse. His reported values are a 47 kΩ pull-up, a 10 kΩ pulldown, and a 0.47 µF coupling capacitor; they are values for his circuit, not universal requirements for every 555 design.
Rank #2
- 【RP2040 Development Platform】It uses the Raspberry Pi Pico development board and is equipped with the RP2040 microcontroller, making it suitable for e-learning, programming instruction, and embedded project development.
- 【Multiple programming methods】Supports MicroPython, C/C++, and Piper Make graphical programming to meet the needs of users at different learning stages.
- 【Rich experimental modules】Includes common electronic components such as LCD1602 display module, SG90 servo motor, human body sensing module, WS2812 RGB LED strip, buzzer, and buttons, covering basic applications such as display, input, sensing, and execution control.
- 【Comprehensive learning tutorial】The kit provides detailed project tutorials and sample code to help users quickly complete circuit connections, program downloads, and experimental verification.
- 【Suitable for STEM education】Ideal for electronics beginners and school lab teaching. Through hands-on project practice, it effectively improves practical skills, logical thinking and innovation ability, making it a great choice for programming enlightenment and hobby cultivation.
Three timers handle exit, entry, and alarm stages
- Start the exit delay: Press the Go button to start the first timer, giving you time to leave after arming.
- Watch the sensor loop: A diode prevents the sensor-trigger path from firing during the exit interval. After that interval, opening a monitored entry triggers the last-chance timer.
- Start the alarm stage: When the last-chance interval expires, the third timer produces the alarm stage. Consult the project schematic for its reset wiring.
The short exit interval used in the demonstration is for testing. Treat the circuit’s timing as an illustrative design choice, not as a validated setting for protecting a property.
Can a Raspberry Pi Pico replace the 555 timers?
Yes. The project’s Pico version replaces much of the timing logic with a MicroPython program. It waits for a Go-button press, runs an exit delay, waits for the sensor circuit to open, runs a last-chance delay, and then leaves the alarm output on until reset or power-off.
Pico pins and timing in the example
The example code assigns GPIO 8 to the Go button and GPIO 20 to the sensor input. It uses LEDs on GPIOs 17, 16, 14, and 15 to indicate sensor state, exit time, alarm triggered, and alarm, respectively. The code sets both the exit delay and the last-chance delay to 10 seconds. These are literal program settings that can be adjusted, not measured performance results.
Rank #3
- Latest Version: Higher core clock speed, double memory, more powerful Arm cores, optional RISC-V cores (compared to the 1 series) (This W version has onboard wireless LAN and Bluetooth)
- 3 Sets of Codes: MicroPython, C and Processing (Java), Processing codes run on computers to provide graphical interfaces
- 767-page Detailed Tutorial in Total: Provides step-by-step guide with basic electronics knowledge (The download link can be found on the product box) (No paper tutorial)
- 119 Projects from Simple to Complex: Each project has schematics, wiring diagrams, complete code and detailed explanations
- 224 Items in Total: Includes commonly used electronic components, modules, sensors, wires and other compatible items
Unlike the earlier 555 description, the pictured Pico setup is described as using normally closed sensor switches. Do not assume the two diagrams use identically specified contacts just because both monitor an opening.
Recommended Free Tools
What changes when you choose code
The Pico approach concentrates timing and state in a program rather than in three timer ICs and their surrounding components. It still needs the switches, indicators, a start button, and a way to reset or power-cycle the alarm behavior shown. Platt notes that the code must be entered or downloaded, uploaded, tested, and debugged if syntax errors occur.
| Choice | Three 555 timers | Raspberry Pi Pico |
|---|---|---|
| Main approach | Separate timer ICs and analog timing components | MicroPython program on a microcontroller |
| Learning emphasis | Pull-ups, pulldowns, diode isolation, coupling capacitors, and monostable behavior | GPIO inputs and outputs, program flow, and deploying code |
| Timing and state | Set by circuit components and timer connections | Set explicitly in code |
| Sensor convention described | Normally open reed contacts held closed by a magnet when the opening is shut | The pictured/code setup is described as using normally closed sensor switches |
| Stop/reset behavior described | The third timer provides the alarm stage; reset wiring is in the full schematic | The alarm output remains on until reset or power-off |
| Main trade-off | More discrete components and circuit-debugging | Fewer timing ICs, but software setup and debugging |
The project does not establish a scientifically fair comparison of reliability or total cost between these implementations.
Rank #4
- The LAFVIN Ultimate Starter Kit for Pico is an all-in-one development kit tailored for both beginners and advanced developers. With over 450 high-quality components and more than 100 online project examples, it offers endless possibilities for your creativity.
- Our online tutorials, carefully crafted by engineers, feature detailed explanations with illustrations and well-annotated code, making the learning process enjoyable and easy to follow. Whether you're new to programming or looking to expand your skills, the LAFVIN Ultimate Starter Kit for Pico can meet your needs.
- The kit supports three major programming languages: MicroPython, C/C++, and Piper Make, catering to the diverse needs of different users. With a wide range of sensors, controllers, LEDs, and LCDs, you can easily implement projects ranging from smart home automation to advanced smart hardware applications.
- From simple light control to complex automation systems and IoT experiments, the LAFVIN Ultimate Starter Kit for Pico is a powerful ally on your journey of technical growth.
- LAFVIN Ultimate Starter Kit for Pico —— Unleash your creativity and start a new chapter in smart hardware development.
What parts and project estimates are specified?
The parts should match the selected implementation and its schematic. The 555 version uses three timer ICs, discrete resistors, capacitors and diodes, plus the magnetic contacts. The Pico version uses a Raspberry Pi Pico, switches, and indicator LEDs. Match component packages and electrical ratings to the circuit rather than assuming any superficially similar part will work.
Make: lists the project as moderate difficulty, estimates 1–3 hours, and displays a $20–$30 project price. Those are the publisher’s project-page estimates associated with its 2022 publication, not independently timed build results or current checked prices.
A separate Raspberry Pi alarm uses different sensors
Raspberry Pi Official Magazine describes a related but distinct alarm project. It uses a reflected 650 nm laser sensor and a digital sound sensor, powered from 3.3 V. The example reads the laser on GPIO 21 and sound on GPIO 14, then uses an LED on GPIO 16 and an active piezo buzzer on GPIO 25. Its logic triggers when the beam is broken or sound exceeds the module’s threshold. This is not the reed-switch Pico circuit described above.
That laser tutorial suggests placing the beam near the floor, up to 1.5 m from a nearby wall, and warns not to point the emitter at anyone’s head. It also notes that sensor and device voltage and current requirements matter: a larger siren needs a separately powered switching arrangement rather than direct drive from a Pi GPIO. PIR or camera sensing, larger lights, audio messages, email, and push alerts are discussed there as possible extensions, not established features of the 555/Pico project.
Quick Recap
Which version should you build?
- Choose the three-555 version if you want to study how pull-ups, pulldowns, diodes, coupling capacitors, and monostable timers create an alarm sequence.
- Choose the Pico version if you want to work with GPIO and MicroPython and are comfortable uploading and debugging a program.
- Use the matching sensor-contact convention and full circuit diagram for the version you build; the 555 and Pico descriptions do not specify the contacts the same way.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

