HomeMadeGarbage Loading

使用测距传感器 vl53l0x 的高度测量仪

お父ちゃん  2016.9.17 
ホーム
電子工作
Raspberry Pi
IOT
音楽
Home > 電子工作 > 使用测距传感器 vl53l0x 的高度测量仪
すき 0
うんこ 0

测量身高是非常困难的, 因为孩子不能长时间静坐。
因此, 我们以低廉的价格找到了一个高精度传感器, 所以我们创建了一个不占用空间和时间的高度测量仪器。

体重测量 01度 e3 83% 95% 百分之十三百分之83% ac 83% 百分之83% 83% 83% 83% 83% 83% 83% 83% 百分之十三百分之十三百分之十三百分之十三%%% e3

部分

  • 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:-) 

测量仪器

距离传感器 vl53l0x 被放置在盒子的底部。该传感器可以测量高达2米的距离, 分辨率为1毫米。
2

将微机 arduino nano 和6轴运动传感器 mpu6050 放入机箱中, 电源采用9v 电池。

MPU6050 用于测量加速度的 x 轴和 y 轴, 以检测水平方向。当测量水平时, led (nepipxel) 为绿色。当非水平为浅红色时。

距离显示在 lcd 显示屏上。

如何使用

液晶显示

普通模式

打开电源开关, 测量在正常模式下运行。在正常模式下, 测量距离始终显示在 lcd 上。当测量水平为水平时, 指示灯为绿色。当非水平为浅红色时。

 

测量模式

当你按住梅拉斯的时候。按钮 (键开关), 它将是测量模式。把尺寸放在头上。打开测量模式。当检测到水平状态下的距离时, led 为蓝光, 并保持测量值。

再次按下测量按钮, 恢复到正常模式。

arduino ide 代码

距离传感器 vl53l0x 用于远距离模式和高精度模式。
在 cm 中, 距离调整到设备, 并对传感器位置进行校正 (1mm)。

 

操作

因为它可以测量在相对较高的速度和精度是高的, 我可以很容易地测伊康-婴儿量它, 即使在大儿子的高度谁是不安在这

コメントはこちらから

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

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