T3.5 w/ Lidar Lite V3 - Nothing but Nacks!

Status
Not open for further replies.

Power_Broker

Well-known member
Hey guys, I'm trying to get my Teensy 3.5 to work with a Lidar Lite V3, but I'm getting all nacks.

Setup:
- 4.7K external pullups to 5V
- Using port I2C2 (pins 3 and 4)

Schematic/Board Layout:
IFC_schematic.jpg
IFC_layout.jpg

Code:
Code:
#include <Wire.h>
#include <LIDARLite.h>



LIDARLite myLidarLite;



void setup()
{
  pinMode(13,OUTPUT);
  digitalWrite(13,HIGH);
  
  Serial.begin(115200);

  Wire.setSDA(4);
  Wire.setSCL(3);

  myLidarLite.begin(0, true); // Set configuration to default and I2C to 400 kHz
  myLidarLite.configure(0);
}

void loop()
{
  // Take a measurement with receiver bias correction and print to serial terminal
  Serial.println(myLidarLite.distance());
  delay(10);

  // Take 99 measurements without receiver bias correction and print to serial terminal
  for(int i = 0; i < 99; i++)
  {
    Serial.println(myLidarLite.distance(false));
    delay(10);
  }
}

Any thoughts?
 
Status
Not open for further replies.
Back
Top