سنسور شتاب سنج – ماژول سنجش زاویه و شتاب MMA7361
MMA7361 محصول شرکت freescale یک شتاب سنج ۳ محوره با خروجی آنالوگ می باشد. در این ماژول امکان انتخاب یکی از ۲ رنج اندازه گیری شتاب ۱٫۵g± و یا ۶g± از طریق پایه GS وجود دارد. از دیگر خصوصیات بارز این ماژول میتوان به مد sleep ، تصحیح سیگنال ، فیلتر پایین گذر خروجی ، جبران حرارتی ، تست خودکار و آشکار سازی شتاب ۰ اشاره کرد. ولتاژ مورد نیاز این ماژول ۳٫۳ و یا ۵ ولت میباشد. جریان مصرفی MMA7361 تنها ۴۰۰ میکرو آمپر میباشد.
خصوصیات:
کاربرد ها:
Reasonably priced add-on sensor modules are now widely available, and you can rig up your own fascinating hobby projects using these pre-assembled modules by linking them to suitable microcontrollers. Here is an introduction to MMA7361, which is a long-familiar 3-Axis Accelerometer Module!
This sensor can measure static (earth gravity) or dynamic acceleration in all three axis. Application of the sensor is in various fields and many applications can be developed using it. The accelerometer measures level of acceleration where it is mounted, enables us to measure acceleration/deceleration of an object, or tilt of a platform with respected to earth axis.
Further, the sensor provides 0G output which detect linear free fall. Technically, MMA7361LC is a low power, low profile capacitive micromachined accelerometer featuring signal conditioning, a 1-pole low pass filter, temperature compensation, self test, 0g-Detect which detects linear freefall, and g-Select which allows for the selection between 2 sensitivities. Zero-g offset and sensitivity are factory set and require no external devices. The MMA7361LC includes a Sleep Mode that makes it ideal for handheld battery powered electronics. The module can be directly powered with a 5V dc supply. Note that it can also be directly powered from any 3.3V ‘clean’ dc supply.
MMA7361 Features
MMA7361 Applications
Interfacing MMA7361 accelerometer module with an Arduino UNO
There lots of good resources out there in the web for accelerometers and the Arduino. Here is a simple primer that I have found useful. Fortunately, not too many things are needed here for this entry-level experiment.
Sample Sketch for testing MMA7361 with Arduino is shown here. Using this program you can read output from X,Y and Z axis during vibration, through the Serial Monitor!
int x; // x axis variable
int y; // y axis variable
int z; // z axis variable
void setup()
{
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
void loop()
{
x = analogRead(5); // read A5 input pin
y = analogRead(4); // read A4 input pin
z = analogRead(3); // read A3 input pin
Serial.print("X = "); // print x adc value
Serial.println(x);
Serial.print("Y = "); // print y adc value
Serial.println(y);
Serial.print("Z = "); // print z adc value
Serial.println(z);
delay(100);
}