Using the Ultrasonic Sensor
Detects colours
Measures light intensity
The Color Sensor can detect the color of a surface (Color Mode), the amount of light reflected by a surface (Reflected Intensity Mode), or the brightness of ambient light (Ambient Light Intensity Mode). You can use the Color Sensor to detect the color of a surface, follow lines or respond to light signals.
The Touch Sensor allows you to "feel" by detecting whether the red button on the sensor is currently pressed or released. The EV3 retrieves this information and can use it in programs. For example, you could program your robot to activate claws whenever the Touch Sensor is pressed.
Measures distance
Detects objects
The Ultrasonic Sensor generates sound waves and reads their echo returns to detect and measure the distance to objects. The Ultrasonic Sensor can function as a sonar by sending out single sound waves. It can also listen for a sound wave which can be used to trigger programmed event/s.
Tips and Tricks
The Ultrasonic Sensor works best to detect objects with hard surfaces that reflect sound well. Soft objects, such as cloth, may absorb the sound waves and not be detected. Objects with rounded or angled surfaces are also harder to detect (e.g. soccer ball).
The sensor cannot detect objects that are very close to the sensor (closer than about 3 cm or 1.5 inches).
The sensor has a wide “field of view” and may detect a closer object off to the side instead of a farther object straight ahead.
Measures angles
Measures accumulated angles
The Gyro Sensor measures the robot's rotational motion and changes in its orientation. You can use the Gyro Sensor to measure angles, create balancing robots and explore technology associated with navigation systems, game controllers and gyroscopic stabilized platforms.
Information on sensors taken from: https://milweelegorobotics.weebly.com/31-class-discussion.html