Skip to product information
1 of 8

M5Stack Ultrasonic Distance Sensor I/O Unit (RCWL-9620)

M5Stack Ultrasonic Distance Sensor I/O Unit (RCWL-9620)

LB-M5-U098-B2

20 in stock
Regular price $8.50 USD
Sale price $8.50 USD Regular price $5.95 USD

Key Features

  • 2–450 cm contactless ranging with ±2% specified accuracy
  • RCWL-9620 controller with a 16 mm, 40 kHz ultrasonic transducer
  • Direct GPIO trigger/echo timing for transparent host-side measurement
  • Internal temperature compensation for more consistent distance readings
  • Low operating current of approximately 3 mA

The M5Stack Ultrasonic Distance Sensor I/O Unit adds contactless distance measurement to robots, level monitors, parking indicators, and interactive installations. Its RCWL-9620 controller, 16 mm ultrasonic transducer, GPIO trigger/echo interface, and internal temperature compensation support measurements from 2 to 450 cm while keeping host integration straightforward. It suits developers who need a compact ranging module and prefer direct pulse-width measurement instead of an I2C abstraction.

What You Can Build

  • Obstacle detection and stopping distance for small mobile robots.
  • Fill-level monitoring for bins, tanks, and storage containers.
  • Parking, approach, and presence indicators for indoor equipment.
  • Distance-triggered lighting, displays, and interactive exhibits.
  • Position and clearance experiments for prototypes and teaching projects.

Key Capabilities

  • Measures targets from 2 to 450 cm with ±2% specified accuracy.
  • Uses a familiar trigger-and-echo GPIO workflow for direct timing control.
  • Operates at 40 kHz with a 50 ms measurement cycle.
  • Includes internal temperature compensation to reduce thermal drift.
  • Draws approximately 3 mA during operation.

Setup and Integration

  1. Connect the Grove cable to host pins that support one output for TRIG and one input for ECHO.
  2. Send a short trigger pulse, measure the returned echo-pulse width, and convert the elapsed time into distance.
  3. Start with one sensor and a flat, hard target positioned perpendicular to the transducer.
  4. Add timeout handling, median filtering, and minimum-change rules before using the value in motion or control logic.

Example Workflow

  1. Trigger a measurement no faster than the 50 ms cycle.
  2. Reject missing echoes and readings outside the 2–450 cm operating range.
  3. Filter several valid samples to reduce reflections and short spikes.
  4. Apply the result to a distance alarm, robot speed limit, or level calculation.

Deployment Notes

  • Soft, narrow, angled, curved, moving, or sound-absorbing targets can reduce usable range.
  • Multiple ultrasonic sensors can interfere with each other; trigger them sequentially and allow echoes to decay.
  • Keep the transducer face unobstructed and provide clearance from enclosure edges.
  • The module has no stated waterproof rating and should be protected from condensation, rain, and splashes.
  • At long distance, use a practical timeout instead of blocking the host while waiting for an echo.

Development Resources

M5Stack Ultrasonic Distance Sensor I/O Unit (RCWL-9620)

$8.50 USD


Does it come with a warranty?

Add your collapsible row content here. If it's set to open one row at a time, consider keeping the content in each row about the same length.

What happens if I don't like it?

Add your collapsible row content here. If it's set to open one row at a time, consider keeping the content in each row about the same length.

How fast is shipping?

Add your collapsible row content here. If it's set to open one row at a time, consider keeping the content in each row about the same length.

What's the returns policy?

Add your collapsible row content here. If it's set to open one row at a time, consider keeping the content in each row about the same length.

Don’t Just Take Our Word for It

  • A Clearer Way to Get Started

    LogicBoundless made it much easier to understand which components worked together. The product information was clear, and I could move from an idea to a working prototype without wasting time on incompatible hardware.


    Verified Maker
    First-Time IoT Builder
  • Practical Support Beyond the Product

    What stood out was the practical guidance. The specifications, compatibility notes, and troubleshooting resources helped us choose the right hardware and solve development issues more efficiently.


    Verified Customer
    Embedded Systems Engineer
  • Making Hardware Easier to Learn

    The clear explanations and project-focused resources made complex hardware easier to understand. Instead of simply following instructions, learners could see how each component contributed to the complete system.


    Education Partner
    STEM Instructor
1 of 3