Using Sensors to Sense the Environment
Sensors are used to estimate a robot's condition and environment. These signals are passed to a controller to enable appropriate behavior. Sensors in robots are based on the functions of human sensory organs such as eyes and ears. Robots require extensive information about their environment in order to function effectively.
Yanshee comes with 5 different sensors are included: Infrared sensor, touch sensor, pressure sensor, temperature and humidity sensor, ultrasonic sensor.
In this simple project, we will show you how to read and use sensor data in a few steps.
Step 1: Connect the sensor to the robot.
Step 2: Ensure the sensor is detected by the robot. Make sure you can see the sensor data using your Yanshee App.
Step 3: Read the sensor using Blockly, compare the value, and show the result using TTS.
Step 4: Click the Run button at the bottom right corner to execute the program.