Lego® EV3 Ultrasonic Sensor with Scratch

Lego EV3 ultrasonic sensor is used to measure the distance from objects. When you connect the sensor to one of input ports and tick variable distans you will see distance in inches. Sensor measures distances between 1 and 100 inches what gives  250 cm.

Below there are three examples of using the distance sensor:

- stop vehicle in front of the wall
- shotter
- stop vehicle, shot and go

EV3 with Scratch - ultrasonic sensor, example 1 - stop
EV3 with Scratch - ultrasonic sensor, example 2 - shotter
EV3 with Scratch - ultrasonic sensor, example 3 - shot and go