Go to Post If they ask you to stop - you stop. - techhelpbb [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
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 30-11-2015, 16:19
SLAB-Mr.Thomas SLAB-Mr.Thomas is offline
Registered User
FRC #4237
 
Join Date: Jan 2015
Location: USA
Posts: 12
SLAB-Mr.Thomas is an unknown quantity at this point
LIDAR Lite v2 not working

We bought the latest greatest LIDAR Lite v2 from PulsedLight and can't get it to work on our roboRIO.

Searched the Internet from top to bottom and have done all the usual tasks - verified the power supply (solid 5 volts), verified with the manufacturer and supplier that the I2C SDA & SCL accommodate 3.3 v, added the pull up resistors, added the capacitor. Scoped the 5 v power supply line (no glitches seen on a 15 MHz scope). Checked our C++ code every which way (we use WPILib, of course). Tried both the on-board and expansion board I2C ports on the roboRIO.

In place of the LIDAR Lite v2, an Aadvark I2C host adapter simulator communicates with the roboRIO just fine and our commands are seen by it and our program responds to the manually entered responses (that we think will be returned by the LIDAR Lite v2).

We've tried everything everyone can think of except we don't have $2000 protocol analyzer to try.

Anybody get the version 2 of this LIDAR Lite to work?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-11-2015, 17:00
aldaeron aldaeron is offline
Registered User
AKA: -matto-
FRC #1410 (Kraken)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Denver
Posts: 216
aldaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond repute
Re: LIDAR Lite v2 not working

Suggest you merge with this thread -> http://www.chiefdelphi.com/forums/sh...d.php?t=138403
Reply With Quote
  #3   Spotlight this post!  
Unread 30-11-2015, 22:49
SLAB-Mr.Thomas SLAB-Mr.Thomas is offline
Registered User
FRC #4237
 
Join Date: Jan 2015
Location: USA
Posts: 12
SLAB-Mr.Thomas is an unknown quantity at this point
Re: LIDAR Lite v2 not working

As soon as I gave up all hope and posted my question, the answer appears.

Use WPILib C++ I2C WriteBulk and ReadOnly instead of Read.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-12-2015, 09:55
aldaeron aldaeron is offline
Registered User
AKA: -matto-
FRC #1410 (Kraken)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Denver
Posts: 216
aldaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond reputealdaeron has a reputation beyond repute
Re: LIDAR Lite v2 not working

Murphy's Law in action!
Reply With Quote
  #5   Spotlight this post!  
Unread 01-12-2015, 15:02
SLAB-Mr.Thomas SLAB-Mr.Thomas is offline
Registered User
FRC #4237
 
Join Date: Jan 2015
Location: USA
Posts: 12
SLAB-Mr.Thomas is an unknown quantity at this point
Re: LIDAR Lite v2 not working

Here's my example program attached (2 files) to acquire the distance using C++ WPILib for January 2015 roboRIO.
Attached Files
File Type: cpp Lidar.cpp (9.8 KB, 74 views)
File Type: cpp Robot.cpp (858 Bytes, 37 views)
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 08:00.

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