Go to Post I've always suspected that one could find glimpses of wisdom, setting priorities, and responsibility - and ways to balance them, in the contents of a coffee cup. - JaneYoung [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 07-02-2016, 08:53
sraque's Avatar
sraque sraque is offline
Registered User
AKA: Steve Raque
FRC #2614 (MARS)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2009
Location: Morgantown, WV
Posts: 82
sraque is on a distinguished road
Re: Lidar-Lite Help Please

Quote:
Originally Posted by khannasusa View Post
Hi All

Thanks for all your posts and replies. Here is the final update from our experiments -

we looked at the example from Marvin T MARS Team 2614. Thanks "sraque".

There are Lidar Open and read VIs and they work as-is. Also we have our Lidar connected to I2C on NavX via MXP ports on roborio

I have attached 2 images for open and read snippets from our Begin.vi and Lidar controller VIs.

--sk
You are welcome. I could not figure out from your post if it is now working or not. If not, connect to the main roborio i2c port, not MXP. From last year, there were issues with the MXP i2c port. They may have been fixed this year, but I do not know.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2016, 00:54
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 273
Bpk9p4 is on a distinguished road
Re: Lidar-Lite Help Please

I have tried both of your code and i keep getting the same error saying

<b>Complete call chain:</b>
i2clib_writeread.vi
WPI_I2CRead.vi
Lidar Read.vi
Simple Digital Output.vi
ERROR -1 i2clib_write.vi<ERR>
Device or resource busy


<b>Complete call chain:</b>
i2clib_write.vi
WPI_I2CWrite.vi
Lidar Read.vi
Simple Digital Output.vi
ERROR -1 i2clib_writeread.vi<ERR>
Device or resource busy

Has anyone seen this error before. Bellow is my code and a picture of the error log

Error log: http://imgur.com/II5VMzV
main code: http://imgur.com/CKZ7Dzk
open code: http://imgur.com/CKZ7Dzk
read code: http://imgur.com/UD1j4qk

wiring
Power: 3.3 on-board from the i2c port
Ground: on-board from the i2c port
SDA: on-board from the i2c port
SCL: on-board from the i2c port
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award

Last edited by Bpk9p4 : 09-02-2016 at 00:57.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2016, 11:07
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Lidar-Lite Help Please

Need to see your Open code. The links for Open and Main both show main code.

Is you roboRIO I2C power jumper set to 3.3 V for the On-Board I2C interface?
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2016, 13:24
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 273
Bpk9p4 is on a distinguished road
Re: Lidar-Lite Help Please

sorry about that one. I will get that posted once i am home from work. Yes the I2C is set to 3.3v

I have hooked it up to 5v (from the DIO 5v pin) and i get the same results
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2016, 18:46
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

Looks like I forgot to attach the open VI.
Here it is. These 2 Vis are working via I2C on MXP.
Attached Thumbnails
Click image for larger version

Name:	Lidar-open-final.PNG
Views:	17
Size:	3.0 KB
ID:	20021  
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2016, 22:31
sraque's Avatar
sraque sraque is offline
Registered User
AKA: Steve Raque
FRC #2614 (MARS)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2009
Location: Morgantown, WV
Posts: 82
sraque is on a distinguished road
Re: Lidar-Lite Help Please

Quote:
Originally Posted by Bpk9p4 View Post
sorry about that one. I will get that posted once i am home from work. Yes the I2C is set to 3.3v

I have hooked it up to 5v (from the DIO 5v pin) and i get the same results

Hmm..not sure what it could be. I think we wired the same as you are. We wired to the main I2C port on the RIO except for power which we wired to a 5V pin on DIO. We didn't add pull-up resistors or the capacitor that is shown on Lidar-Lite Website Arduino wiring example.

I see your code has the same loop time delays as ours...try putting the I2C Enum VI in your Begin temporarily to see if you can see the Lidar at all.

Another thing I have done to convince myself that the Lidar is working is to connect it to an Arduino, if you have one, and use the software from the Lidar Lite website to see the data.

Last edited by sraque : 10-02-2016 at 07:29.
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 01:19.

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