Micro:bit TrackingThings Opened Fridge Detector
by Vafanasj in Circuits > Microcontrollers
419 Views, 0 Favorites, 0 Comments
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.
Downloads
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
Setting Up

The Code.

Since you need the code to get the micro:bit to work, use the one provided here:
https://makecode.microbit.org/_Yq4ewTEgwTba
Instructions
.png)
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.