{"id":16008431,"url":"https://github.com/jimbobbennett/microbitfrienddetector","last_synced_at":"2026-02-28T00:31:50.529Z","repository":{"id":81417239,"uuid":"183206361","full_name":"jimbobbennett/MicroBitFriendDetector","owner":"jimbobbennett","description":"A workshop showing how to build a friend detector using the BBC Micro:Bit and MakeCode","archived":false,"fork":false,"pushed_at":"2019-07-11T17:30:55.000Z","size":30182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T22:31:05.986Z","etag":null,"topics":["makecode","maker","microbit","microbit-radio"],"latest_commit_sha":null,"homepage":null,"language":null,"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/jimbobbennett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-04-24T10:29:27.000Z","updated_at":"2019-07-11T17:30:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"16286e77-b930-4617-81ee-dc0a3490fb79","html_url":"https://github.com/jimbobbennett/MicroBitFriendDetector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2FMicroBitFriendDetector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2FMicroBitFriendDetector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2FMicroBitFriendDetector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimbobbennett%2FMicroBitFriendDetector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimbobbennett","download_url":"https://codeload.github.com/jimbobbennett/MicroBitFriendDetector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240138190,"owners_count":19753883,"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":["makecode","maker","microbit","microbit-radio"],"created_at":"2024-10-08T12:42:20.770Z","updated_at":"2026-02-28T00:31:45.495Z","avatar_url":"https://github.com/jimbobbennett.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# BBC micro:bit Friend Detector\n\nThe [BBC micro:bit](https://amzn.to/2UxQNiM) is a pocket-sized computer that allows you to have loads of fun whilst learning digital technology and computer science. You can program it using block-based coding and build anything - from simple programs to light up LEDs, to robots, musical instruments and more.\n\n![micro:bit logo](https://microbit.org/images/microbit-logo-stripped.png)\n\nIn this tutorial, you will create a friend detector - a wrist-mounted gadget that lights up with a smiley face when your friends are nearby.\n\n![The final, finished Friend Detector with a micro:bit in a duct tape strap on a wrist with lights showing a smiling face](./Images/WorkingOnWrist.jpg)\n\n## What you will need\n\n* A [BBC micro:bit]((https://amzn.to/2UxQNiM)) - you can buy one from Amazon by following [this link](https://amzn.to/2UxQNiM)\n* A computer connected to the internet\n* A micro USB cable (if you by the micro:bit Go kit linked above it contains this already). You may need a UBC-C to USB-A adapter if your computer only has USB-C ports (for example modern Macs).\n* A micro:bit battery pack and batteries (if you by the micro:bit Go kit linked above it contains this already)\n* Some duct tape (I recommend this [rainbow duct tape](https://amzn.to/2XLnFGN))\n* Velcro\n\n![Picture of what is needed - a micro:bit with power pack, duct tape, velcro and a computer](./Images/Parts.jpg)\n\n## The steps\n\nThe steps to complete this workshop are:\n\n* [Getting started](./Steps/GettingStarted.md)\n* [Writing your first micro:bit program](./Steps/ProgrammingTheMicrobit.md)\n* [The friend detector](./Steps/Algorithm.md)\n* [Code the on start](./Steps/OnStartCode.md)\n* [Code the forever block](./Steps/ForeverCode.md)\n* [Detect radio messages](./Steps/OnRadioCode.md)\n* [Run the code](./Steps/RunTheCode.md)\n* [Build a wrist band](./Steps/WristBand.md)\n\nWork through these steps one by one. Each step includes a link to the next step at the end.\n\n## The code\n\nIf you want to use a working version of the code, you can import the project using the [`microbit-FriendDetector.hex`](./Code/microbit-FriendDetector.hex) file in the [`Code`](./Code) folder.\n\n* Clone or download this repo\n* From the [MakeCode home page](https://makecode.microbit.org/) select the **Import** button\n* Select **Import File**\n* Locate the `microbit-FriendDetector.hex` file from the `Code` folder in this repo\n* Select **Go ahread!** to load the project in the MakeCode editor\n\nYou can also import the code from this URL -\n[makecode.microbit.org/_du14RM7mT4fC](https://makecode.microbit.org/_du14RM7mT4fC).\n\n* Copy the URL\n* From the [MakeCode home page](https://makecode.microbit.org/) select the **Import** button\n* Select **Import URL**\n* Paste in the URL\n* Select **Go ahead!** to load the project in the MakeCode editor.\n\n\u003chr/\u003e\n\nI hope you enjoy this workshop. If you want to get in touch, you can find me on twitter - [@jimbobbennett](https://twitter.com/jimbobbennett). I'd love to hear what you are building.\n\nFeel free to raise [issues](https://github.com/jimbobbennett/MicroBitFriendDetector/issues) with any bugs you've found, or any suggestions for changes and improvements.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimbobbennett%2Fmicrobitfrienddetector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimbobbennett%2Fmicrobitfrienddetector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimbobbennett%2Fmicrobitfrienddetector/lists"}