Meskernel-LOGO

Meskernel PTFG Serial Laser Distance Sensor

Meskernel-PTFG-Serial-Laser-Distance-Sensor-PRODUCT

Revision of Records

Version Revision date Revisionists Revisions
R0 2021/8/30 kw First edition
 

R1

 

2024/6/7

 

kw

1. Optimize the description of product

performance parameters;

2. Optimized module communication operation

instructions;

Product Overview

PTFG series laser distance measurement module is the latest generation of outdoor long-distance laser radar distance measurement module, with strong measurement capability, high measurement accuracy, simple installation and operation and other characteristics. Pulsed laser principle: the distance measuring module emits a safe 905 nm laser ( class 1, human eye safety, invisible), the use of the laser from the time of emission to meet the target object to return to the time and the speed of light multiplied by half, to get the distance of the target object.

Meskernel-PTFG-Serial-Laser-Distance-Sensor-FIG-1

D is the distance, C is the laser propagation speed in air, and T1/T2 are the times from the rangefinder to the target and from the target back to the rangefinder laser flight, respectively.

Product Features:

Measuring distance up to 3000m , High and low-temperature resistance -10~+50℃. ;UART TTL level outputs the distance value of the measured object. Please read the sections on installation and operation carefully to prevent damage to the module.

Performance Parameters

Table 1-1 Performance indicators

Model Parameter Values
parameter values 3-3000m@70% reflectance(1) (1) The reflectivity of ordinary white wall/white

paper is ~70%.

Maximum time for a

single measurement

~1s
absolute precision +/-1m
blind area 3m
resolution 0.1m
light source 905nm, class 1
operating voltage Typical DC +3.3V, Operating range (+2.5V~+3.5V)
operating current 100mA
power consumption 330mW@3.3V
operating temperature -10~50℃
communication interface UART,default 115200bps
serial port level TTL 3.3V
dimension 92.00*54.00*33.10mm
weight ~60 g

Specification Dimensions

Meskernel-PTFG-Serial-Laser-Distance-Sensor-FIG-2

Picture 3-2 Module structure dimensions (unit: mm)

Interface

PTFG-Interface Description

Meskernel-PTFG-Serial-Laser-Distance-Sensor-FIG-3

Table 4-1 Pin Definitions

P1/J1 serial

No.

Name Function Function Description
1 GND GND  

Input: Power supply ground, Communication ground

2 PWR_EN PWR_EN Input: High Enable; default value is Low.;
3 VIN VIN  

Input:3~3.3V DC power supply, current>300mA+

4 RST RST  

Input, low level module reset

 

5

 

UART TX

 

Communication output

 

Serial communication, the module’s transmit pin, connected to the controller’s receive pin(Compatible with TTL3.3V/TTL5V

 

6

UART RX  

Communication

intput

Serial communication, the module’s receive pin, connected to the controller’s transmit pin

The communication connection between the control MCU and the module is as follows:

Communication protocols

Serial port configuration

Controlling serial port basic configuration:
Baud rate:115200bps Start Bit:1bit Data Bit:8 bits
Stop Bit: 1 bit Parity Bit: None Flow Control: None

Control Commands

  1. The communication bitstream of this system uses Little Endian mode.
  2. After accumulating the whole message as a U8 array, take the lower 8 bits as the CRC correction value, please refer to”Appendix 1:CRC Code Stream Calculation & Usage” for detailed usage.

Start/Stop Measurement

After starting the measurement, the module continuously measures and returns the measurement data until the specified number of measurements is reached or a stop command is received; see 5.2.2″Measurement Reporting” for the measurement data format.

Table5-1Startup Measurements

Bytes 0 1 2 3 4-5 6-7 8
Name MsgType MsgCode BrdId PayLoadLen MeaType MeaTimes CRC
Data 0xFA 0x01 0xXX 0x04 0 xAAAA 0xBBBB 0xZZ
  • BrdId = 0xXX 0xXX Used to specify the module ID for message reception(the default ID of the module is 0, 0xFF means broadcast message)
  • MeaType = 0xAAAA indicates to start the measurement or to stop the measurement, where 1 means to start the measurement and 0 means to stop the measurement.
  • MeaTimes = 0xBBBB indicates number of times of consecutive measurements,0 means unlimited times and 1 means a single measurement.
  • Example of starting a single measurement:fa 01 ff 04 01 01 00 01 00 00
  • Example of starting a continuous measurement:fa 01 ff 04 01 00 00 00 00 ff
  • Stop Measurement Example:fa 01 ff 04 00 00 00 00 00 fe

Measuring reporting

After starting the measurement, the module will return the measured value after each measurement is completed (the maximum time for a single measurement is 1.5s) until the specified number of measurements is reached or a measurement stop message is received.

Table 5-2 Measurement report message

Bytes 0 1 2 3 4 5 6 7 8
Name MsgType MsgCode BrdId PayLoadLen DataValidInd Distance CRC
Data 0xFB 0x03 0 xXX 0x04 0 xAAAA 0xBBBB 0xZZ
Unit dm
  • BrdId = 0xXX Used to indicate the module ID sent
  • DataValidInd = 0xAAAA indicates whether the data is valid or not, 1 indicates that the measurement data is valid, 0 indicates that measurement data is invalid.
  • Distance = 0xBBBB Indicates the measured distance unit is dm

Example: Take the message fb 03 00 04 01 00 4c 00 4f as an example

Bytes 0 1 2 3 4 5 6 7 8
Name MsgType MsgCode BrdId PayLoadLen DataValidInd Distance CRC
Data 0xFB 0x03 0xXX 0x04 0 xAAAA 0xBBBB 0xZZ
Case fb 03 00 04 0100 4c00 4f
Valid data 76dm

Setting module parameters

Table 5-4 setting module parameters

Bytes 0 1 2 3 4 5 6 7 8
Name MsgType MsgCode BrdId PayLoadLen Type Value CRC
Data 0xFA 0x06 0xXX 0x04 0 xAAAA 0xBBBB 0xZZ
  • BrdId = 0xXX is used to specify the module ID to be received, where 0xFF indicates a broadcast message
  • Type = 0xAAAA parameter type (see Table 5-6 for the parameter types that can be modified)
  • Value = 0xBBBB New setting value (except module ID setting which takes effect immediately, all other parameters take effect after reset)

Example:fa 06 f 04 00 00 00 00 03

Table 5-5 Setting module parameter response

Bytes 0 1 2 3 4 5 6 7 8
Name MsgType MsgCode BrdId PayLoad Err Type CRC
Data 0xFB 0x07 0 xXX 0x04 0 xAAAA 0xBBBB 0xZZ
  • BrdId = 0xXX used to indicate the module ID of the sending.
  • Err = 0xAAAAIndicates success or failure, where 0 indicates success and non-zero indicates failure
  • Type = 0xBBBB parameter type(see table5-6 for modifiable parameter types)

Example:fb 07 00 04 00 00 00 00 06

Table 5-6 Module parameter type

Type Name Default Range of

values

Meaning
 

0

 

Module

ID

 

0

 

0-254

1﹚ The module ID is used in the request message to indicate the receiving module.

2﹚ The module ID is used to indicate the source of the message in a response or escalation message. 3﹚ When the message sender does not care about the module ID of the receiver or wants to broadcast

the message, fill in 0xFF for the module ID

 

1

 

Baud Rate

 

1152

9216,1152,

384,192,96,

24,12

Unit: 100bps

Read module parameter

Table5-7 Module parameter read requests

Bytes 0 1 2 3 4 5 6
Name MsgType MsgCode BrdId PayLoadLen Type CRC
Data 0xFA 0x01 0 xXX 0x02 0 xAAAA 0xZZ

BrdId = 0xXX is used to specify the received module ID,where 0xFF means the broadcast message
Type = 0xAAAA parameter type(see Table5-6for modifiable parameter types)

Example:fa 08 f 02 00 00 03

Table5-8 Module parameter read response

Bytes 0 1 2 3 4 5 6 7 8
Name MsgType MsgCode BrdId PayLoad Err Type CRC
Data 0xFB 0x09 0xXX 0x04 0 xAAAA 0xBBBB 0xZZ
  • BrdId = 0xXX used to indicate the module ID of the sending
  • Type = 0xAAAA parameter type(see Talbe5-6 for modifiable types)
  • Value = 0xBBBB parameter value

Example:fb 09 00 04 00 00 00 00 08

Attention

The PTFG-XXX is an optical instrument which operation is affected by environmental conditions. As a result, the range achievable in an application varies, while the range accuracy is no affected by such factors. The following conditions may affect the range.

Influencing Factors

Factors affecting range

Elements Working temperature factors that shorten the measurement

range

target surface 1.  Bright and reflective surfaces, such as reflective panels.

2.  Thelightsourceofthemeasuring

moduleisdirectedatthetarget.

1. dull and glossy table, black table, sponge/fabric and other light-absorbing materials.

2. Modular oblique targets

airborne

particles

Clean air Dust, fog, heavy rain, storms
sunlight

intensity

low-lightenvironments Beingbrightlyilluminated

Reasons affecting the accuracy of measurements

  1. Surface transparency
    To avoid measurement errors, do not measure against the surface of transparent objects, such as colorless liquids (e.g. water) or glass (dust-free), and take a test measurement of unfamiliar materials or liquids first. Measurement errors will occur when aiming at a target through a glass window or when there are several target objects in the line of sight.
  2. Damp, high-gloss & mirror surfaces
    When the aiming angle is very small, the laser will be reflected. At this time, the signal received by the device will be too weak and affecting the accuracy or range; when the target is a mirror or other object, the laser signal will be reflected, resulting in a weak signal received by the device, and the distance from the device to the target may not be measured.
  3. Inclined surfaces, circular surfaces
    Measurements can only be made when the target area is large enough to accommodate the laser spot.
  4. Multi-path reflection
    When the laser light returned from other objects exceeds the reflected light from the target, erroneous measurement results may occur. Avoid all kinds of reflectors in the measurement light path.

safety precautions

The following instructions enable the person in charge of the PTFG and the user to be aware in advance of possible hazards in operation and to prevent them. The person in charge of the instrument should ensure that all users read and follow these instructions. If the PTFG is part of a system, the manufacturer of the system must be responsible for all safety-related issues, such as manuals, labeling, and instructions. Instrument use:

  1. Permitted purpose: distance measurement
  2. Scope of prohibition: Using the instrument without following instructions; Modifying or upgrading equipment by destroying safety systems; Removing instructions and hazard symbols;
    Aim directly at the sun.

Meskernel-PTFG-Serial-Laser-Distance-Sensor-FIG-4WARNING: Prohibited methods of use may result in injury, instrument failure and damage if used. It is the responsibility of the person in of the instrument to inform the user of the dangers and how to prevent them. Do not operate the PTFG until you know how to use it. PTFG in conditions suitable for human survival. Do not use in flammable or explosive environments.

Scope of responsibility
Responsibility of the original equipment manufacturer: Provide the product, including this manual, software and original accessories, in a completely safe condition.

Significant use hazards

WARNING: Do not point the PTFG laser directly at the sun, as this may damage the instrument; do not point the PTFG laser directly at the human eye, as this may cause damage to the human eye.

Appendix 1:CRC Code Stream Calculation & Usage

Taking a single measurement message as an example, the message code stream is: fa 01 f 04 01 00 01 00 00

  1. Totalize the whole message by U8 array: 0xfa + 0x01 + 0xf + 0x04 + 0x01 + 0x00 +0x01 + 0x00 = 0x200
  2. Take the lower 8 bits of the accumulated value as the CRC value:i.e. 0x00

Unity focus integrity progress together
Determined to become a leader in the field of laser detection!

Chengdu Meskernel Integrated Technology Co. Ltd

Documents / Resources

Meskernel PTFG Serial Laser Distance Sensor [pdf] User Manual
PTFG Serial Laser Distance Sensor, PTFG Serial, Laser Distance Sensor, Distance Sensor, Sensor

References

Leave a comment

Your email address will not be published. Required fields are marked *