1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RaspberryPIでAE-VL53LX1(測距センサ)を使用して距離測定

Last updated at Posted at 2020-12-29

やったこと

「AE-VL53LX1」センサモジュールとPythonライブラリを使用して、RaspberryPiで距離を測定してみました。

使った物

  • Raspberry Pi4(4GB)
  • AE-VL53LX1
    • 測距センサモジュール(リンク先は秋月電子の商品ページです)

簡易回路図

AE-VL531X1_ec.jpg

環境

  • python3.7.3
  • venv

OS

os
(VL53L1X) pi@raspberrypi:~/WorkSpace/Python/VL53L1X $ uname -a
Linux raspberrypi 5.4.51-v7l+ #1327 SMP Thu Jul 23 11:04:39 BST 2020 armv7l GNU/Linux

ライブラリ

install
(VL53L1X) pi@raspberrypi:~/WorkSpace/Python/VL53L1X $ python -m pip install smbus vl53l1x

pip list

list
(VL53L1X) pi@raspberrypi:~/WorkSpace/Python/VL53L1X $ pip list
Package       Version
------------- -------
pip           18.1   
pkg-resources 0.0.0  
setuptools    40.8.0 
smbus2        0.4.0  
VL53L1X       0.0.5  

サンプルプログラム

pimoroni/vl53l1x-python距離をバーで表示するプログラムをそのまま実行した結果です。

image.png

今後

カメラなのでbitmapなどで表示できると思っているのですが、どうすれば良いかよくわかっていないので調べていこうと思います。

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?