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

Example

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.

Example

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.


results matching ""

    No results matching ""