Frequently Asked Questions
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
March 31, 2014
Were you able to resolve this? I’m hitting my head against this issue on the Arduino Micro.
How would one mount this to a project box? Will it sit flush to the bottom of the black plastic, or will there be a gap exposing the circuitry underneath?
about a year ago
Any update on this tutorial? Sounds quite useful!
Tutorial - ADXL345 Quickstart Guide
about a year ago
Ok, so the Arduino Micro uses the ATmega32u4 versus the ATmega328P used in the “Generic” Arduino referenced in this guide. This means your pin connections are as follows:
Resources for figuring this out:
ADXL345 Datasheet, Specifically Table 4
Wikipedia SPI Bus, Specifically the Interface Section
Ardino Micro Schematic, Specifically the top left bit.
Here’s a few lines of sample output:
(Moving it around)
I’m getting what I think is invalid output from the basic code, but since there’s no sample output included it’s hard to say - Can any one confirm?
I’m seeing only 0,0,0 when motionless, which is expected, but any sort of motion produces -1,-1,-1. Rarely, and I mean once in maybe 15 seconds of shaking, I’ll get something like 2,0,7943.
I’ve triple checked my connections, and have not changed the code. I did try jbeale’s suggestions as well, no change.
Edit: I should point out that I am using a Micro, if it makes a difference.
Edit 2: Further research would indicate that given the orientation of my chip I should expect the readout to be a steady 0,0,1 when it is not in motion.
No public wish lists :(
Forgot your password?
No account? Register one!