Go to Post ...if most of the money comes from sponsors, I have a bit of a problem letting them [the students] charge off a cliff with it. - TimCraig [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2016, 11:34
khannasusa khannasusa is offline
Registered User
FRC #5190
 
Join Date: Sep 2014
Location: NC
Posts: 11
khannasusa is an unknown quantity at this point
Lidar-Lite Help Please

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
Attached Thumbnails
Click image for larger version

Name:	Lidar-open.PNG
Views:	48
Size:	2.5 KB
ID:	19929  Click image for larger version

Name:	Lidar-distance.PNG
Views:	43
Size:	17.3 KB
ID:	19930  
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2016, 12:13
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
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
Can you please confirm two things:

- that your Lidar Lite is the original (V1) Lidar Lite? I've heard that there are some differences in behavior w/the new V2 Lidar Lite (I think it has a blue label on it, whereas the V1 has a silver label)
- since the Lidar Lite is receiving power from the navX-MXP, and since it requires 5VDC input voltage, can you confirm that the voltage select jumper on the navX-MXP is set to 5VDC (as opposed to 3.3VDC)?
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2016, 12:58
dougwilliams's Avatar
dougwilliams dougwilliams is offline
Engineer - Controls, Electronics
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2013
Location: Vestal, NY
Posts: 110
dougwilliams is on a distinguished road
Re: Lidar-Lite Help Please

Our team has also tried to get the Lidar-Lite to work, without success. We have the original (silver label) version. We tried the RoboRio standalone port as well as chained through the NavMXP I2C ports, with a without pullups, and different voltage supplies.
It works fine on an Arduino.

We are coding in C++.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2016, 13:57
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Lidar-Lite Help Please

Quote:
Originally Posted by dougwilliams View Post
Our team has also tried to get the Lidar-Lite to work, without success. We have the original (silver label) version. We tried the RoboRio standalone port as well as chained through the NavMXP I2C ports, with a without pullups, and different voltage supplies.
It works fine on an Arduino.

We are coding in C++.
Here's a link to the Java code we had working last year (this was a V1 Lidar Lite connected to the navX-MXP I2C port, powered w/5V). https://github.com/kauailabs/kauaibo...ems/LIDAR.java

You may find something in there that helps.

Last year it only worked w/the MXP I2C port and not with the RoboRIO onboard I2C port.

Let me spend some time getting this to work again, this time using the 2016 RoboRIO Firmware; I'll let you know what I find, may take a day or two.

- scott
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2016, 14:22
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
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
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2016, 14:29
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Lidar-Lite Help Please

Quote:
Originally Posted by Bpk9p4 View Post
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
V2 or V1? I've heard that the I2C protocol for communication to V1 is different than V2....

I'm suspicious of you can't get it working on an Arduino that (if you've verified your wiring) you are using V1 protocol to talk to V2, or vice versa. Definitely recommend getting this working before going further w/the RoboRIO.
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2016, 14:50
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
Re: Lidar-Lite Help Please

i am using V1.

The arduino code i am using is from this link https://github.com/PulsedLight3D/LID...master/Arduino

it does not say if it is version 1 or 2. Does anyone have a link to v1 arduino lidar lite code?
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2016, 17:04
khannasusa khannasusa is offline
Registered User
FRC #5190
 
Join Date: Sep 2014
Location: NC
Posts: 11
khannasusa is an unknown quantity at this point
Re: Lidar-Lite Help Please

Quote:
Originally Posted by slibert View Post
Can you please confirm two things:

- that your Lidar Lite is the original (V1) Lidar Lite? I've heard that there are some differences in behavior w/the new V2 Lidar Lite (I think it has a blue label on it, whereas the V1 has a silver label)

V1; Silver Label


- since the Lidar Lite is receiving power from the navX-MXP, and since it requires 5VDC input voltage, can you confirm that the voltage select jumper on the navX-MXP is set to 5VDC (as opposed to 3.3VDC)?
5V. Sorry I should have mentioned it in my original email.

The same Lidar wiring and setup was used successfully on an Arduino last summer to measure distance. So we are sure that Lidar is OK. But this device has no status LED to tell me otherwise.

Thanks for your help
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2016, 17:40
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
Re: Lidar-Lite Help Please

Does anyone that has gotten this sensor to work have a picture of how they weird it up to the roborio?
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #10   Spotlight this post!  
Unread 31-01-2016, 21:03
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Lidar-Lite Help Please

Is Lidar Lite class I (does it meet R9-D)?
Reply With Quote
  #11   Spotlight this post!  
Unread 31-01-2016, 22:42
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Lidar-Lite Help Please

Quote:
Originally Posted by gpetilli View Post
Is Lidar Lite class I (does it meet R9-D)?
Yes it's class 1 laser (as long as you don't remove the sensor's housing), you can read more about this in the Lidar Lite Datasheet.
Reply With Quote
  #12   Spotlight this post!  
Unread 02-02-2016, 14:55
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
Re: Lidar-Lite Help Please

anyone have any luck with this yet?
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #13   Spotlight this post!  
Unread 02-02-2016, 18:44
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Lidar-Lite Help Please

Quote:
Originally Posted by Bpk9p4 View Post
anyone have any luck with this yet?
My first round of testing with this is indicating that the RoboRIO MXP I2C port is behaving a bit differently from how it did last year, which impacts the LidarLITE communication.

Summary of Last year: We were able to get LidarLite (V1) working using the MXP I2C port (plugged into the navX-MXP I2C Expansion connector), but NOT able to get LidarLite to work w/the same code via the RoboRIO's onboard I2C connector.

This year the behavior has reversed!

Now this year: We are able to get LidarLite (V1) working using the RoboRIO onboard I2C port, but not using the MXP I2C port (plugged into the navX-MXP I2C Expansion port). The same code was used, the only difference was the Port enum value passed into the LidarLITE constructor specified a different port.

When it doesn't work, all 0s are returned, and the WPI library indicates that the transaction was aborted.

Attached are the two small java code files used in the test. As noted in the comment in robotInit() method of Robot.java, it works w/the RoboRio onboard I2C port, but not w/the MXP I2C port.

I do plan to break out a logic analyzer and see if I can figure out what's different on the two ports, but don't know when I'll get a chance to do that, maybe this weekend.

But I would recommend trying the RoboRIO onboard I2C connector, which works for me using the 2016 firmware.
Attached Files
File Type: java LidarLITE.java (2.8 KB, 17 views)
File Type: java Robot.java (2.1 KB, 11 views)
Reply With Quote
  #14   Spotlight this post!  
Unread 03-02-2016, 08:54
sraque's Avatar
sraque sraque is online now
Registered User
AKA: Steve Raque
FRC #2614 (MARS)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2009
Location: Morgantown, WV
Posts: 83
sraque is on a distinguished road
Re: Lidar-Lite Help Please

Quote:
Originally Posted by Bpk9p4 View Post
anyone have any luck with this yet?
Sorry, I meant to reply sooner and it fell off my plate.

We got a V1 to work just fine with RIO this past summer.

Use the on-board I2C port, not the MXP one.

Our labview code can be found as part of our Marvin T release
http://www.chiefdelphi.com/forums/sh...d.php?t=140815
Reply With Quote
  #15   Spotlight this post!  
Unread 03-02-2016, 09:34
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
Re: Lidar-Lite Help Please

any chance you could post a wiring diagram of how you had it wired?
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi