Introduction

Read ultrasonic sensor block is a Robot block and a reporter block. It’s used for measuring the distance from an ultrasonic sensor. It returns distance in cm. The trigger pin and echo pin ae connected to a digital pin of evive which can be selected from drop down menu.

evive has 25 digital pin in which you can connect ultrasonic sensors: 2 to 18 and 20 to 27.

read ultrasonic sensor trig pin () echo pin ()
read ultrasonic sensor trig pin () echo pin ()
Block Type:
Extension:
Example

  • Moving the sprite according to the ultrasonic value.

Moving the sprite according to the ultrasonic value.

  • Displaying distance on TFT screen.

Controlling the LED brightness according to the ultrasonic value.

 

Close Menu
×

Cart