US 100 practical reference
A drop-in HC-SR04 upgrade that adds temperature compensation and an optional UART mode for more consistent readings. The US-100 uses the same physical dual-transducer layout as the classic HC-SR04, so it fits existing mounts and wiring, but internally it corrects for the fact that the speed of sound changes with air temperature — giving noticeably steadier distance readings across hot and cold environments — and it can optionally be switched into a simple 3-wire UART mode that skips the fussy pulse-timing of the standard trigger/echo interface entirely.
Key specifications
- Sensor type: Dual-transducer ultrasonic ranging module with onboard temperature compensation
- Operating voltage: 2.4V–5.5V DC
- Operating current: ~2.2 mA
- Measuring range: 2cm to 450cm
- Accuracy: ±1% typical, improved over standard HC-SR04 thanks to temperature compensation
- Interface modes: Trigger/Echo pulse mode (pin-compatible with HC-SR04) or UART serial mode, selectable by a jumper
- UART settings: 9600 baud, 8N1, when jumper-configured for serial mode
- Temperature sensor: Onboard temperature sensor used internally to correct the speed-of-sound calculation
Pinout and connection notes
A small onboard jumper (often a solder pad or physical switch) selects between classic trigger/echo pulse mode — wired and coded exactly like an HC-SR04 — and UART serial mode, which instead streams distance readings as simple serial bytes at 9600 baud, avoiding the need for precise pulse-width timing in your microcontroller code.
- VCC: Power, 2.4–5.5V DC
- Trig / TX: Trigger input in pulse mode, or UART TX in serial mode (set by onboard jumper)
- Echo / RX: Echo output in pulse mode, or UART RX in serial mode
- GND: Ground
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.
US 100 at a glance
Specifications
- Sensor
- Ultrasonic time-of-flight ranging module with onboard temperature compensation
- Supply
- Common US-100 modules are specified for approximately 2.4–5.5 V; verify the board revision
- Range
- Commonly specified around 2 cm to 450 cm under suitable target and environmental conditions
- Interfaces
- Trigger/Echo pulse mode or UART mode, selected by the module jumper or configuration
- UART format
- Common modules use 9600 baud, 8 data bits, no parity, 1 stop bit in serial mode; confirm the module documentation
- Measurement limits
- Soft, angled, narrow or moving targets and nearby objects can cause missed or unstable echoes
Pinout
| Pin | Name | Description |
|---|---|---|
| VCC | Supply | Connect to a supported supply for the exact US-100 board. |
| Trig / TX | Trigger or UART transmit | Pulse-mode trigger input; UART-mode transmit output. Direction changes with the selected mode. |
| Echo / RX | Echo or UART receive | Pulse-mode echo output; UART-mode receive input. Check voltage levels before connecting to a 3.3 V controller. |
| GND | Ground | Common reference with the controller. |
Wiring & code
Board integration
Library
SoftwareSerial by Arduino (built-in)
Included with the standard Arduino IDE — no separate install needed
Wiring
| Component pin | Arduino Uno pin | Note |
|---|---|---|
| VCC | 5V | |
| TX | D2 (Arduino RX) | Set the onboard jumper to UART mode first — labeling varies by clone batch, check your silkscreen |
| RX | D3 (Arduino TX) | |
| GND | GND |
#include <SoftwareSerial.h>
SoftwareSerial us100(2, 3); // RX, TX
void setup() {
Serial.begin(9600);
us100.begin(9600);
}
void loop() {
us100.write(0x55); // 0x55 requests a distance reading
delay(100);
if (us100.available() >= 2) {
unsigned int highByte = us100.read();
unsigned int lowByte = us100.read();
unsigned int distanceMm = (highByte << 8) | lowByte;
if (distanceMm == 0 || distanceMm > 4500) {
Serial.println("Out of range or no response");
} else {
Serial.print("Distance: ");
Serial.print(distanceMm / 10.0, 1);
Serial.println(" cm");
}
}
delay(200);
}- The reply is two bytes, high byte first, giving distance in millimeters — divide by 10 for cm as shown.
- Send 0x50 instead of 0x55 to read the onboard temperature sensor instead (returns 1 byte = actual °C + 45, so subtract 45) — useful since it's the same compensation value the sensor uses internally for its own distance accuracy.
- If UART mode doesn't respond, check the onboard jumper — some batches ship set to Trig/Echo pulse mode by default, which wires and codes exactly like an HC-SR04 instead.
