Home > Others related to the project > Arduino and MMA7361 (acceleration sensor)

Arduino and MMA7361 (acceleration sensor)


Needed components:

  • 1 Arduino board (Duemilanove, in this case)
  • 1 acceleration sensor MMA7361
  • some wires.

Pins connections:

  • ST (Self Test): Arduino pin 2
  • GSEL (g-Select): Arduino pin 3
  • 0GD (0g-Detect): Arduino pin 4
  • SLP (#Sleep#): Arduino pin Power (3.3V)
  • XOUT: Arduino pin A0
  • YOUT: Arduino pin A1
  • ZOUT: Arduino pin A2
  • GND: Arduino pin Ground
  • VCC: Arduino pin Power (3.3V)

The firmware application created for the Arduino board read the analog inputs (A0, A1, A2) and send the resulted information to the computer. On the computer a software application read the information which comes on the serial port and display it into a user friendly interface.

For each axis the acceleration value is displayed in [m/s^2] measurement unit and graphically using different progress bars (one for the positive values and another for negative values).

The analog inputs present some variation even the sensor is not moved, which make me think that it is not the best solution when it is necessary to have a high precision. Maybe I do something wrong but I could not see what could be. The single option to improve the analog readings was to make the reading of the same input multiple times (100 – 1000 x) and calculate an average value. If you have another better ideas please tell me :D.

At the beginning I want to use this type of sensor for monitoring the vibrations from a building structure (ex. walls), but now I’m not very sure that it is a very good idea. I will have to find another type of sensor, more precise.

Advertisements
  1. Bob H.
    December 23, 2011 at 4:00 pm

    Do you have the Arduino sketch for this?

  2. Tyler K.
    February 25, 2012 at 9:23 pm

    Where did the application come from? Is this something you wrote, or something you downloaded?

    • February 28, 2012 at 10:05 am

      written by my own, otherwise I wouldn’t publish about it

  3. furqon
    February 27, 2012 at 9:27 am

    Where I can download the firmware aplication for that ? and the arduino sketch ?

    • February 28, 2012 at 10:09 am

      I tried to send the applications by email to you but it doesn’t worked (“Sorry, we were unable to deliver your message to the following address…”).

  4. Laurie
    March 4, 2012 at 5:48 pm

    Hi, i have a project with the same accelerometer and my last objective is to interpret the accelero measures in a prog, like your.
    Can u retry to send me it by mail( just in text file ? ) ? Or maybe u can upload it ?
    I you’ll be very grateful.

  5. rom3
    March 7, 2012 at 3:58 pm

    Please, can you send me the Arduino-sketch?

  6. fadli
    March 15, 2012 at 9:27 pm

    hye there..
    i currently doing project involving accelerometer..
    if it is not burden u, can u send me the sketch?
    please
    🙂

  7. Pototo
    March 18, 2012 at 11:41 pm

    Hello, can you send me an email with the arduino sketch?

    Thank you very much

  8. Francis
    April 2, 2012 at 8:09 pm

    Do you mind sending me a copy of the script for your program and instruction how to run it? Thank you!

  9. Ricky
    April 16, 2012 at 1:30 pm

    Hello, can you send the arduino sketch via email?
    I doing project with mma7361 and need some information.

    Thank you very much for your help.

  10. edmund
    May 8, 2012 at 6:53 pm

    do you have the sketch for this? about the monitoring panel, how did u get it? is it arduino feature or its your own program? btw, thats cool..

  11. Caballero
    May 10, 2012 at 3:11 am

    could you send me the sketch. I am trying to work in a crash detecting system and its my first time working with accelerometers.

    Thank you

  12. himura
    May 19, 2012 at 10:57 am

    Very nice example… I don’t get how arduino has this interface though
    do u make the arduino send the data to the computer and this is a program u made?
    Can I have the ardiuno sketch for this?

  13. Dan
    May 23, 2012 at 5:03 am

    hey folks…. I would love to get this sketch/program as well. Just trying to figure out how to hook up this accelerometer for testing. Any help would be greatly appreciated. I have the 7361 library, but not sure how to hook into Arduino

  14. Ammad
    May 31, 2012 at 8:49 pm

    can you please send me the code.
    my email address is aamad@hotmail.com

  15. steven blackburn
    July 2, 2012 at 6:34 pm

    could i also have the sketch please would help me a lot thank you. My email is stevenblackburn90@hotmail.co.uk
    can you connect the accelerometer to the arduino uno directly as you have implied in your instructions? or does the set up require capicitors or resistors also like the mma7361 data sheet suggests?
    thanks again

  16. July 13, 2012 at 8:47 pm

    Hi catalinbujde,

    Could you send me the PC application you used to display the data from the Arduino as well as the Arduino code?

  17. July 19, 2012 at 1:45 pm

    Hi, can you send me the software that you made for the accelerometer ? It would be great !

    Thanks for your research!

    Madcreator

  18. August 15, 2012 at 9:56 pm

    Hi Sir,
    I am doing something similar to your project. Can you please email me (post it here)your sketch and the software that u used to display the accelerometer readings?
    Thanks,
    Teddy

  19. Kucky
    August 25, 2012 at 4:34 pm

    Hello, could I please get this code also. Thanks in advance.
    willy.kuckelsberg@gmail.com

  20. Ben
    September 10, 2012 at 5:49 pm

    Can you please send me the sketch and software? Thanks.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: