Skip to content

TOF Sensor

Nooploop

Preparation

  • Rhino Pi-X1
  • Nooploop TOFSense Series TOF Sensor
  • CH340 (USB-to-TTL Adapter)
  • Several other connecting cables

Hardware Connection

  1. Identify the CH340 device:
shell
ls -l /dev/ttyU*

alt text

  1. Make the connections:
  • Connect the CH340 adapter to any USB port of Rhino Pi-X1.
  • Connect TX, RX, VCC, and GND of the CH340 adapter to RX, TX, VCC, and GND of the sensor respectively.

alt text

Testing

After completing the connections, open the minicom tool in the AidLux terminal (install it first if not present using the command: sudo apt update;sudo apt install minicom).

shell
sudo apt update
sudo apt install minicom

Once installed, open the serial port:

shell
sudo minicom -D /dev/ttyUSB0 -b 921600 -H

The default baud rate of the TOF sensor is 921600, and data needs to be displayed in hexadecimal format.

Note: If minicom only displays a single line of data, configure it as follows: Press CTRL-A Z to enter the minicom settings page, then press W to enable line wrapping for display.

Below is an example of the received data.

alt text