Materials
BBC micro:bits device
micro:bit battery holder
Computer or laptop with a working Internet connection
Cloth face mask with filter pocket
Scissors
Optional Materials
Fabric or old shirt
Disposable mask
Needle and thread
Elastics
Pencil or pen
For best viewing quality, please watch the video on full screen mode
This image was created with Fritzing
The circuit for this project is easy, all you need to do it connect the micro:bit to the battery pack (Or micro USB) and you're done! This battery pack has two 1.5V AAA batteries in series. When batteries are in series the voltages add together. These two 1.5V batteries supply the micro:bit with the necessary 3V it needs to run.
There are many stores that are selling affordable cloth masks with pockets which you can use for this project. If you'd like to sew your own face mask, you can follow any of the several mask sewing tutorials online.
Keep in mind that different colored fabrics will make it harder or easier to see the LED screen on the micro:bit.
If your mask is too dark you might have to sew or glue a pocket on the outside of your mask to show the micro:bit on a fabric that's more see through.
Music courtesy of Pyrosion
Once you go through the soldering tutorials, modify this project by providing a warning to the person in front of you when you are standing too close.
With an ultrasonic sensor module, your micro:bit will be able to sense approximately how close or far objects are. The micro:bit can only provide 3.3 V of power to any external module so be sure that the ultrasonic sensor you get isn't a 5V module.
To work with an ultrasonic sensor, you'll also need to add the sonar library in MakeCode to give you control of which pins the data will output to. See the GIF below on where to add the sonar library to your project.