yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Laser Ranging Module📖
1.Introduction of module
  • Introduction
2.Tutorials
Arduino
  • 1.Three ranging modes
  • 2. Digital tube display distance
Raspberry Pi
  • 1.Laser ranging
  • 2. OLED display distance
STM32
  • Laser ranging
Download ZIP

Welcome to Laser Ranging Module repository

2. Digital tube display distance


1. Learning target

In this course, we will earn how to use Arduino and laser ranging module to achieve ranging, and display distance on digital tube module.

2. Preparation

Connect the module to Arduino board as shown below.

image.png

3. Program analysis

3.1 Initialize the serial port, initialize I2C, initialize the mode.

Then start the ranging.

During initialization, three ranging modes are realized by setting the initialization mode.

image.png 

3.2 After getting the current ranging result, print out the data through the serial port and display data on digital tube module.

image.png 

4. Compiling and downloading code

4.1 We need to open the .ino file by Arduino IDE software. Then click“√”under the menu bar to compile the code, and wait for the word "Done compiling " in the lower left corner, as shown in the figure below.

image.png 

4.2 In the menu bar of Arduino IDE, we need to select 【Tools】---【Port】--- selecting the port that the serial number displayed by the device manager just now, as shown in the figure below.

image.png

image.png

4.3 After the selection is completed, you need to click “→”under the menu bar to upload the code to the UNO board. When the word “Done uploading” appears in the lower left corner, the code has been successfully uploaded to the UNO board, as shown in the figure below.

image.png

5. Phenomenon

After the program is downloaded successfully, the program will be automatically initialized and calibrated according to the current environment.

Then, the digital tube will display the currently detected distance.



Three ranging modes
Laser ranging

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文