This application takes Uno board of Arduino as an example, writing related instructions of TFmini Plus, reading response data from LIDAR, processing and printing measurement data through Arduino, which helps customers to quickly familiarize themselves with our company's product and reduce development cycle.
TFmini Plus uses + 5V power supply and can connect 5V and GND of UNO board directly. It uses software serial port to communication, and defines software serial port name as Serial1 and define pin2 as RX and pin3 as TX.
No. | Color | Corresponding PIN | Funciton | Comment |
---|---|---|---|---|
1 | red | PIN-1 | +5V | Power supply |
1 | white | PIN-2 | RXD/SDA | TTL Receiving/Data |
1 | blue/green | PIN-3 | TXD/SCL/IO | TTL Transmitting/I^2^C Clock/IO |
1 | black | PIN-4 | GND | GND |
The implementation of this example requires at least two serial ports of Arduino, one is for receiving radar data and the other is for displaying data to the computer. The following code can be copied and pasted into the IDE program editing window.