Our Goal


Materials


Background


What is a “intruder detection system” ?

Principle of a simple intruder detection

Practical Operation


The front side:

The back side:

Hardware Connect


Connect the crash sensor to the P1 port of the expansion board. Plug in the OLED as shown in the picture below.

Software


makecode

Programming


Step 1

Note: If you get a warning telling you some packages will be removed because of incompatibility issues, either follow the prompts or create a new project in the Projects file menu.

Step 2

Step 3

Program

Program link:https://makecode.microbit.org/_AsM1irg4Hcao

You also could directly download program by visiting website as below:


Result


-You have created a intruder detector!

Think


Questions


More Information