![Lightware SF33 Product Manual Download Page 8](http://html1.mh-extra.com/html/lightware/sf33/sf33_product-manual_1915466008.webp)
www
.lightware.co.za • info@
lightware.co.za
SF33
SF33
Multi-beam laser sensor
Product manual
6. Communicating with the serial port
The serial port is used to transmit distance readings to an embedded host processor such as the flight controller in a UAV. The
hardware interface uses 3.3 V logic levels and can be connected directly to any similar, compatible interface.
Figure 6 :: Serial interface connections
The distances measured by each of the three laser beams are sent out as a packet of binary coded bytes preceded by the header
values 0xFF, 0xFF. The format of each packet is shown below:
The “3: Serial port update rate” setting allows the output rate of the serial port to be set to any value within the limits imposed by
the snapshot resolution. Values will be rounded in order to give whole number divisors of 3052 and limited automatically if they are
too high for the resolution selected.
The “4: Serial port baud rate” selection toggles through all the standard baud rates from 9600 to 921600. If the baud rate is set too
low, there won’t be enough time for the data to complete a transmission before the next result is ready. The Serial port update rate
is reduced if this situation occurs. Both the transmitted data and any received commands are at the same baud rate.
Data packet structure
Data format of each distance result
Conversion of each result to distance in meters
0xFF, 0xFF, L1, H1, L2, H2, L3, H3
Byte_L, Byte_H
Distance = Byte_L / 256
Setting
Values
Description
3: Serial port
update rate
@ 1.00 m
10 ... 3052 / sec
Sets the rate at which new results are output from the serial port when it
is selected using “1. Active data port”.
The actual value may be lower than the entered value depending on the
setting “2: Snapshot resolution”.
Only whole number fractions of 3052 will give an exact match between
the entered and actual values.
@ 0.50 m
10 ... 1526 / sec
@ 0.25 m
10 ... 763 / sec
@ 0.03 m
10 ... 95 / sec
@ Filter
10 ... 95 / sec
4: Serial port baud rate
9600 ... 921600
Selects the baud rate for the serial port. If the “3. Serial port update
rate” setting is too high for the selected baud rate then a warning notice
will be displayed.
SF33 Multi-beam sensor - Product Manual - Revision 1
of
© LightWare Optoelectronics (Pty) Ltd, 2016
8
15