DigitalOsc guides
HC-SR04 Gives No Distance: Check Trigger and Echo Before Replacing It
DigitalOsc editorial team · Updated 20 November 2026
A distance value of zero or a timeout can come from wiring, trigger timing, target conditions or echo-level handling. Compare the module’s trigger and echo before blaming the calculation.
Identify the module and logic interface
Use documentation for the actual HC-SR04-style board; similarly named clones can differ. Adafruit’s guide describes the common module and the need to consider its echo voltage when using 3.3 V electronics. Confirm power, reference and input-level compatibility before wiring. A scope displaying a pulse does not make that pulse safe for an attached microcontroller input.
Set up a sensible first target
Use a stationary broad target inside the documented operating range, with the transducers facing it and clear of obvious obstructions. Keep the module steady. Angled, small or soft targets and multiple nearby sensors can change the response. A failed echo in such conditions is not enough to prove an electronic fault. Avoid using your hand movement as the only reference for a timing diagnosis.
Capture trigger and echo together
Use suitable inputs and a compatible common reference. Put one channel on the module’s trigger input and the other on echo, taking account of the echo voltage. Trigger from the known command and retain enough following time for the expected response. Check that an actual trigger arrives at the module rather than only confirming that the firmware called a function.
Interpret timing before converting it into distance
Echo duration commonly represents a sound round trip, so a distance estimate divides travel time by two and depends on the assumed speed of sound. For an illustrative 1 ms round-trip interval and 343 m/s, the distance estimate is about 0.1715 m. This is not a calibration result or a universal temperature-independent conversion. Follow the actual module’s timing and timeout documentation.
Separate interface faults from environmental limits
No trigger points towards the command path. A trigger with no echo requires checking the module conditions and target before replacement. A valid echo at the module but a software timeout can point to level conversion, pin configuration or timing code. Two scope inputs preserve the trigger/echo relationship; one channel cannot capture both at once. Save the target arrangement, supply and logic levels with the trace so a later comparison uses the same conditions.
Instrument and next step
This is a proposed low-voltage workflow, not a hardware test or a measured fault report. Check the exact instrument, probe and circuit documentation before connecting. If your current equipment already resolves the question, keep using it.
DigitalOsc links to Payverza as the retailer. Current price, availability and delivery are shown there; a product link does not certify accessories, isolation or the suitability of a particular circuit.
Sources and scope
- ULTRASONIC official product or application documentation
- Pico Technology: choosing and using an oscilloscope
Sources checked 20 November 2026. Worked numbers are illustrative; they are not measurements of either retail instrument.