Advertisement

Quick Links

SF20/HA microLiDAR® sensor
Class-leading accuracy and range
in an ultralight package.
Disclaimer
Information found in this document is used entirely at the reader's own risk and whilst every effort has been made
to ensure its validity, neither LightWare Optoelectronics (Pty) Ltd, its subsidiaries, nor its representatives make any
warranties with respect to the accuracy of the information contained herein.
SF20/HA | Product guide | Revision 0 | 24 April 2025
Page 1 of 57

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the microLiDAR SF20/HA and is the answer not in the manual?

Questions and answers

Summary of Contents for Lightware microLiDAR SF20/HA

  • Page 1 Information found in this document is used entirely at the reader’s own risk and whilst every effort has been made to ensure its validity, neither LightWare Optoelectronics (Pty) Ltd, its subsidiaries, nor its representatives make any warranties with respect to the accuracy of the information contained herein.
  • Page 2 Welcome to LightWare Thank you for selecting LightWare as your partner in distance sensing technology. LightWare is a pioneer in microLiDAR® distance sensors, drawing upon four decades of expertise in LiDAR technology to develop application-specific products renowned for their accuracy, reliability, and durability.
  • Page 3: Table Of Contents

    Table of contents Overview ................................5 Safety .................................. 6 Laser eye safety ..............................6 Labeling ................................7 Laser radiation information ..........................7 Key technical specifications ..........................8 Accessories ................................ 9 USB adapter ............................... 9 Communication cable ............................9 USB cable ................................. 10 Pixhawk adapter ..............................
  • Page 4 Communication interfaces ..........................30 Serial UART interface ............................30 C interface ..............................31 Commands ............................... 31 10.1 Binary protocol ..............................32 10.1.1 Binary protocol - Command structure ......................32 10.1.2 Binary protocol - Checksum algorithm ......................33 10.1.3 Binary protocol – Reading bytes ........................34 10.1.4 Binary protocol - Sending commands ......................
  • Page 5: Overview

    100m distance range. Similar to all LightWare’s products, it uses the time-of-flight principle to measure distance, emitting a rapid succession of laser pulses that are reflected by target objects and then received back and processed immediately.
  • Page 6: Safety

    Laser eye safety LightWare LiDAR sensors comply with the United States Food and Drug Administration (FDA) laser eye safety regulations for safe use around humans and animals, based on the international standard IEC 60825-1 and utilizing LaserSafe PC Professional for the computations.
  • Page 7: Labeling

    Figure 1: SF20/HA laser warning label Important note: It is a legal requirement to display the laser warning label on your final product or system. To assist with this, LightWare has included an extra laser warning label in the packaging.
  • Page 8: Key Technical Specifications

    Key technical specifications Table 2: SF20/HA microLiDAR® key technical specifications SF20/HA microLiDAR® key technical specifications Performance 0.2 to 100m / 0.6 to 328ft Range (70% albedo in sunlight conditions, 0.9 x 0.9 m target size) Update rate 48 to 1250 readings per second (customizable to suit application) Resolution 1 mm / 0.04 in 1cm for an internal unit temperature of 20°C to 30°C...
  • Page 9: Accessories

    To support configuration and integration, the following accessories are available for purchase from the LightWare website: USB adapter To configure and test your sensor in LightWare Studio via the serial cable, as opposed to a direct micro-USB connection, a USB adapter is required. Figure 2: ACC_USB_Serial - Generic USB adapter Communication cable Each SF20/HA is supplied with a communication and power cable.
  • Page 10: Usb Cable

    USB cable An optional USB Type A to USB Type B Micro cable is available to connect the SF20/HA to your computer using the micro-USB interface on the SF20/HA. Figure 4: AE10418-ND - USB cable for SF20/HA Pixhawk adapter Each SF20/HA is supplied with a 5-way Pixhawk adapter to simplify system integration. Additional adapters are available for purchase from our online store.
  • Page 11: Breakout Board

    Breakout board An optional breakout board accessory is available to facilitate the integration of the SF20/HA into a host controller such as a Pixhawk, PX4, Raspberry Pi, or Arduino. It consists of four reusable adapter boards to conveniently connect the SF20/HA communication cable to other standard cables and host controllers, without requiring soldering.
  • Page 12: Getting Started

    Getting started LightWare Studio is a free application (available for Windows, macOS, and Linux) and is the gateway to configuring your microLiDAR® sensor and visualizing your data. This software empowers you to customize settings, fine-tune sensor parameters, and easily analyze data. It also facilitates firmware upgrades and in-field diagnostics and support.
  • Page 13 Carefully connect your SF20/HA to the USB adapter using the communication cable or directly via the USB cable. Check the connectors are correctly orientated and very gently squeeze them in until they click into place. To unplug the serial cable, use a small flat- head screwdriver in the groove on the connector.
  • Page 14 Please allow the installation process to complete. LightWare Studio will automatically detect the device and present it for selection on the Welcome page. The Welcome page may show other communications ports on your computer.
  • Page 15 Navigate to the Distance mode tool from the left panel. This streams live distance data in meters as it is scanned by the sensor as a graph. Figure 13: LightWare Studio SF20/HA distance graph page SF20/HA | Product guide | Revision 0 | 24 April 2025...
  • Page 16 (Please refer to the section below for a more comprehensive understanding of these parameters.) Figure 14: LightWare Studio SF20/HA parameters in Distance mode page 11. Navigate to the Distance log tool from the left panel. This tool streams live distance data in meters as it is scanned by the sensor.
  • Page 17: Parameters, Filters, Settings, And Tools

    Parameters, filters, settings, and tools Setting the device parameters Your LightWare SF20/HA microLiDAR® sensor can be configured via LightWare Studio or from a host controller using the product commands through the serial UART or I C communication interfaces. To set the device parameters using LightWare Studio: In the left panel, click on Parameters to open the detailed parameters page.
  • Page 18: Parameter Explanation

    Table 4: SF20/HA adjustable parameters Parameter Explanation Options/range Communication Serial UART baud Select the serial UART interface baud rate, (in bps). 9 600 to 921600 rate The address used when communicating over the I I2C address 0 to 127 interface. A whole number in decimal. Select I C bus operating speed.
  • Page 19 The sensor will output only the closest distance detected Select or de-select distance during each sweep. the checkbox Refer to the LightWare website FAQ for more info on scanning parameters: https://lightwarelidar.com/resources-faqs/ Alarms Warn when an object is detected closer than this user-set alarm distance.
  • Page 20: Filters

    Parameter Explanation Options/range Scanning Alarm A The higher (right) angle used with Alarm A during scanning. -180 to 180 (high angle) (In degrees, up to two decimal places.) Scanning Alarm B The lower (left) angle used with Alarm B during scanning. (In -180 to 180 (low angle) degrees, up to two decimal places.)
  • Page 21: Settings And Tools

    Settings and tools Additional application settings are available by clicking on the gears icon in the top menu: Figure 17: LightWare Studio application settings page You can access the specialized device tools page by clicking on the wrench icon in the top...
  • Page 22: Installation, Mounting, And Cabling

    Installation, mounting, and cabling Mechanical interface For detailed CAD files, please refer to the LightWare resource center at https://lightwarelidar.com/. Figure 19: SF20/HA dimensions Caution: This sensor is an OEM module that requires appropriate heat sinking and EMI shielding. SF20/HA | Product guide | Revision 0 | 24 April 2025...
  • Page 23: Mounting Bracket

    Mounting bracket Mounting accessories can be purchased from the LightWare website. Alternatively the CAD file can be downloaded from the LightWare resource center at https://lightwarelidar.com/ to print your own bracket. The ABS mounting bracket is used to secure the SF20/HA to any flat surface.
  • Page 24 Make sure the sensor is securely mounted to prevent false readings or • damage. The LightWare microLiDAR® sensor is designed for installation with exposed • lenses. If it is to be mounted behind glass, ensure use of non-reflective glass and mount the sensor flush with the glass to prevent false readings. The glass must have good transmission at 905 nm wavelength, with an anti-reflective coating optimized for this wavelength.
  • Page 25: Orientation

    Secure the communication cable to prevent it from pulling on the connection • port by attaching the shielding lug of the cable to the mounting screws on the SF20/HA. Orientation The sensor requires a clear line-of-sight to measure distance to a target surface. It can be mounted with a vertical or horizontal lens orientation.
  • Page 26: Communication And Power Cable

    SF20/HA through an eight-position receptacle connector. The cable is shielded and must be earthed to reduce electromagnetic interference (EMI). Spare cables are available from the LightWare online store: https://lightwarelidar.com/. Figure 26: SF20/HA communication cable connection and grounding...
  • Page 27: Advanced Features

    Although first and last pulse detection is helpful when the sensor needs to be positioned behind a protective window, this type of mounting is not recommended, as LightWare sensors are designed to be integrated with exposed lens elements.
  • Page 28: Servo Drivers

    Most standard digital servomotors are compatible, but analog servomotors are not compatible due to their slow control signal response. Figure 21: Servo wiring schematic diagram for SF20/HA and LW20/HA Refer to the LightWare website FAQs https://lightwarelidar.com/resources-faqs/ for more information on setting parameters for the servomotor sweep limits and speed, servo lag, field of view, and scan type.
  • Page 29: Alarms

    Alarms Your LightWare SF20/HA microLiDAR® measures and reports distances and has a dedicated alarm channel providing two separate live alarm status outputs, warning of potentially hazardous conditions. Alarm A and Alarm B give separate warnings when the ground (or another object) is detected closer than their user-set alarm distances.
  • Page 30: Communication Interfaces

    We suggest using LightWare’s pre-built APIs wherever possible, which are available via the LightWare website resource center. If you require more control or do not find a suitable pre- built API, you can use the information below to build a compatible system. The packet-based binary protocol is compatible with higher-level APIs like C, Python, and JavaScript.
  • Page 31: I 2 C Interface

    When a write request is issued there is no response generated. Commands Your LightWare microLiDAR® use three communication protocols for both serial UART and I communication: The packet-based binary protocol is a register-based protocol that is •...
  • Page 32: Binary Protocol

    To initialize the communication with the sensor, send the command to request the Product name. It is advisable to send the command to query the Product name twice in succession shortly after powerup. As described above the first request will not return a response, however the second request will return the product name, indicating that the sensor has indeed initialized successfully, and a handshake has been successfully established with the sensor.
  • Page 33: Binary Protocol - Checksum Algorithm

    10.1.2 Binary protocol - Checksum algorithm The checksum algorithm is CRC-16-CCITT 0x1021. Below are two CRC calculation examples: Table 8: Checksum algorithm C/C++ JavaScript uint16_t createCRC(uint8_t* Data, uint16_t Size) function createCRC(data, size) { let crc = 0; uint16_t crc = 0; for (let i = 0;...
  • Page 34: Binary Protocol - Reading Bytes

    10.1.3 Binary protocol – Reading bytes Once a packet is successfully read it can be processed based on its command ID. It is vital to verify the payload length and checksum before processing. If either of the following errors are received, “invalid packet length” or “checksum is invalid”, please roll the incoming stream back to one byte after where the start byte was detected.
  • Page 35: Binary Protocol - Sending Commands

    10.1.4 Binary protocol - Sending commands Every request sent to the sensor will receive a response. The response also confirms that the request was received and processed. The timeout value and number of retries should be optimized for the specific application. Below is the process for sending a command request and reading the response: Figure 25: Process flow for sending commands 10.1.5...
  • Page 36: Binary Protocol - Command List

    10.1.6 Binary protocol – Command list Table 9: Binary protocol command list Read Write ID Name Description Persists bytes bytes A 16-byte string indicating product family. Always SF20 followed by a null terminator. Product name Use to verify the SF20/HA is connected and operational over the selected interface.
  • Page 37 Read Write ID Name Description Persists bytes bytes The Communication mode sets the startup state. The following options are available: Mode Description Communication Auto Detect Interface (Default) Mode uint8 uint8 Serial UART Serial UART (Legacy Header) Serial UART (no startup message) Serial and USB interface only.
  • Page 38 Read Write ID Name Description Persists bytes bytes Last return strength (%) Int32 Background noise Int32 Reading this command will indicate the current laser firing state. Writing to this command will enable or disable laser firing. Value Description Laser firing uint8 uint8 Disabled...
  • Page 39: Ascii Protocol

    Read Write ID Name Description Persists bytes bytes The I C address value is in decimal. I2C address Reading this command will return the I C address. uint8 uint8 Writing this command will set the I C address. Reading this command will return the status of the median filter. Writing this command will set the status of the median filter.
  • Page 40: Ascii Protocol - The Reply To The Ascii Command

    The host controller instructs the sensor to change a setting value. All sensor parameters can be changed in this way. (These parameters can also be changed through LightWare Studio). These commands include instructions to connect or enable/disable functions. The host controller instructs the sensor to save specific setting changes to memory.
  • Page 41: Ascii Protocol - Example Command And Reply

    10.2.3 ASCII protocol - Example command and reply A typical command sent by the host controller: ?PN<CR><LF> which means, “Reply with your product name” The sensor replies with: pn:SF20 <cr><lf> which means, “Product Name: SF20” The commands list table on the following pages contains many common commands and shows how to build the command you require.
  • Page 42: Ascii Protocol - Command List

    10.2.5 ASCII protocol - Command list Table 10: SF20/HA channel commands list Build Command Typical Command reply Description Notes Each command Each reply must end with will end with <CR><LF> <CR><LF> Product channel commands Reply with the product p:SF20,1.0.0 Same return for name, firmware version, both commands hardware version...
  • Page 43 Build Command Typical Command reply Description Notes Each command Each reply must end with will end with <CR><LF> <CR><LF> 1 = 388 2 = 194 3 = 129 Change the update rate 4 = 97 #LM,1 lm:1 to 388 readings per 5 = 78 second 6 = 65...
  • Page 44 Build Command Typical Command reply Description Notes Each command Each reply must end with will end with <CR><LF> <CR><LF> Reply with the raw 1 = raw ?LDF,1 ldf,1:32.78 distance to the first 2 = closest return 3 = furthest Reply with the closest ?LDF,2 ldf,2:65.12 distance to the first...
  • Page 45 Build Command Typical Command reply Description Notes Each command Each reply must end with will end with <CR><LF> <CR><LF> Change Alarm B distance Adjustment range #LAB,6.00 lab:6.00 to 6.00 meters is 0.00 to 100.00 Reply with the alarm ?LAH lh:0.00 hysteresis value Change the alarm Adjustment range...
  • Page 46 Build Command Typical Command reply Description Notes Each command Each reply must end with will end with <CR><LF> <CR><LF> Change the PWM scale of Adjustment range: #SWS,10.00 sws:10.00 the servo to 10.00 µs per 0.10 to 1000.00 degree Reply with the number of sr:4 servo steps per reading Change the number of...
  • Page 47 Build Command Typical Command reply Description Notes Each command Each reply must end with will end with <CR><LF> <CR><LF> Reply with the scanning ?SBL sbl:-45.0 Alarm B lower angle in degrees Change the scanning Adjustment range: #SBL,0.0 sbl:0.0 Alarm B lower angle to -180.00 to 180.00 0.0°...
  • Page 48: Legacy Protocol

    ‘?’ command. The sensor has five streams (denoted by $1, $2, $3, $4, and $5), and each can be set to stream a different reading. These five streams can be seen as five columns in LightWare Studio. The streaming ASCII command strings format is as follows: <$><stream number><,><...
  • Page 49 Table 12: SF20/HA streaming commands list Build Command Command Typical reply Description Notes Each command Each return will end must end with with <CR><LF> <CR><LF> Streaming commands Stream servo scanning data on $1,SS ss:30.5,15.56,27.43 Stream 1: angle, first return, last return Stream the sensor’s $2,LT Data steam...
  • Page 50: Firmware Updates

    Firmware updates Occasionally, LightWare will release new firmware for your sensor, to address bug fixes or introduce additional features. All registered customers will receive an email notification when new firmware is released for their LightWare sensor. Caution: LightWare strongly advises that all LightWare sensors are kept up to date with their latest firmware revision.
  • Page 51 The page will display the currently installed firmware version on the sensor, and it will indicate whether any recent upgrades are available for download. If you need to upgrade, click the Install button, followed by OK to confirm. Figure 28: Confirmation of firmware upgrade The firmware will be installed to your device, and the device will automatically reboot.
  • Page 52: Troubleshooting

    • If using a separate power supply, ensure a common ground. Servo does not scan Ensure “Servo scan on startup” is enabled in LightWare Studio. • on startup Ensure servo ground and sensor ground is connected to the same •...
  • Page 53 SF20/HA microLiDAR® key technical specifications. For issues not covered above, refer to the FAQs in the LightWare website resource center or contact LightWare’s dedicated technical support team for assistance with remote testing of your LightWare sensor. SF20/HA | Product guide | Revision 0 | 24 April 2025...
  • Page 54: Repair And Maintenance

    13.2 Cleaning If the LightWare microLiDAR® lenses collect dust, use a clean, soft cloth or air compressor to remove it. The lenses are coated with an anti-reflective, non-scratch coating. Only appropriate lens cleaning materials should be used to avoid scratching the sensor’s lens or damaging the coating.
  • Page 55 Figure 29: LightWare Studio device information page If the unit needs to be returned to LightWare for repairs, LightWare support will assist you with the Return Merchandise Authorization (RMA) procedure. SF20/HA | Product guide | Revision 0 | 24 April 2025...
  • Page 56: End-Of-Life Safe Disposal

    Please do not dispose of LightWare sensors with general household or commercial waste. Figure 30: End-of-life disposal LightWare sensors consist of ABS and other plastics, acrylic, and glass components, which are widely recyclable. The electronic PC board assembly should be disposed of through a reputable electronic waste recycler in your area.
  • Page 57: Document Revision History

    Document revision history Table 14: Revision history Revision Date Comments Rev 0 2025/04/24 First edition SF20/HA | Product guide | Revision 0 | 24 April 2025 Page 57 of 57...

This manual is also suitable for:

Microlidar sf20Microlidar sf20/c

Table of Contents