Hi All,
First time poster, long time trawler. Massive apologies for the long post too!
Background
We are attempting to time-sync to a Laser scanner (Velodyne VLP-16). The laser scanner comes with an interface box (image attached). There is a GPS connection available to do this, however for testing, we are wired directly into the “GPS Receive’ and “GPS Pulse” terminals. We are using a Raspberry Pi 2 and Python to emulate the GPS sentence and PPS using GPIO18 and the UART TX pin. The scanner and interface box is self-power via a dedicated 12v power supply.
The documentation describes the requirement for a Pulse Per Second (PPS) and NMEA Sentence to be issues consecutively (timings and structure attached) over two dedicated wires. The document says to use TTL, but that anything above 3v will be recognised. Currently, we can confirm the PPS is successfully being received by the scanner, as the web interface for the scanner shows that we are locked and synchronised. However, the NMEA sentence is not being received for some reason. It should show the coordinate and Time on the web interface, from the NMEA sentence. The required serial settings for transmission are said to be 8-N-1 at 9600. I believe the sentence needs to be ASCII terminated with ‘\r\n’ (carriage return line feed). I have used basic loop timing inside our Python code and we also believe we are close to on-the-money with our timing.
Just to be sure we pump out the signal at the correct voltage, I have tried two different Logic Level Converters (LLC). The LLC is powered on BOTH SIDES (High side and Low Side) from the Raspberry Pi’s 3.3v and 5v pin. I pass the Ground from the Pi through the LLC and onto the interface box for the scanner. I pass the UART TX through the Low side (3v) of the LLC to the high side (5v). The only thing I have not passed through the LLC, is the PPS signal from GPIO18, I send that directly to the interface box. I have also tried transmitting the serial directly to the interface box, without the use of an LLC.
LLC’s I’ve used:
http://www.jaycar.com.au/Kits,-Science- ... e/p/XC4464
http://www.jaycar.com.au/Kits,-Science- ... o/p/XC4238
Issue:
1) Given the wiring diagram of the interface box, am I even supplying the scanner with everything it needs from the Pi (1 UART TX line, 1 Pulse line from GPIO and a ground from the GPIO)? Or,
2) Is the LLC and voltage supply likely my issue?:
a. When measuring the output serial signal on the high side of the LLC, it is only 2.6v. Shouldn’t it be 5v or close when using the LLC?
b. The first LLC in the above link managed to boost to 3.4v on the high side, but isn’t that still too low?
c. Interestingly, when measuring the voltage on the interface box GPS connections, without anything connected from the Raspberry Pi or LLC, I measure small amounts of mV. Is this normal?
…….am I using my voltmeter incorrectly hahahah??!!!
Happy to supply any more info to help you, help me!
Thanks so much guys,
Chris