Go to Post You can take the man out of FIRST, but you can't take FIRST out of the man. - George1902 [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 06-02-2012, 14:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Yet another case of ADXL345 I2C Accelerometer NOT WORKING

If you are stuck in read, that usually means that one of the I2C lines are stuck low. Make sure there are no shorts on your sensor.

Joe
Reply With Quote
  #17   Spotlight this post!  
Unread 06-02-2012, 15:25
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: ADXL345 I2C Accelerometer NOT WORKING

We tried more than one.
Reply With Quote
  #18   Spotlight this post!  
Unread 06-02-2012, 15:35
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: ADXL345 I2C Accelerometer NOT WORKING

I've experienced quite a variety of issues, but let me share what I have done to get it finally working to some degree. This is using the Labview example with I2C interface only.

1) Make sure the cable you use to connect from the CRIO to Digital Side Car is correctly pinned and in proper working order.
a) We found our round molded ones from previous years to be faulty as others have described here.
b) We tried the ribbon cable from last season (from Andymark irrc) which also did not work for us.
c) We repaired this years ribbon cable, which does work.

2) Make sure your connections to the accelerometer as well as to the digital side car are clean and good. It appears from my testing the I2C is very very sensitive to poorly made cables and it will have a large impact on it's ability to communicate.

3) When using the example I2C, I found I had better success when I ran the driver station application on the same laptop as the example. I noticed in the example code an open/close for the driver station so I started running it.

4) Even with all of the above, sometimes it works, sometimes it fails to respond, sometimes it works for a while, then fails. All the failures are a failure to respond.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote
  #19   Spotlight this post!  
Unread 06-02-2012, 18:20
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: ADXL345 I2C Accelerometer NOT WORKING

Quote:
Originally Posted by xisybyl View Post
We tried more than one.
Another way this can happen is if the sensor is not powered. Are all the power supply LEDs lit on the digital sidecar?
Reply With Quote
  #20   Spotlight this post!  
Unread 07-02-2012, 02:55
Bob649 Bob649 is offline
Technical Mentor
FRC #0649 (Fish)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Saratoga HS
Posts: 7
Bob649 is an unknown quantity at this point
Solved - Re: ADXL345 I2C Accelerometer NOT WORKING

Hello all,
I found it - it was multiple faulty cables to the sidecar. The only one that works is a new flat cable from this year that I repaired according to the instructions on the KoP site. It looks like I probably had two problems at the beginning and after I fixed the other one, had the faulty cable issue. Once I got it running, it has been stable.

I will post some photos is anyone is interested in seeing some documentation of an end to end system including some scope shots of traffic.
I guess the "bad" cables must be good enough for the low order PWMs and other channels we were using to fool me.

So the moral of the story, even if you are sure your round cable is good, ONLY use a new flat cable without a twist until you get it working. Then switch other items one at a time so if it stops working you know what it was that went wrong.

Thanks to all who replied!

Bob
Reply With Quote
  #21   Spotlight this post!  
Unread 07-02-2012, 03:03
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Solved - Re: ADXL345 I2C Accelerometer NOT WORKING

Glad you got it working. I'm surprised at the problems people are having with this. It has always worked great for me... But I guess that's how it goes.
Reply With Quote
  #22   Spotlight this post!  
Unread 07-02-2012, 14:46
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: ADXL345 I2C Accelerometer NOT WORKING

"That's how it goes" is not what I expect to hear from NI. We only have one ribbon cable and we can't get our accelerometer to work with it. Why doesn't the round cable work? We checked it for continuity & shorts. Or perhaps the problem is really not the cable? Does anyone know where we can buy a cable that WILL work reliably?
Reply With Quote
  #23   Spotlight this post!  
Unread 07-02-2012, 16:25
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: ADXL345 I2C Accelerometer NOT WORKING

The only "bad cables" I've heard reasonable explanations for are the round cables that Joe Ross reported do not have all of the pins connected. As for the other reports, I have no idea how much of that is speculation or other variables that are not being accurately conveyed here. The I2C signals only operate around 150kHz on the digital side car, so I don't expect any there is any cable quality problem that would cause issues, short of "the pins aren't connected at all". I suspect there are other problems like poor soldering, very long cables between the DSC and the sensor, damaged sensors due to hooking up power and ground backward and some point in the past, etc.

-Joe
Reply With Quote
  #24   Spotlight this post!  
Unread 07-02-2012, 21:09
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: ADXL345 I2C Accelerometer NOT WORKING

Could someone take a look at this thread:http://www.chiefdelphi.com/forums/sh...d.php?t=101921 same problems in c++.
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 13:05.

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