Comments: MMA8452Q Accelerometer Breakout Hookup Guide

Pages

Comments 6 comments

  • I have the accelerometer hooked up to my Arduino but when I upload the sketch, only “MMA8452Q Test Code!” shows up in the serial monitor. Any ideas why? It seems like the Arduino is not reading the accelerometer.

  • Does anyone have any tips for how to collect data from two different accelerometers on the same I2C? Do I need to use pullup resistors or is the specified 330 ohm setup ok for use with two sensors?

  • Could I hook up this accelerometer to a Lilypad board?

  • I’m curious : how do we know that a 330 ohm resistor is enough for our sda and scl pin ?

    I don’t see any resistance value for the accelerometer on the datasheet, so how should we know ?

  • I keep getting an error when i try to upload

    MMA8452Q does not name a type

    I have the library fully installed just as the guide shows.

    http://i.imgur.com/djAxBiI.jpg

    thats the error there. How can I get around this?

    • This is pretty common. What likely happened is that your libraries aren’t nested quite right in the IDE. Check our tutorial here to ensure you have them installed properly.


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!