get ultrasonic sensor distance (cm) trig () echo ()

get ultrasonic sensor distance

Get ultrasonic sensor distance (cm) trig () echo () block is a reporter block available in sensors extension for evive and all Arduino boards. The block reports the distance of the nearest object from an ultrasonic sensor. It returns distance in cm. The trigger pin and echo pin are connected to a digital pin of evive which can be selected from the drop-down menu.

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.


  1. This script displays the distance on the evive TFT display.
    get ultrasonic sensor distance example

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation
What is Ultrasonic Sensor

What is an Ultrasonic Sensor?

Learn what is an ultrasonic sensor, how does HC-SR05 work, interface it with evive using PictoBlox and what projects to make using an ultrasonic sensor.
PictoBlox Supported Boards