Go Down

Topic: How to connect 3-Axis Accelerometer Sensor MMA7260 (Read 2428 times) previous topic - next topic


May 25, 2011, 06:35 pm Last Edit: May 25, 2011, 06:53 pm by WEBAFF Reason: 1
I have an accelerometer MMA7260 from Ebay and I trying to connect it to arduino by this scheme:

I use a simple sketch which serial.println (analogread (0)) and i get this strange random dataset:
but the sensor is fixed and not moving. I thought data should like be VALUE -+ 20 error, not +- 300 error.

Maybe I'm using the wrong scheme? Anyone used this module, is it ok?



I don't see a schematic of your board, but it doesn't look like there is any regulator on there, so instead of connecting 5V to Vin try connecting 3.3V to Vin (unless the accelerometer has already been damaged by 5V :(   )

The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons


May 25, 2011, 06:57 pm Last Edit: May 25, 2011, 07:01 pm by WEBAFF Reason: 1
I uploaded a schematic picture to another site. Which voltage i should connect to SL pin on Accelerometer?

Also, here some scheme from ebay seller:


OK, it looks like it does have a regulator (on the bottom). So you have it hooked up right. 3.3V is the right voltage to put on the SL pin.

Sorry, don't know what's wrong then. Do you have very long wires between the module and the Arduino; they may be picking up noise. It's also common to filter out the X/Y/Z outputs with small caps and resistors. It looks like there are resistors on the board but no caps. See Figure 6 in the MMA7260 datasheet.

The Rugged Motor Driver: two H-bridges, more power than an L298, fully protected


It's also common to filter out the X/Y/Z outputs with small caps and resistors.

I would look into this first.  Do you have a 0.1uf ceramic disc cap laying around that you can put on the output axis to see if it makes a difference?
I2C GPS Shield

Checkout my Open Source GPS Tracker on Kickstarter

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131