US-100 Ultrasonic Distance Sensor Module
This is the US-100 ultrasonic sensor distance measuring module which featured by temperature compensation. The module sends an ultrasonic signal, eight pulses of 40kHz square wave from the transmitter, the echo is then picked up by the receiver and outputs a waveform with a time period proportional to the distance.
The connected microcontroller accepts the signal and performs the necessary processing. It provides stable performance and high accuracy ranging from 2cm to 450cm.
This module has a wide voltage input range of 2.4 ~ 5.5V, static current consumption is less than 2mA and comes with a temperature sensor to correct the distance measurement results.
US-100 can be applied in a variety of cases such as parking sensors, obstacle, and terrain monitoring systems, industrial distance measurements, etc.
Working Voltage: 2.4V ~ 5.5V
Working Current: < 2mA
Interface: Level or UART
Induction Angle: < 15°
Distance Range: 2cm ~ 450cm
Accuracy: 0.3cm ± 1%
Operating Temperature: -20°C ~ +70°C
Pin Number: 5 Pins
Size: 45mm x 20mm x 1.6mm
VCC: 5V DC
Trig: Trigger Input
Echo: Pulse Output
How to use:
Connect the VCC and GND pins to a 2.4V - 5.5V power supply. The usage of the other pins depends on the operating mode selected. Select the operating mode of the sensor by using the jumper on the back of the module. When the jumper is present, the sensor outputs the distance as binary serial data, otherwise, the sensor outputs a single pulse that has a width that represents the distance measured.
Using the sensor in Serial Data Mode:
Place the shunt on the operating mode selection jumper to choose serial data mode. Connect the module to a serial port on your microcontroller. The Trig/TX pin connects to your microcontroller's TX serial transmit line. The Echo/RX pin connects to your microcontroller's RX serial receive line. Set the microcontroller's serial port to use 9600 baud at 8-N-1 (eight data bits, no parity, one stop bit).
To start measuring the distance, give an 0x55 output over the serial port and read back the two-byte distance in a high byte, with low byte format. The distance returned is measured in millimeters.
Using the following formula to obtain the distance as millimeters:
Millimeters = First Byte Read * 256 + Second Byte Read
This module can also output the temperature when using the serial output mode. To read the temperature, output a 0x50 byte over the serial port and read back a single temperature byte. The actual temperature is obtained by using the following formula:
Celsius = Byte Read - 45
Using the sensor in Pulse Width Mode:
Select the pulse mode by removing the shunt from the operating mode selection jumper. Then connect the Trig/TX pin to a digital output on your microcontroller and the Echo/RX pin to a digital input.
In order to obtain a distance measurement, you can set the Trig/TX pin high for at least 50 microseconds then set it low to trigger the measurement.
The module will output a high pulse on the Echo/RX line with a width that corresponds to the distance measured. Use the following formula to calculate the distance:
Millimeters = PulseWidth * 34/100 / 2