Go to Post If Will uses the word "dope", doesn't wear a larger FIRST logo, takes up half of the St. Louis arena, if there was not enough seating in the pits, if the music was killed during finals, it was all justified tonight. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2012, 16:52
rai337 rai337 is offline
Registered User
FRC #1574 (Miscar1574)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: israel
Posts: 26
rai337 is an unknown quantity at this point
accelerometer adxl345 isnt working

we tryed to make it work for 5 days, with no success, all the connections are fine, and we use then new code example but when we run it, it said 0 only.
we checked and it stuck in an endless while loop in:
adxl345 SPI open -> SPI read -> a while loop that stop when:
"SPI read #convd(i think)" isnt equal to 0 - and it send 0 only..
if anyone know what exectly is the problem, please help us.
  #2   Spotlight this post!  
Unread 23-01-2012, 18:53
adf0221 adf0221 is offline
Registered User
FRC #1517 (Lumberjacks)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Bow NH
Posts: 24
adf0221 is an unknown quantity at this point
Re: accelerometer adxl345 isnt working

Which cord are you using to connect your c-rio to your digital sidecar? We had this same issue and fixed it by connecting the new ribbon cable instead of the cable from past years.
Hope this helps!
  #3   Spotlight this post!  
Unread 24-01-2012, 06:49
rai337 rai337 is offline
Registered User
FRC #1574 (Miscar1574)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: israel
Posts: 26
rai337 is an unknown quantity at this point
Re: accelerometer adxl345 isnt working

we tryed the both of them, and none of them work..
  #4   Spotlight this post!  
Unread 24-01-2012, 13:22
petet4 petet4 is offline
Registered User
AKA: Pete Thomas
FRC #0706 (Cyberhawks)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Waukesha, WI.
Posts: 18
petet4 is on a distinguished road
Re: accelerometer adxl345 isnt working

Try using the address 0XA6, the sensor documatation indcates that the default address is 0x3A and 0xA6 when shorting J1. I belive the documentation is in error.

Once the address was changed to 0xA6 I2C communications worked. Also confirmed this by ohming the alt addrss per the Analog devices data sheet.

-pete
  #5   Spotlight this post!  
Unread 25-01-2012, 08:23
rai337 rai337 is offline
Registered User
FRC #1574 (Miscar1574)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: israel
Posts: 26
rai337 is an unknown quantity at this point
Re: accelerometer adxl345 isnt working

the address change will work for I2C only or to SPI too?
Closed Thread


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 02:12.

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