I am a new user to the mbed and microcontroller in general, but have a project using an ADXL345 accelerometer, but having troubles debugging the component because I am getting no output from the "Cookbook" code. I am using a MAC OSX and am curious if the pc.printf("....") is suppose to show up on the screen once I run reset the mbed with the new bin file. I have it connected using SPI with data sheet connections but have not had any luck with any output. I wanted to see how it measures so I could utilize conditional statements for my project.
As an update, I have the communication port from my computer to the mbed working, Now I'm getting the accelerometer output coming in -1's, so the output reads: "-1, -1, -1 [return] -1, -1, -1..." could my accelerometer by shorted or malfunctioning?
Check your connections. Make sure that you are powering it using 3.3V (and not 5V). I think the datasheet has different names for the pins than the cookbook. Are you using the sparkfun breakout board? This is how I've used it:
I think what happened was that i had the accelerometer power supply and the motor power mixed up, this may have caused the accelerometer to go bad. I also checked the connection pins that you've had as well Igor, and am using the sparkfun breakout board. Thanks for your help.
HEnry
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Hi,
I am a new user to the mbed and microcontroller in general, but have a project using an ADXL345 accelerometer, but having troubles debugging the component because I am getting no output from the "Cookbook" code. I am using a MAC OSX and am curious if the pc.printf("....") is suppose to show up on the screen once I run reset the mbed with the new bin file. I have it connected using SPI with data sheet connections but have not had any luck with any output. I wanted to see how it measures so I could utilize conditional statements for my project.
Thanks
Henry