Some days ago I bought a laser rangefinder (Uni-T UT390b, f.e.
http://www.dx.com/de/p/uni-t-ut390b-45m-laser-dist…) to realise a simple LiDAR. The rangefinder has an accuracy of +/- 2mm and is able to measure distances up to 45m. This will be enough for my living room 😉
You’ll also need:
* Arduino Mega (because of more than one Serial Outputs)
* 2 Servos
* LM317 and some other parts for the 3V-power-supply
* 5V/3A power supply for the servos and the voltage Regulator
* cable, different connectors etc.
Step 1: The UT390b Laser Rangefinder and His Outputs
In the web you can find some interesting articles about the UT390b and the serial read out of the data.
There’s even a special UT390b-library for the arduino.
You just need 3 pins (GND, RX and TX), placed under the batteries on the back of the unit. Open the rangefinder (instruction: http://blog.qartis.com/arduino-laser-distance-meter/) and solder 3 wires on the outputs.
* The Tx-signals coming from the arduino have a 5V-level. This is too high for the UT390b and may destroy the electronics. Therefore you’ll need a voltage devider with two 10kOhm resistors! The 2.7V-output doesn’t need to be connected.
* A further problem is, that the UT390b will sometimes turn automatically off during the measurement or will stop because of an error message (f.e. 190). To be able to continue the measurement without problems you should replace the batteries with an external power supply and a switch for the restart! I use a LM317 as a voltage regulator.
If the UT390b shows an error on its Display you’ll just have to switch it off and on again followed by pressing the ON-button. If the UT390 turns off automatically you’ll just have to push the ON-button.
Step 2: The Measurement
To start the measurement I have to push a button. Then the two servos move zigzag and for each direction the measured distance and alignment (horizontal angle phi, vertical angle Theta) are sent to the computer. To save the values I use the program teraterm.