I am using an ADXL345 accelerometer (image attached below) with Arduino UNO The wiring is written below
Arduino - ADXL345
3.3v - VCC
GND - GND
A4 - SDA
A5 - SCL
After uploading the default sensortest example it shows "Ooops, no ADXL345 detected ... Check your wiring!"
When I first read an article to connect it with Arduino I connect the ADXL 345 Vcc in Uno 5v then after some research, I came to know that the module may get
fried when using it with 5v. I later research on my module from the buyer site and it states that it can be used with 5v. Now I am confused that my module is fried or if am i doing something wrong. Please help
Screenshot by Lightshot (Sorry for giving the link forum not allowed me to upload two images)
Have you tried a simple I2C scanner?
What did it show?
The ADXL345 is a 3.3V device, and cannot be connected to a 5V Arduino without logic level shifters.
Some ADXL345 modules have those built in. If the module you have does not, this one will work.
Or, much better, just use a 3.3V Arduino and connect them directly.
It says "No I2C devices found"
Can you please tell me by looking at my module whether it supports 5V or not?
Are you sure you've got SDA and SCL the right way round?
Appropriate pull-ups?
I am a newbie to Arduino. Did you mean that I have to connect pull-up resistors with SDA and SCL pin
Just from that photo, my guess is no. Best to use a 3.3V Arduino.
The module may have already been damaged.
yes you may be right that's why I am searching for a way to confirm that its fried
I see a 5-pin voltage regulator on that module, so you should can power it with 5volt.
You don't need pull up resistors when together on a breadboard.
The module (4k7) and the Uno both have pull up,
but the module doen't seem to have an I2C level shifter.
I see the SCL connected to A5, which is correct.
Looks like the Uno has been in a flood.
Does it still work with the blink sketch from the examples in the IDE.
Leo..
Yes it's working fine with blink sketch and several other examples
Can't see anything wrong.
Did you check the wires. It's not uncommon that Dupond wires go open circuit.
If the I2C scanner didn't find anything, then it's time to try another module.
Leo..
Yup, I tried it with different wires and I will try another module after purchasing it. Thanks for answering.
Buy a module with level shifter if you intend to use that Uno.
Leo..
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.