PIR Sensor

 

You can connect the [PIR Sensor] block of mbuild to Halocode, and make more creations.

 

1. PIR sensor (1) detects human body?

If the specified PIR sensor detects human body, the report condition is met.

1.png

Example

2.png

When the button of Halocode is pressed, if PIR sensor 1 detects human body, the LED ring of Halocode will light up red.


2. PIR sensor (1) number of times a human body detected

Reports the number of times a human body is detected by the specified PIR sensor.

3.png

Example

4.png

When the button of Halocode is pressed, if the number of times a human body is detected by PIR sensor 1 is greater than 16, the LED ring of Halocode will light up red.


3. PIR sensor (1) resets number of times

Resets the number of times a human body is detected by the specified PIR sensor.

5.png

Example

6.png

When the button of Halocode is pressed, the number of times a human body is detected by PIR sensor 1 will be reset.


Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.