View Single Post
  #9   Spotlight this post!  
Unread 01-31-2016, 02:22 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Lidar-Lite Help Please

Quote:
Originally Posted by khannasusa View Post
We are trying to Use Lidar-Lite we bought last year to integrate with a simple labview project to measure distance.

On our RoboRio, a Navx is connected to the MXP port. On the Navx I2C port, we have connected Lidar wires.

Wires from Lidar
1) Red Pin1 to Navx I2C + pin
2) Pin 6 GND to Navx I2C GND Pin
3) Pin 4 SCL to Navx I2C SCL Pin
4) Pin 5 SDA to Navx I2C SDA Pin


Attached are images which show LV open and read distance logic.

We are constantly getting errors from read operation -


<b>Complete call chain:</b>
i2clib_write.vi
WPI_I2CWrite.vi
Lidar Controller.vi
SubSystems.vi
Robot Main.vi
ERROR -1 i2clib_writeread.vi<ERR>
No such device or address


Can someone please help us what we are doing wrong?
thanks
sanjay
I also just bought the lidar lite and am have a lot of trouble getting it to work withthe roborio. I found some other sources but have not had any luck with them

here is some example code http://www.chiefdelphi.com/forums/sh...0&postcount=44

also some people had luck with pull up resistors http://www.chiefdelphi.com/forums/sh...d.php?t=135043

let me know if you have any luck. Can you get yours to work with an arduino example? Mine always reads 0
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote