Go to Post Well... as ready as we can be 30 days before build season... We definitely do not have a robot yet though... :) - pandamonium [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 04-09-2016, 08:12
Gthe3rd Gthe3rd is offline
Registered User
FRC #2212 (The Spikes)
Team Role: Electrical
 
Join Date: Apr 2016
Rookie Year: 2011
Location: Israel
Posts: 6
Gthe3rd is an unknown quantity at this point
Using LIDAR Lite 2 sensor on RoboRIO I2C port

Hi all,

My team is checking new options for sensors and we came across the Lidar laser rangefinder.
I have look all over the forums for instruction on how to use the sensor, and how to wire it. Now I have a few unanswered questions:
- how exactly does one read from the sensor?
- I saw a few posts about how the RoboRIO I2C port isn't very good for this sensor. Can anyone explain why?
- I was wondering whether some team actually used this sensor in the games.

Thanks a lot!

P.S.
We program in java
Reply With Quote
  #2   Spotlight this post!  
Unread 04-09-2016, 11:58
euhlmann's Avatar
euhlmann euhlmann is online now
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 322
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Using LIDAR Lite 2 sensor on RoboRIO I2C port

Do you know the manufacturer / model number of this sensor?

Edit: Ah, I see. It's called the "LIDAR Lite 2"

This document lists the i2c registers on the sensor: http://www.robotshop.com/media/files...efinitions.pdf
There's also sample code provided for the Arduino, which you may be able to adapt: http://www.robotshop.com/media/files...ary-master.zip
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org

Last edited by euhlmann : 04-09-2016 at 12:05.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-09-2016, 03:07
Gthe3rd Gthe3rd is offline
Registered User
FRC #2212 (The Spikes)
Team Role: Electrical
 
Join Date: Apr 2016
Rookie Year: 2011
Location: Israel
Posts: 6
Gthe3rd is an unknown quantity at this point
Re: Using LIDAR Lite 2 sensor on RoboRIO I2C port

I'm still unclear on how the sensor connects to the roboRIO.
Naturally, as an I2C device, it connects to the I2C port. However, I've seen a few posts about connecting it through and MXP I2C port.
Can anyone explain this?
Thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 06-09-2016, 16:18
EmileH's Avatar
EmileH EmileH is offline
it's not a water game, ok?
AKA: Emile Hamwey
FRC #1058 (PVC Pirates) & SLFF (NE Way You Want It)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New England
Posts: 532
EmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant future
Re: Using LIDAR Lite 2 sensor on RoboRIO I2C port

IIRC, in 2015, there was no Java/C++ support for the dedicated I2C port on the RoboRIO - it had something to do with it only working in Labview and I don't really know the details. The easy way around this was to use the MXP port which did work (as long as you weren't using this port already for another device). I don't know if this was fixed for 2016 - somebody correct me if I'm wrong

To be safe, use the MXP port. This is my previous post with our code and the base that it came from, but we were using v1 of the LIDAR module (silver label). It is likely that you are using v2 (blue label) and will need to modify the code as the v2 reads differently than v1. Check the manual for instructions on reading from the device.
__________________
2016-present: High School Student, FRC 1058 PVC Pirates
2016: RiverRage 20 Champions, Battle of the Bay 3 Champions

2013-2015: Middle School Student, FRC 3467 Windham Windup
Reply With Quote
  #5   Spotlight this post!  
Unread 07-09-2016, 11:24
Gthe3rd Gthe3rd is offline
Registered User
FRC #2212 (The Spikes)
Team Role: Electrical
 
Join Date: Apr 2016
Rookie Year: 2011
Location: Israel
Posts: 6
Gthe3rd is an unknown quantity at this point
Re: Using LIDAR Lite 2 sensor on RoboRIO I2C port

Thanks a lot!
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 10:48.

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