benselectronics elektronica arduino kopie

MMA7361 accelerometer breakout

MMA7361 accelerometer breakout
7.95
InStock
 
Aantal
MMA7361 accelerometer breakout.

Specificaties:
  • Two selectable measuring ranges (±1.5g, ±6g).
  • Low current consumption: 400 µASleep mode: 3 µA.
  • High sensitivity (800 mV/g at 1.5g).
  • Seletable Sensitivity(±1.5g, ±6g).
  • Fast turn on time (0.5 ms enable response time).
  • Dimensions: 28 * 17mm.


Via deze link vindt u de Library

Hier een klein voorbeeld sketch:
// # Description:
// # read the data from the accelerometer in default setting

// # Connection:
// #        x  -> Analog pin 0
// #        y  -> Analog pin 1
// #        z  -> Analog pin 2
// #

const int Sleep=2;
void setup() 
{ 
  Serial.begin(9600); // 9600 bps
  pinMode(Sleep, OUTPUT);
  digitalWrite(Sleep, HIGH);
}
void loop() 
{
  int x,y,z;
  x=analogRead(0);
  y=analogRead(1);
  z=analogRead(2);
  Serial.print("x= ");
  Serial.print(x ,DEC);
  Serial.print(',');
  Serial.print("y= ");
  Serial.print(y ,DEC);
  Serial.print(',');
  Serial.print("z= ");
  Serial.println(z ,DEC);
  delay(100);
}

Terug naar overzicht


Schrijf een reactie