JRT PTGL-100 Laser Rangefinder
main (PX4 v2.0)The JRT PTGL-100 is a time-of-flight (ToF) laser rangefinder operating at 905±5nm, with a specified measurement range of 0.2–100m (100m against a 30% reflectance target) and a measurement rate of 100Hz. It connects to the flight controller using a UART (serial) port.

INFO
The driver is not included in the firmware for most boards. See Firmware Support for how to check your board and add it.
The rangefinder has been tested on the Amovlab Flycore TELEM3 port, using a custom-made adapter cable. The Flycore includes the driver in its default firmware.
Specifications
- Technology: ToF (IR laser), 905±5nm
- Range: 0.2m (90% reflectance) – 100m (30% reflectance)
- Update rate: 100Hz
- Beam divergence: ≤5mrad (typical)
- Accuracy: ±3cm up to 30m, ±7cm at 30–50m, ±15cm at 50–100m (90% reflectance target)
- Interface: UART, 3.3V TTL, 460800 baud (factory default)
- Input voltage: 3.3–5V DC
- Power consumption: ≤0.45W at 3.3V and 25°C (≤0.56W at 60°C)
- Dimensions: 10.7 × 16.8 × 22mm
- Weight: 6±0.5g
- Operating temperature: −20 to +60°C
- Ingress protection: IP67
- Laser class: Class 1 (IEC 60825-1)
Where to Buy
For PTGL-100 purchasing enquiries, contact Amovlab at shudajun@amovauto.com or JRT at sales@jrt-measure.com.
Sensor Configuration
PTGL-100 modules ship configured for 460800 baud, which is the rate the PX4 driver uses (8N1, no flow control). The 115200 baud factory default given in the PTGL-100 manual (§4.1) is incorrect. After purchase, the module's baud rate can be changed under JRT's guidance, but it must be set to 460800 baud for use with this PX4 driver. The driver doesn't change the module's baud rate. To check or change a module's baud rate, contact JRT at sales@jrt-measure.com for instructions.
Hardware Setup
Mounting
The driver assumes the sensor is mounted facing downward. For any other direction, set SENS_PTGL100_ROT (see PX4 Configuration).
The PTGL-100 manual (§7(2)) states that the sensor should not be used in direct sunlight. Contact JRT at sales@jrt-measure.com for guidance on outdoor use and any questions about this restriction.
Keep glass and mirror-like surfaces out of the sensor's blind zone (closer than 0.2m), and don't mount it facing another laser rangefinder at close range. If the sensor is fitted behind a protective window, the manual (§3.4) recommends H-K9L or fused-silica glass, 2–4mm thick, with an 855–955nm anti-reflection coating and an air gap of less than 0.5mm to the sensor.
Pinouts
The module has a six-pin HC-0.8-6PWT connector (0.8mm pitch). An adapter cable is needed to connect to flight controllers that follow the Pixhawk Connector Standard (which use 1.25mm pitch JST-GH connectors).
On the module socket, the pins are numbered 1–6 towards the two optical apertures: pin 1 (GND) is furthest from them and pin 6 (EN) nearest.

Connector drawing reproduced with permission from JRT.
The supplied cable is wired pin-to-pin: 1–1, 2–2, 3–3, 4–4, 5–5 and 6–6. With the cable connector viewed as in the photograph below (wires pointing downwards), the contacts are numbered 1–6 from left to right, so pin 1 (GND) is the leftmost. The wires shown are all black, so use the connector orientation in the photograph to identify the contacts.

| Pin | Signal | Description |
|---|---|---|
| 1 | GND | Ground |
| 2 | VCC | 3.3–5V supply |
| 3 | NC | Not connected |
| 4 | TXD | UART TX (3.3V TTL) |
| 5 | RXD | UART RX (3.3V TTL) |
| 6 | EN | Enable: low for normal operation, high for low-power mode |
Wiring
The manufacturer's packing list includes one module and one power/data cable. The supplied cable has six-pin connectors at both ends for the module's HC-0.8-6PWT interface, and carries power, UART TX/RX and EN (pin 6). It can be used as a module-side pigtail by adapting the flight-controller end to the required connector and pinout.
The PTGL-100 can be connected to any unused serial port (UART), such as TELEM2, TELEM3 or GPS2. UART signals use 3.3V TTL levels.
| Module Pin | Module Signal | Connect To |
|---|---|---|
| 1 | GND | Flight controller GND |
| 2 | VCC | 3.3–5V supply |
| 4 | TXD | Flight controller UART RX |
| 5 | RXD | Flight controller UART TX |
| 6 | EN | GND |
For example, connect the module to the Flycore TELEM3 port as follows:
| Module Pin | Module Signal | Flycore TELEM3 Pin | Flycore TELEM3 Signal |
|---|---|---|---|
| 2 | VCC | 4 | VCC |
| 1 | GND | 3 | GND |
| 4 | TXD | 1 | RX |
| 5 | RXD | 2 | TX |
| 6 | EN | 3 | GND |
Pin 6 (EN) must be connected to GND for normal operation. You must join module pins 1 and 6 to TELEM3 pin 3 in the adapter cable. The TELEM3 VCC pin supplies 5V, within the module's 3.3–5V input range. This wiring, including EN connected to GND, has been tested on Flycore.
Both TX and RX are required because PX4 sends the module a command to start continuous measurement.
Firmware Support
The rangefinder is supported by the ptgl100 driver, which is built into firmware by the board configuration key CONFIG_DRIVERS_DISTANCE_SENSOR_PTGL100=y. The driver is not part of the common set of rangefinder drivers (CONFIG_COMMON_DISTANCE_SENSOR), so it is only present in the firmware for boards that set this key. At the time of writing, this is the Amovlab Flycore.
To check your board, look for the key in its configuration file, boards/<vendor>/<board>/default.px4board, or check whether SENS_PTGL100_CFG is listed in QGroundControl (parameters are only shown for drivers that are in the firmware).
If the driver is missing, add the key to the board's default.px4board file, or enable it in boardconfig under Drivers > Distance sensors, and then build and upload the firmware.
The driver does not start until SENS_PTGL100_CFG is set (see PX4 Configuration).
PX4 Configuration
- Ensure that the wired UART is not used by another function, such as MAVLink or GNSS. If it is, see Deconflicting Ports in Serial Port Configuration.
- Configure the serial port on which the rangefinder will run using SENS_PTGL100_CFG, and then reboot.
- If the sensor is not mounted facing down, set SENS_PTGL100_ROT to its mounting direction and reboot.
For example, select TELEM 3 (103) for a module connected to the Flycore TELEM3 port. There is no need to set the baud rate for the port (460800), as this is configured by the driver. By default, the port is Disabled (0) and the orientation is Downward facing (25).
If SENS_PTGL100_CFG is not available in QGroundControl, the driver is not in the firmware: see Firmware Support.
The configuration that is common to all rangefinders, such as the sensor position offsets used by the estimator, is covered in Rangefinders > Configuration/Setup.
Testing
In the QGroundControl MAVLink Console, run:
ptgl100 status
listener distance_sensor -n 10status reports the UART, baud rate, topic instance, last distance and sample age, measurement status, and error counters. If no measurement reply has arrived in the last second, it warns "no recent measurement replies" and lists what to check: the sensor's power, the EN connection to GND, the TX/RX wiring, and the module's baud rate (see Sensor Configuration).
If several distance sensors are connected, select the instance reported by status, for example:
listener distance_sensor -i 1 -n 10See Rangefinders > Testing for how to view the data in the QGroundControl MAVLink Inspector and other generic steps.
The driver publishes the sensor type (laser), the 0.2–100m range limits, and the selected orientation.
Developer Information
The ptgl100 driver starts continuous measurement and publishes the standard distance_sensor topic used by MAVLink and ULog.
Diagnostics
The driver rejects corrupt frames and does not publish distance bytes from failed measurements. During a communication outage it does not repeat an old distance with a new timestamp. After one second without a complete measurement reply it retries the continuous measurement command, at most once per second. Measurement failure replies count as communication with the module and are reported separately from communication errors.
To run the driver manually, first disable automatic startup (set SENS_PTGL100_CFG to Disabled and reboot), then run:
ptgl100 start -d /dev/ttyS3 -R 25
ptgl100 status
ptgl100 stopThe device name above corresponds to the Flycore TELEM3 port. When stopped, the driver attempts to send the stop measurement command before closing the UART.
Protocol
The driver sends the 0x69 (continuous measurement) and 0x8E (stop) commands, accepts 0x68/0x69 measurement replies, and rejects replies that use 0x88/0x89. For the frame format and checksums, request the PTGL-100 User and Maintenance Manual from JRT (see Further Information).
Further Information
- Modules Reference: Distance Sensor (Driver): ptgl100
- Contact JRT at sales@jrt-measure.com to obtain the latest PTGL-100 User and Maintenance Manual (Chinese).