https://github.com/anas-farooq8/micro-bit-enhanced-security-system
A comprehensive guide to implementing a basic yet effective security system using the micro:bit. This project demonstrates how to utilize the micro:bit's built-in accelerometer and light sensor for detecting disturbances and triggering alerts. Ideal for educational purposes and hobbyist projects.
https://github.com/anas-farooq8/micro-bit-enhanced-security-system
javascript microbit security-system
Last synced: 15 days ago
JSON representation
A comprehensive guide to implementing a basic yet effective security system using the micro:bit. This project demonstrates how to utilize the micro:bit's built-in accelerometer and light sensor for detecting disturbances and triggering alerts. Ideal for educational purposes and hobbyist projects.
- Host: GitHub
- URL: https://github.com/anas-farooq8/micro-bit-enhanced-security-system
- Owner: anas-farooq8
- Created: 2023-12-31T12:21:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T12:35:15.000Z (over 2 years ago)
- Last Synced: 2025-01-06T04:12:48.497Z (over 1 year ago)
- Topics: javascript, microbit, security-system
- Language: JavaScript
- Homepage:
- Size: 12.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Micro:bit Enhanced Security System
## Introduction

The Micro:bit Enhanced Security System is a simple, efficient way to monitor security using the BBC micro:bit. This project harnesses the power of the sensors attached to micro:bit - the accelerometer for detecting shaking and the light sensor for monitoring light intensity changes. It's an ideal project for those looking to explore the capabilities of micro:bit in the realm of basic security solutions.
## System Overview
At the heart of this security system is the micro:bit, a compact and versatile microcontroller board. The system leverages two of its onboard sensors - the light sensor and the accelerometer - to detect potential security breaches. It's designed to be user-friendly, with the capability to reset after an alarm trigger and to identify the specific sensor that activated the alarm.
### Sensors Used
1. **Light Sensor**: Monitors ambient light levels to detect unexpected changes that could suggest unauthorized access.
2. **Accelerometer**: Detects movement or tampering when the micro:bit is physically disturbed.
## Functional Description
Here's how the system works:
- The light sensor continuously checks for changes in light intensity. If the light level crosses a certain threshold, it triggers the alarm.
- The accelerometer senses any 'shake' gesture, signaling potential tampering, which also sets off the alarm.
- Upon triggering, the micro:bit displays a visual icon (a Skull for shaking and a Ghost for light detection) and plays an alarm tune.
- The system can be reset and made ready for the next detection cycle with a simple button press.
# Project Demo
## Working
* Press shake or shake the micro:bit hub; skull icon will appear and alarm sets on for indefinitely. Until you Push the A button.


* Light Intensity threshold is set to 150, if you increase the light Intensity an alarm sets on. Pressing A will stop the Alarm but deactivate the Light alarm for further use. Push B to activate the Light Intensity detection again.

## Invitation for https://classroom.microbit.org/
https://classroom.microbit.org/join?id=52988&password=YEU882A7