Template: TOF Laser Ranger Sensor B Guides

From Waveshare Wiki
Jump to: navigation, search

Work with Raspberry Pi

Enable UART

Execute the following command to enter the Raspberry Pi configuration:

sudo raspi-config

Choose Interfacing Options -> Serial -> No -> Yes:
You need to disable the login shell and enable the srial port hardware:

L76X GPS Module rpi serial.png


Reboot Raspberry Pi:

sudo reboot

Open the /boot/config.txt file and find the following configuration statement to enable the serial port, if not, add it at the end of the file:

enable_uart=1

Reboot to take effect.

Enable I2C Interface

Open a terminal and run the following commands:

sudo raspi-config 
Choose Interfacing Options -> I2C -> Yes.

Reboot Raspberry Pi:

sudo reboot

RPI open i2c.png

Module parameter Settings

The UART baud rate of the TOF Laser Range Sensor module needs to be set to 115200 through the host computer;
The effect of using the TOF Laser Range Sensor module on Raspberry Pi is as follows:
Tof-module-para.png

Hardware Connection

Connect to UART
Tof-Uart.png
Connect to I2C
Tof-I2c.png

Working with Jetson Nano

Hardware Connection

Tof-jetson.png

Software Settings

The UART baud rate of the TOF Laser Range Sensor module needs to be set to 115200 by the host computer;
Tof-software-set.png

The effect of Jetson nano using TOF Laser Range Sensor module is as follows:
Tof-jetson-sensor.png

Working with Arduino

Hardware Connection

TOF-Laser-Range-Sensor-Arduino-connected.jpg

Software Settings

  • The UART baud rate of the TOF Laser Range Sensor module needs to be set to: 115200 by the host computer;
Tof-software-set.png
TOF-Arduino-Test.jpg