6. Case03: PIR sensor#

6.1. Purpose#


  • In this project, you will learn how to change the graph on the micro:bit through PIR sensor.

6.2. Materials#


6.3. Software Platform#


MicroSoft makecode

6.4. Hardware connect#

../../_images/case_03_012.png

6.5. Programming#


Program annotation#

../../_images/case_03_021.png

Programming#

Links: https://makecode.microbit.org/_0H22Luc6UJkX

You can also download it directly below:

6.6. Result#


  • While detecting the body, the micro:bit changes the icon on its screen.

6.7. Exploration#


  • How to progreamme to make the basic:bit alert while the PIR sensor detecting the body?

6.8. FAQ#


6.9. Relevant Files#