Loading...
Pages: 1 [2]   Go Down
Author Topic: ADXL345 i2c PROBLEMS  (Read 3871 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 40
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found the mistake, Like an idiot I had commented out the line
readFrom(DEVICE, regAddress, TO_READ, buff);, in my previous debugging attempts and didn't check to uncomment it
Everything works fine now. Sorry for wasting your time.

Logged

Torino, Italy
Offline Offline
Sr. Member
****
Karma: 2
Posts: 312
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-confuse
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh no, I'm new with arduino and have the same issue, that my ADXL345 only shows 0 0 0 for x y z.

I tried several tutorials like http://www.babelduck.com/index.php/en/reference/user-manuals/1427-adxl345-3-axis-accelerometer-sensor-module-product-manual and http://bildr.org/2011/03/adxl345-arduino/ but with all of these my accelerometer seems to deliver only nulls...

It's brand new and it's hard to believe, that it's broken. Wiring was always like it should.

Anyone a further idea?

Thank you so much!
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: