In this article you will find out what an ultrasonic sensor X is and how to use it.
DESCRIPTION
The ultrasonic sensor X uses acoustic radiation to determine the distance to an object. The sensor readings are practically not affected by solar radiation and electromagnetic noise. The ultrasonic sensor is Lego- and Arduino-compatible.
Technical description:
– Size (L*W*H): 40x36x18 – Lego compatible body – The measurement range is from 2 to 400 cm. – Working voltage: from 5V – Connector for connecting to another device: F-dupont 4pin
Functionality when connected to the RED X controller:
The ultrasonic sensor is used to determine the distance to an object. The measurement range is from 2 to 400 cm.
Ultrasonic sensor connecting scheme
Program example
*Physically, if the distance between the object and the ultrasonic sensor connected to port D2, D3 is less than 10cm, then the servomotor connected to port D1 rotates by zero degree, otherwise the servomotor rotates by 180 degrees