Go to Post Personally, I'm really not jealous of any good team in FIRST. I'm happy for them, and take a page out of their books to see how we can better impact our students in the future. - waialua359 [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
  #16   Spotlight this post!  
Unread 02-03-2016, 12:39 PM
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: 337
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
any chance you could post a wiring diagram of how you had it wired?
Lidar Lite Pinout is on page 8 of this datasheet: http://www.robotshop.com/media/files...32i500s011.pdf

RoboRio onboard I2C pinout is displayed on the silkscreen of the robot itself.

Simply connect RoboRio -> Lidar Lite:

GND -> Signal/Power Ground
3.3V -> POWER_IN
SCL -> I2C Clock (SCL)
SDA -> I2C Data (SDA)

My V1 sensor worked fine w/the 3.3V power pin from the RoboRIO onboard I2C connector - but you could provide it 5V power instead from one of the 5V RoboRio power rails (or the VRM) and that should work too.
Reply With Quote
  #17   Spotlight this post!  
Unread 02-03-2016, 01:13 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

thanks. Some people were saying you need a pull up resist to get it to work. Sounds like you got it to work without one?
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #18   Spotlight this post!  
Unread 02-03-2016, 01:20 PM
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Lidar-Lite Help Please

Quote:
Originally Posted by Bpk9p4 View Post
thanks. Some people were saying you need a pull up resist to get it to work. Sounds like you got it to work without one?
The roboRIO has 2.2k pull-up resistors on the I2C pins as mentioned on page 15 of the User Manual.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #19   Spotlight this post!  
Unread 02-06-2016, 09:47 AM
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

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

Name:	Lidar-read-in-controller.PNG
Views:	22
Size:	17.2 KB
ID:	19990  
Reply With Quote
  #20   Spotlight this post!  
Unread 02-06-2016, 11:17 AM
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

Looks like you forgot to post the begin. Could you post it
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #21   Spotlight this post!  
Unread 02-07-2016, 08:53 AM
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: 79
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
  #22   Spotlight this post!  
Unread 02-09-2016, 12:54 AM
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

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
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award

Last edited by Bpk9p4 : 02-09-2016 at 12:57 AM.
Reply With Quote
  #23   Spotlight this post!  
Unread 02-09-2016, 11:07 AM
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
  #24   Spotlight this post!  
Unread 02-09-2016, 01:24 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

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
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #25   Spotlight this post!  
Unread 02-09-2016, 06:46 PM
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:	16
Size:	3.0 KB
ID:	20021  
Reply With Quote
  #26   Spotlight this post!  
Unread 02-09-2016, 10:31 PM
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: 79
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 : 02-10-2016 at 07:29 AM.
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 06:00 PM.

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