Skip to content

A workshop showing how to build a friend detector using the BBC Micro:Bit and MakeCode

License

Notifications You must be signed in to change notification settings

jimbobbennett/MicroBitFriendDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBC micro:bit Friend Detector

The BBC micro:bit 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.

micro:bit logo

In this tutorial, you will create a friend detector - a wrist-mounted gadget that lights up with a smiley face when your friends are nearby.

The final, finished Friend Detector with a micro:bit in a duct tape strap on a wrist with lights showing a smiling face

What you will need

  • A BBC micro:bit - you can buy one from Amazon by following this link
  • A computer connected to the internet
  • 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).
  • A micro:bit battery pack and batteries (if you by the micro:bit Go kit linked above it contains this already)
  • Some duct tape (I recommend this rainbow duct tape)
  • Velcro

Picture of what is needed - a micro:bit with power pack, duct tape, velcro and a computer

The steps

The steps to complete this workshop are:

Work through these steps one by one. Each step includes a link to the next step at the end.

The code

If you want to use a working version of the code, you can import the project using the microbit-FriendDetector.hex file in the Code folder.

  • Clone or download this repo
  • From the MakeCode home page select the Import button
  • Select Import File
  • Locate the microbit-FriendDetector.hex file from the Code folder in this repo
  • Select Go ahread! to load the project in the MakeCode editor

You can also import the code from this URL - makecode.microbit.org/_du14RM7mT4fC.

  • Copy the URL
  • From the MakeCode home page select the Import button
  • Select Import URL
  • Paste in the URL
  • Select Go ahead! to load the project in the MakeCode editor.

I hope you enjoy this workshop. If you want to get in touch, you can find me on twitter - @jimbobbennett. I'd love to hear what you are building.

Feel free to raise issues with any bugs you've found, or any suggestions for changes and improvements.

About

A workshop showing how to build a friend detector using the BBC Micro:Bit and MakeCode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published