Skip to main content
Version: ACS CC

Laser Alarm System

Check out for intruders. Or your noisy kids. Or both.

info

Author: Ștefan Adrian Brai
GitHub Project Link: https://github.com/UPB-PMRust-Students/proiect-StefanBrai

Description

This project implements a security system where a continuous laser beam is emitted toward a photo-sensor. If the beam is interrupted, the system sounds an alarm and pushes a notification to the user’s phone via the Pico W’s Wi-Fi module. A manual button allows arming and disarming the system. The most recent intrusions will be stored in a database with their timestamps

Motivation

The goal of the project is to develop an affordable and easy-to-implement security solution using low-cost components and the Raspberry Pi Pico W platform, which provides integrated Wi‑Fi connectivity for real-time notifications.

Architecture

The system is divided into four logical modules:

  1. Laser Module (emitter + sensor)
  2. Control Unit (Raspberry Pi Pico W firmware)
  3. User Interface (buzzer + push-button)
  4. Network Service (cloud notification endpoint)
+----------------+          +----------------+
| Laser | | Notification |
| emitter+sensor | | Service (Wi-Fi)|
+----------------+ +----------------+
^ ^
v |
+----------------+ |
| Raspberry Pi |-------------+
| Pico W |
+----------------+
| ^
v |
+--------+ +--------+
| Buzzer | | Button |
+--------+ +--------+

Diagram

Hardware

We use off-the-shelf components mounted on a breadboard and powered by a 5 V supply. The main utilities are the button, the passive buzzer which will be configured to emit a custom tune, the laser which will just be controlled by the button and the photoresistor which checks the laser output.

Bill of Materials

DeviceUsagePrice (RON)
Raspberry Pi Pico WMicrocontroller with integrated Wi-Fi35
5 V Laser DiodeLaser beam emitter14
LDR / PhotoresistorLaser-beam interruption sensor1.90
Passive BuzzerAudible alarm output1
Push-ButtonManual arm/disarm control2
Breadboard & Jumper WiresPrototyping22
5 V /3.3 V Power SupplySystem power0(came with breadboard)

Software

LibraryDescriptionUsage
rp2040-halRP2040 hardware abstraction layerGPIO, timer and peripheral configuration
embedded-halCommon embedded-Rust traitsUnified driver interfaces
cyw43Wi-Fi driver for CYW43 moduleNetwork stack and connectivity
defmtEfficient logging frameworkCapture debug logs over USB/UART
cortex-m-rticReal-time interrupt-driven concurrencyTask scheduling and timing