Overview
YDLIDAR SDM18 Laser Ranging Module is a high-precision, single-point TOF (time-of-flight) laser ranging module designed for ROS1/ROS2 robotics and drone distance/altitude sensing applications. It features adjustable ranging frequency (50–250Hz), up to 18m measurement distance, and strong ambient light resistance up to 100KLux for indoor and outdoor use.
Key Features
- TOF ranging principle; supports ROS1/ROS2
- Measurement range: 0.2–18m
- Adjustable ranging frequency: 50–250Hz
- Strong ambient light resistance: 100KLux
- Relative error: ≤30mm (0.25m ≤ ranging distance < 1m); ≤1% (1m ≤ ranging distance ≤ 18m)
- UART and I2C pin reuse design (see pinout below)
- Two configurations are shown: with case (screw fixation) and without case (adhesive backing); the case provides physical protection
- USB-to-TTL serial communication module Type-C interface design is shown (reversible Type-C plug)
- 3D model files are provided (per product materials)
Specifications
| Model | YDLIDAR SDM18 |
| Ranging principle | TOF |
| Ranging range | 0.2–18m |
| Ranging frequency | 50–250Hz |
| Relative error | ≤30mm (0.25m ≤ ranging distance < 1m); ≤1% (1m ≤ ranging distance ≤ 18m) |
| Resistant to ambient light | 100KLux |
| Baud rate | 921600bps |
| Laser wavelength | 905 |
| Level certification | Class I IEC60825-1 |
| Operating voltage | 3.3V |
| Working current | 140–150mA |
| Operating temperature | -20 to 50°C |
| Storage temperature | -40 to 85°C |
| Size (without case) | 21 × 15 × 7.87mm |
| Size (with case) | 32.2 × 24.2 × 11.5mm |
| Weight (without case) | 1.35g |
| Weight (with case) | 5.4g |
| Interface model | WF08006 |
| Case fixing hole | M2 |
| ROS support | ROS1 & ROS2 |
| Windows support | Provide Windows host computer |
Interface Pinout (SDM18 interface definition)
| Pin | Signal | Description |
| 1 | GND | Ground |
| 2 | UART_INT / I2C_SCL | Reuse of two modes |
| 3 | UART_RX / I2C_SDA | Reuse of two modes |
| 4 | UART_TX / I2C_INT | Reuse of two modes |
| 5 | 3.3V | 3.3V power supply |
| 6 | 3.3V_LASER | Internal laser power supply (additional filter circuit can be added to ensure cleaner power supply) |
Applications
- Drone altitude/height holding and obstacle avoidance
- ROS robots obstacle avoidance and navigation
- Home service robots and sweeping robots navigation/obstacle avoidance
- Maker education and programmable cars
For selection guidance and integration support, contact https://rcdrone.top/ or email support@rcdrone.top.
Manuals
Tutorials and reference code (Linux, ROS, STM32): http://www.yahboom.net/study/SDM18
Details


SDM18 provides single-point TOF distance measurement for ROS1/ROS2 robots and drone altitude sensing.


Choose a screw-fixed case for added protection, or the smaller adhesive-backed version for tight installations.

Key parameters like 0.2–18 m range, ambient-light resistance, and accuracy are summarized for quick selection.

Both adhesive and screw-fix mounting options support clean integration on robot and smart-car chassis.

UART and I2C share pins to simplify wiring while keeping a compact 6-pin connector.


Time-of-flight ranging calculates distance from the round-trip travel time of the laser pulse.


Ranging frequency can be tuned from 50–250 Hz to balance responsiveness and system load.

Strong ambient-light resistance helps maintain stable readings in bright indoor spaces and outdoors.


Mechanical drawings and 3D model files help confirm fit for enclosures, brackets, and chassis layouts.

A Type‑C USB-to-TTL adapter is available for quick PC connection and serial communication testing.

Windows debugging software supports setup, validation, and basic data viewing during integration.


SDK support for both ROS1 and ROS2 streamlines deployment across common robotics stacks.

Serial-port example code and terminal output make it easier to integrate the SDM18 TOF ranging module over UART for data logging and ROS workflows.

The YDLIDAR SDM18 ToF laser ranging module suits drone obstacle avoidance and height control, mobile robots, and smart wake-up applications.

The YDLIDAR SDM18 TOF ranging module uses a compact, mountable sensor body and is labeled as meeting Class 1 laser safety standards.

SDM18 tutorial resources include code, wiring diagrams, and documentation for MSPM0G3507-based routines and integration.

YDLIDAR SDM18 uses TOF ranging with a 0.2–18 m measurement range, 50–250 Hz sampling, and UART/I2C connections (Type‑C).

The package includes an SDM18 module (with or without case), a serial communication module, an 8 cm connecting cable, and a 1 m USB Type‑C data cable.
