Introduction: Micro:bit TrackingThings Opened Fridge Detector
This is a project which uses an accelerometer on the micro:bit to detect movement. It is useful for detecting how many times a door has been opened, for example. If you ever wanted to track how many times you opened a door of a fridge or something else, this is for you.
Attachments
Supplies
1 micro:bit
A computer or phone
The micro:bit app or the MakeCode site
A small, transparent box
A LiPo Battery
Some double-sided foam tape
Step 1: Setting Up
To set up the micro:bit for the project, you first connect the micro:bit to your computer via wire or to your phone via Bluetooth. Next, you use the micro:bit app or the MakeCode site to code the micro:bit so that it will work.
Step 2: The Code.
Since you need the code to get the micro:bit to work, use the one provided here:
https://makecode.microbit.org/_Yq4ewTEgwTba
Step 3: Instructions
To make the opened door detector, you have to:
1. Find a transparent box, small enough so that the micro:bit would have just enough space
2. Put some double-sided foam tape on 1 side of the transparent box
3. Connect a battery (preferably charged) to the micro:bit
4. Put the micro:bit into the box
5. Put the box on a door.
Now you have an operational opened door detector on a door.