ADXL345 doesn't work
i trying data adxl345 doesn't work. tried i2c , spi connections , both failed. here how connect adxl345 arduino uno:
i2c:
adxl345 -> arduino
vcc -> 5v or 3.3v (adxl345 has regulator doesn't matter)
gnd -> gnd
scl -> scl
sda -> sda
cs -> 5v or 3.3v
spi:
vcc -> 5v or 3.3v
gnd -> gnd
scl -> 13 (sck)
sdo -> 12 (miso)
sda -> 11 (mosi)
cs -> 10 (ss)
moreover used every available adxl345 library found , failed retrieve data. example:
adafruit library couldn't connect module.
sparkfun library connect (i think) data always: x = 0, y = 0, z = 0.
as far know connections (i2c, spi) good. problem be. bought module, broken?
i2c:
adxl345 -> arduino
vcc -> 5v or 3.3v (adxl345 has regulator doesn't matter)
gnd -> gnd
scl -> scl
sda -> sda
cs -> 5v or 3.3v
spi:
vcc -> 5v or 3.3v
gnd -> gnd
scl -> 13 (sck)
sdo -> 12 (miso)
sda -> 11 (mosi)
cs -> 10 (ss)
moreover used every available adxl345 library found , failed retrieve data. example:
adafruit library couldn't connect module.
sparkfun library connect (i think) data always: x = 0, y = 0, z = 0.
as far know connections (i2c, spi) good. problem be. bought module, broken?
quote
(adxl345 has regulator doesn't matter)the adxl345 chip doesn't include regulator guess in case breakout board includes one. please post link board because p.e. sparkfun board doesn't include regulator.
the adxl345 cannot work 5v i/os arduino uno provides. have use level converter. maybe board includes 1 don't have information...
Arduino Forum > Using Arduino > Sensors > ADXL345 doesn't work
arduino
Comments
Post a Comment