{"id":19316681,"url":"https://github.com/anas-farooq8/micro-bit-enhanced-security-system","last_synced_at":"2026-05-30T16:31:21.360Z","repository":{"id":214861167,"uuid":"737535056","full_name":"anas-farooq8/Micro-bit-Enhanced-Security-System","owner":"anas-farooq8","description":"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.","archived":false,"fork":false,"pushed_at":"2023-12-31T12:35:15.000Z","size":13075,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T04:12:48.497Z","etag":null,"topics":["javascript","microbit","security-system"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anas-farooq8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-31T12:21:49.000Z","updated_at":"2025-01-05T09:21:57.000Z","dependencies_parsed_at":"2023-12-31T13:44:26.342Z","dependency_job_id":null,"html_url":"https://github.com/anas-farooq8/Micro-bit-Enhanced-Security-System","commit_stats":null,"previous_names":["anas-farooq8/micro-bit-enhanced-security-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-farooq8%2FMicro-bit-Enhanced-Security-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-farooq8%2FMicro-bit-Enhanced-Security-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-farooq8%2FMicro-bit-Enhanced-Security-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-farooq8%2FMicro-bit-Enhanced-Security-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anas-farooq8","download_url":"https://codeload.github.com/anas-farooq8/Micro-bit-Enhanced-Security-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240420938,"owners_count":19798501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","microbit","security-system"],"created_at":"2024-11-10T01:12:14.334Z","updated_at":"2026-05-30T16:31:21.330Z","avatar_url":"https://github.com/anas-farooq8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro:bit Enhanced Security System\n\n## Introduction\n![CodeBlocks](https://github.com/anas-farooq8/Micro-bit-Enhanced-Security-System/assets/150327092/c728e5ab-1a5f-4356-af47-019a841af2cc)\n\nThe 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.\n\n## System Overview\nAt 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.\n\n### Sensors Used\n1. **Light Sensor**: Monitors ambient light levels to detect unexpected changes that could suggest unauthorized access.\n2. **Accelerometer**: Detects movement or tampering when the micro:bit is physically disturbed.\n\n## Functional Description\nHere's how the system works:\n- The light sensor continuously checks for changes in light intensity. If the light level crosses a certain threshold, it triggers the alarm.\n- The accelerometer senses any 'shake' gesture, signaling potential tampering, which also sets off the alarm.\n- Upon triggering, the micro:bit displays a visual icon (a Skull for shaking and a Ghost for light detection) and plays an alarm tune.\n- The system can be reset and made ready for the next detection cycle with a simple button press.\n\n\n# Project Demo\n\n## Working\n* Press shake or shake the micro:bit hub; skull icon will appear and alarm sets on for indefinitely. Until you Push the A button.\n![Screenshot (43)](https://github.com/anas-farooq8/Micro-bit-Enhanced-Security-System/assets/150327092/2564ea8e-adda-44b4-905b-f55b8e50b900)\n![Screenshot (44)](https://github.com/anas-farooq8/Micro-bit-Enhanced-Security-System/assets/150327092/da772b9f-c8f5-4f6c-b954-7dce0e6f7df7)\n* 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. \n![Screenshot (45)](https://github.com/anas-farooq8/Micro-bit-Enhanced-Security-System/assets/150327092/84986b48-25ff-45e5-973a-d631661a7638)\n\n\n## Invitation for https://classroom.microbit.org/\nhttps://classroom.microbit.org/join?id=52988\u0026password=YEU882A7\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas-farooq8%2Fmicro-bit-enhanced-security-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanas-farooq8%2Fmicro-bit-enhanced-security-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas-farooq8%2Fmicro-bit-enhanced-security-system/lists"}