Skip to main content

Human Infrared Sensor


Introduction​

Features​

Human Infrared Sensor: This sensor can sensitively detect the movement status of surrounding objects and immediately output signals upon detecting dynamic changes. In security monitoring, it automatically captures intruders; in smart lighting, it enables lights to turn on when people are present and off when they leave, enhancing spatial intelligence and energy efficiency.


Specifications​

ItemParameter
NameHuman Infrared Sensor
SKUEF16010
Connection TypeDigital Output
Operating Voltage4.15V
Dimensions38.00mm×28.20mm (L×W)

Appearance and Dimensions​


None


Quick Start​

Hardware Connection​


Usage Tutorial​

Programming Software​

Microsoft MakeCode


MakeCode Programming​

Step 1: How to Add Jacdac Extension​

  1. Go to Microsoft MakeCode and click "New Project".

  1. Enter the project name in the pop-up window and click "Create".


  1. Click "Extensions" in the code drawer.

  1. Enter "Jacdac" in the pop-up interface, click the search icon, and select the Jacdac library as shown.


Step 2:​

  1. Connect the micro:bit to the computer with a data cable. Note: If the micro:bit runs a Jacdac program for the first time, please pre-install a blank Jacdac program on the micro:bit first; otherwise, skip this step.

    Note: Make sure the power selection switch is set correctly. When using the micro:bit board to power the Jacdac modules, set the switch to micro:bit. When using an external power module, set the switch to Power.

  1. Connect the sensor. MakeCode will automatically recognize it and simulate its status in real time in the simulation area.

  1. Click "ADD BLOCKS" for the sensor extension module. Note: When connecting a new sensor, repeat the operation of clicking "ADD BLOCKS" for the sensor extension module.


Program Code Example​


https://makecode.microbit.org/_3TuVXqXMyUzs


You can also download it via the link.

## Result

When the human infrared sensor detects human movement, the micro:bit displays "√"; otherwise, it displays "×".