{"id":25594035,"url":"https://github.com/bazbt3/microbit-proximity","last_synced_at":"2026-06-30T10:31:53.033Z","repository":{"id":81213196,"uuid":"359932305","full_name":"bazbt3/microbit-proximity","owner":"bazbt3","description":"A MakeCode proximity detector and warning project for the BBC micro:bit computer interfaced with an Osoyoo sensors \u0026 devices STEM kit.","archived":false,"fork":false,"pushed_at":"2021-05-19T14:36:57.000Z","size":2318,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T10:23:20.533Z","etag":null,"topics":["bbc-microbit","makecode","proximity-sensor","sensors"],"latest_commit_sha":null,"homepage":"https://bazbt3.github.io/microbit-proximity/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazbt3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-20T19:41:32.000Z","updated_at":"2021-10-14T23:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0a5ff1c-969a-4d47-bf14-267016a9320d","html_url":"https://github.com/bazbt3/microbit-proximity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bazbt3/microbit-proximity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazbt3%2Fmicrobit-proximity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazbt3%2Fmicrobit-proximity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazbt3%2Fmicrobit-proximity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazbt3%2Fmicrobit-proximity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazbt3","download_url":"https://codeload.github.com/bazbt3/microbit-proximity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazbt3%2Fmicrobit-proximity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34963633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bbc-microbit","makecode","proximity-sensor","sensors"],"created_at":"2025-02-21T10:31:24.562Z","updated_at":"2026-06-30T10:31:53.028Z","avatar_url":"https://github.com/bazbt3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this?\n\nA project to indicate if a person or object is detected within a range of safety zones, by illuminating an RGB LED, sounding a tone, displaying a graphic and/or scrolling message.  Created for the [BBC micro:bit V2 computer](https://microbit.org) interfaced with an Osoyoo sensors \u0026 devices STEM kit and a third-party interface board.\n\nLED colours indicate:\n\n* Red = 'danger',\n* Amber = 'unsafe',\n* Green = 'safe'.\n\n![Photo with Lego!](/img/microbit-proximity_photo.jpeg)\n\n## Enhancements\n\nI've always intended this for my work desk; the next steps will likely be the addition of the LCD display to refine the messaging.\n\n## What is a BBC micro:bit?\n\nAn [embedded system](https://en.wikipedia.org/wiki/Embedded_system) computer, with dimensions half the size of a credit card.  Code must be written on a computer or a portable device before 'flashing' the program to the micro:bit via a either USB cable or Bluetooth.\n\n## How was the program created?\n\nIt uses the Microsoft MakeCode IDE (blocks of code similar to Scratch.) In this case all the coding has used [the iPhone micro:bit app](https://apps.apple.com/gb/app/micro-bit/id1092687276).  However, [other platforms, apps and languages](https://microbit.org/code/) can be used.\n\nNote: I have used only the block editor so be aware that the underlying 'written' code may not be ordered 'neatly'.  *(I originally thought the MicroPython code from the app would be saved here but only the javascript makes it to the repo; see the Main.ts file.)*\n\n## The Osoyoo interface board and sensors\n\nVarious breakout boards are available, but I chose the [Osoyoo STEM Kit for micro:bit.](https://osoyoo.com/2019/06/13/osoyoo-steam-kit-for-microbit/)  The kit comprises the board, 20 sensors \u0026 devices, cables with connectors, an IR remote, an instruction CD, all packaged up in a sturdy box.\n\nThe third-party board does mot replicate the connector pinout order so I've not named it here.\n\n## micro:bit pinout documentation\n\nI made the rookie mistake of thinking all the micro:bit and thus the Osoyoo board pins would be addressable identically.  This is not the case.  Here is the official documentation:\n\n[https://makecode.microbit.org/device/pins](https://makecode.microbit.org/device/pins)\n\n## Meta\n\n\u003e Open this page at [https://bazbt3.github.io/microbit-proximity/](https://bazbt3.github.io/microbit-proximity/)\n\n## Edit this project ![Build status badge](https://github.com/bazbt3/microbit-proximity/workflows/MakeCode/badge.svg)\n\nTo edit this repository in MakeCode.\n\n* open [https://makecode.microbit.org/](https://makecode.microbit.org/)\n* click on **Import** then click on **Import URL**\n* paste **https://github.com/bazbt3/microbit-proximity** and click import\n\n## Blocks preview\n\nThis image shows the blocks code from the last commit in master.\nThis image may take a few minutes to refresh.\n\n![A rendered view of the blocks](https://github.com/bazbt3/microbit-proximity/raw/master/.github/makecode/blocks.png)\n\n#### Metadata (used for search, rendering)\n\n* for PXT/microbit\n\u003cscript src=\"https://makecode.com/gh-pages-embed.js\"\u003e\u003c/script\u003e\u003cscript\u003emakeCodeRender(\"{{ site.makecode.home_url }}\", \"{{ site.github.owner_name }}/{{ site.github.repository_name }}\");\u003c/script\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazbt3%2Fmicrobit-proximity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazbt3%2Fmicrobit-proximity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazbt3%2Fmicrobit-proximity/lists"}