Ranging Sensor

 

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

 

1. ranging sensor (1) distance to an object (cm)

Reports the distance of an object detected the specified ranging sensor

1.png

 

Example

2.png

When the button of Halocode is pressed, if the distance of the obstacle detected by ranging sensor 1 is less than 15cm, the LED ring of Halocode will light up red.


2. ranging sensor (1) outside distance range?

If the distance of an obstacle is outside the detecting range of the specified ranging sensor, the report condition is met.

3.png

 

Example

4.png

When the button of Halocode is pressed, if the obstacle is outside the detecting range of ranging sensor 1, the LED ring of Halocode will light up red.


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

Comments

0 comments

Please sign in to leave a comment.