Electronics > Microcontrollers

Accelerometer use?

(1/3) > >>

ChrisGreece52:
Hello today i recieved one MMA7361 Accelerometer unit.
First i would like to know
How you can read an accelerometer ... for example the output in the z axis is 800 what that 800 means.
Also what is a gyroscope.... i could not find a video that was only about the gyroscope
And third how can i hook it up to my arduino ... i read the datasheet but i keep wiring it wrong and getting some values that wont change.Also there are no videos showing how to wire it ...
To sum up ... i got an accelerometer that i dont know how to read it or use it .. and i dont know some practical uses for it ...
Thank you and i am sorry for some of my questions but i could not get answers to them

FrankBuss:
A quick Google search shows this page:

http://arduino.alhin.de/index.php?n=21

The same Google search gives you this datasheet link:

http://www.freescale.com/files/sensors/doc/data_sheet/MMA7361L.pdf

On page 3 it says typical 800 mV/g. I guess the value you are measuring is mV, and if you are not living on the moon, it should show 1 g.

But I can't answer, why you get it, if you don't have practical use for it. Maybe try again Google, with something like "accelerometer projects", and pick one of the 2 million results which you like.

ChrisGreece52:

--- Quote from: FrankBuss on May 13, 2013, 08:01:58 pm ---A quick Google search shows this page:

http://arduino.alhin.de/index.php?n=21

The same Google search gives you this datasheet link:

http://www.freescale.com/files/sensors/doc/data_sheet/MMA7361L.pdf

On page 3 it says typical 800 mV/g. I guess the value you are measuring is mV, and if you are not living on the moon, it should show 1 g.

But I can't answer, why you get it, if you don't have practical use for it. Maybe try again Google, with something like "accelerometer projects", and pick one of the 2 million results which you like.

--- End quote ---
Thanks the datasheet is fine i checked that too but with this wiring the sensor did not work....
Anyway the other site saved my life i can tell!!! ill try this method of wiring it and see what comes up its in German but its ok ich spreche English und Deutch :P (i am not so fluent but still :D)

ChrisGreece52:
I dont know.... the wiring looks fine but i still get some fixed values (x: 519   y: 519   z: 583)
I dont know ill try changing example
The example i have uploaded
--- Code: ---#include <AcceleroMMA7361.h>

AcceleroMMA7361 accelero;
int x;
int y;
int z;

void setup()
{
  Serial.begin(9600);
  accelero.begin(13, 12, 11, 10, A0, A1, A2);
  accelero.setARefVoltage(3.3);                   //sets the AREF voltage to 3.3V
  accelero.setSensitivity(LOW);                   //sets the sensitivity to +/-6G
  accelero.calibrate();
}

void loop()
{
  x = accelero.getXRaw();
  y = accelero.getYRaw();
  z = accelero.getZRaw();
  Serial.print("\nx: ");
  Serial.print(x);
  Serial.print("\ty: ");
  Serial.print(y);
  Serial.print("\tz: ");
  Serial.print(z);
  delay(500);                                     //(make it readable)
}
--- End code ---
Maybe my accelerometer is broken....

PA0PBZ:

--- Quote from: ChrisGreece52 on May 13, 2013, 08:13:27 pm ---I dont know.... the wiring looks fine but i still get some fixed values (x: 519   y: 519   z: 583)

--- End quote ---

You realise that nothing will change if you leave it sitting on the table?

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod