5. Case03: PIR sensor#

5.1. Purpose#


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

5.2. Materials#


5.3. Software Platform#


MicroSoft makecode

5.4. Hardware connect#

../../_images/case_03_012.png

5.5. Programming#


Program annotation#

../../_images/case_03_021.png

Programming#

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

You can also download it directly below:

5.6. Result#


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

5.7. Exploration#


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

5.8. FAQ#


5.9. Relevant Files#