Height measuring instrument using ranging sensor VL53L0X

お父ちゃん  2016.9.17 
Home > 電子工作 > Height measuring instrument using ranging sensor VL53L0X
すき 0
うんこ 0

It is very difficult to measure height because a child cannot sit still for a long time.
So we found a high-precision sensor at a low price, so we created a height measuring instrument that does not take up space and time.

Heightmeasure01_% E3% 83% 96% E3% 83% AC% E3% 83% 83% E3% 83% 89% E3% 83% 9c% e3% 83% BC% E3% 83% 89

Parts

  • Distance sensor VL53L0X

    It is a sensor of the resolution 1mm in a great wide range!The library for Arduino is below.
     https://github.com/pololu/vl53l0x-arduino

  • 6 axis motion sensor MPU6050

    3-axis gyroscope and 3-axis accelerometer can sensing posture information.This time, we use horizontal x-axis and y-axis acceleration to measure the level of the measuring instrument.But it’s a mess!The library for Arduino is located below (using mpu6050 and I2cdev).
     https://github.com/jrowberg/i2cdevlib/tree/master/Arduino

  • LCD display
     https://www.arduino.cc/en/Tutorial/HelloWorld

  • Microcontroller Arduino Nano compatible

    I use a cheap compatible product:-) 

Measuring instrument

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.
2

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

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.

Press the measurement button again to return to normal mode.

Arduino IDE Code

The distance sensor vl53l0x is used in Long_range mode and high_accuracy mode.
The distance is adjusted to the unit in CM and the sensor position is corrected (1mm).

 

Operation

Because it can measure at relatively high speed and the accuracy is high, I can measure it easily evenIcon-baby in the height of the eldest son who is restless in this ♪

コメントはこちらから

メールアドレスが公開されることはありません。コメントのみでもOKです。

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください