The distance sensor VL53L0X is placed in the bottom of a box. The sensor can measure distances of up to 2m with 1 mm resolution.
Place the microcomputer Arduino Nano and 6-axis motion sensor MPU6050 in the box, the power supply was used a 9V battery.
MPU6050 is used to measure x-axis and y-axis of acceleration for detect the horizontal direction. The LED (Neopixel) is green , when measure is horizontal. When non-horizontal is light red.
Distances are displayed on the LCD display .How to use it:
- LCD Display
- Normal Mode
Turn on the power switch, the measure operates in the normal mode. In Normal Mode, The measurement distance is always displayed on LCD. The LED is green, when measure is horizontal. When non-horizontal is light red.
- Measurement Mode
While you hold down the Meas. Button (tact switch) it will be the Measurement Mode. Put measure on head. Turn the Measurement Mode. When the distance in a horizontal state is detected, LED is blue light and measurement value is held.