The Laser Range Finder Bricklet 2.0 can be used to extend the features of Bricks by the capability to measure distances and velocity. The distance is measured with the help of a laser pulse and the time-of-flight principle.
Property | Value |
---|---|
Sensor | LIDAR-Lite (V3) |
Current Consumption | 230mW (46mA at 5V, Laser off)
455mW (91mA at 5V, Laser on)
|
Distance (Range, Resolution) | 0-40m, 1cm |
Sample Rate | up to 500Hz (depends on measured range) |
Accuracy <5m | ±2.5cm (nonlinearity present below 1m) |
Accuracy ≥5m | ±10cm |
Ripple | ±1% of distance |
Dimensions (W x D x H) | 49 x 45 x 36mm (1.93 x 1.77 x 1.42") |
Weight | 30g |
To test a Laser Range Finder Bricklet 2.0 you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the Laser Range Finder Bricklet 2.0 to a Brick with a Bricklet Cable.
If you connect the Brick to the PC over USB, you should see a new tab named "Laser Range Finder Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. Click the "Enable Laser" checkbox to enable the laser. If everything went as expected you can now see the measured distance of the sensor and a graph that shows the distance over time. In the image below we slowly moved a hand away from the sensor and to the sensor again.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the Laser Range Finder Bricklet 2.0 and examples in different programming languages.
See Programming Interface for a detailed description.
Language | API | Examples | Installation |
---|---|---|---|
C/C++ | API | Examples | Installation |
C/C++ for Microcontrollers | API | Examples | Installation |
C# | API | Examples | Installation |
Delphi/Lazarus | API | Examples | Installation |
Go | API | Examples | Installation |
Java | API | Examples | Installation |
JavaScript | API | Examples | Installation |
LabVIEW | API | Installation | |
Mathematica | API | Examples | Installation |
MATLAB/Octave | API | Examples | Installation |
MQTT | API | Examples | Installation |
openHAB | API | Examples | Installation |
Perl | API | Examples | Installation |
PHP | API | Examples | Installation |
Python | API | Examples | Installation |
Ruby | API | Examples | Installation |
Rust | API | Examples | Installation |
Shell | API | Examples | Installation |
Visual Basic .NET | API | Examples | Installation |
TCP/IP | API | ||
Modbus | API |