/PL2303_TOF10120

Primary LanguageCGNU General Public License v2.0GPL-2.0

PL2303_TOF10120

Example program to read distances from TOF10120 Laser Range Sensor in Linux. If using a PL2303 Serial Port (USB To RS232 TTL PL2303HX Converter link below) connect wires like this:
Red->3V
Yellow->TDX
White->RDX
Black->GND
(Blue and Green are not used)

Compile with: gcc PL2303_TOF10120_serial.c strrep.c -o PL2303_TOF10120_serial or use included makefile.

The rather cheap hardware can be bought here: TOF10120 and here USB To RS232 TTL PL2303HX