Triple Axis Accelerometer Module-MMA7341 Hookup Guide

Accelerometers are devices that measure acceleration, which is the rate of change of the velocity of an object. They measure in meters per second squared (m/s2) or in G-forces (g). A single G-force for us here on planet Earth is equivalent to 9.8 m/s2, but this does vary slightly with elevation (and will be a different value on different planets due to variations in gravitational pull). Accelerometers are useful for sensing vibrations in systems or for orientation applications. Accelerometers can measure acceleration on one, two, or three axis. 3-axis units are becoming more common as the cost of development for them decreases.

Rhydolabz’s  Triple Axis Accelerometer Module-MMA7341 Accelerometer module is based on the popular Freescale MMA7341 three-axis analog accelerometer IC, which reads off the X, Y and Z acceleration as analog voltages. By measuring the amount of acceleration due to gravity, an accelerometer can figure out the angle it is tilted at with respect to the earth. By sensing the amount of dynamic acceleration, the accelerometer can find out how fast and in what direction the device is moving. Using these two properties, you can make all sorts of cool projects, from musical instruments (imagine playing and having the tilt connected to the distortion level or the pitch-bend) to a velocity monitor on your car (or your children’s car). The accelerometer is very easy interface to an Arduino Micro-controller using 3 analog input pins, and can be used with most other micro controllers, such as the PIC or AVR.

Accelerometers with an analog interface show accelerations through varying voltage levels. These values generally fluctuate between ground and the supply voltage level. An ADC on a microcontroller can then be used to read this value. 

For most accelerometers, the basic connections required for operation are power and the communication lines.This is a Tri axis accelerometer board with on-board low dropout linear voltage regulator and all required components as per data-sheet. The sensor requires a very low amount of power and has a g-select input which switches the accelerometer between ±3g and ±11g measurement ranges. Other features include a sleep mode, signal conditioning, a 1-pole low pass filter, temperature compensation, self test, and 0g-detect which detects linear free-fall. Zero-g offset and sensitivity are factory set and require no external devices.

This breadboard friendly board breaks out every pin of the MMA7341L to a 9-pin, 0.1″ pitch header. The sensor works on power between 3.3V to 6VDC, yes offcourse 5V is inbetween !!. This wide power supply range helps you to use this module with ARM (3V3) based product as well as 5V Arduinos and PICs. All three axis have their own analog output with onboard low pass filter.

Module Features:

  • Two selectable measuring ranges (±3g, ±11g)
  • Tri Axis (X,Y,Z) Analog output
  • Onboard power LED
  • Onboard LDO Voltage Regulator
  • Onboard Signal conditioning with low pass filter
  • Breadboard friendly – 0.1″ pitch header
  • Low current consumption: 400 µA
  • Sleep mode: 3 µA
  • Low voltage operation: 3.3 V – 6 V
  • High sensitivity (800 mV/g at 1.5g)
  • Fast turn on time (0.5 ms enable response time)
  • Self test for freefall detect diagnosis
  • 0g-Detect for freefall protection
  • Robust design, high shocks survivability
  • Dimensions:  1″x 1″

Specifications:


PIN Diagram:

PIN details  of Triple Axis Accelerometer Module-MMA7341 is as  shown belowLayout:

 Note:-
Input voltage range (VCC) = 3.3V- 6V
All other pins are @ 3V only

Components details:

  • The capacitors used in Triple Axis Accelerometer Module-MMA7341 are given below.
    • C1,C2,C3 – Use 3.3nF capacitor on the outputs of the accelerometer to minimize clock noise (from the switched capacitor filter circuit)
    • C5 – Use 0.1 µF capacitor on VDD to decouple the power source
    • C6 – Cout for LP2985 voltage regulator. Minimum capacitor value (2.2µf) for stability (can be increased without limit for improved stability and transient response)
    • C7 & C8 – BYPASS capacitors for low-noise operation with values 10nF and 0.1 µF respectively.
    • C9 – Use 0.1 µF capacitor on VCC to decouple the power source
  • Jumper J1 – By shorting  J1 we can bypass on board regulator IC LP2985 ,its optional. In Rhydolabz’s MMA7341 board j1 is not connected.The input voltage range is 3.3V- 6V and MMA7341 IC needed only 3v, so we use voltage regulator circuit to convert 3.3V- 6V range to 3V.
  • LED D1 – A red led is used for power indication.
  • The resistors used in Triple Axis Accelerometer Module-MMA7341 are given below
    • R1 – Pull up resistor R1 is connected to D1.
    • R2 – Pull up resistor R2 is connected to SLP pin of MMA7341,which is an active low pin.
How to test:

1. Testing Triple Axis Accelerometer Module-MMA7341 using Arduino

Here is the guide illustrates how to connect an Arduino to the MMA7341 Triple Axis Accelerometer. The following is a table describing which pins on the Arduino should be connected to the pins on the accelerometer:

Note:-NC  stands for No Connection
Connect Triple Axis Accelerometer MMA7341 with Arduino as shown below.

Testing with Arduino board, sample program is shown below. Using this program we are reading output from X,Y and Z axis during vibration. 

Connect MMA7341 module with Arduino and upload the Arduino example code. Then open the serial monitor, MMA7341 will output the acceleration values on x, y and z axis as shown below.

2. Testing Triple Axis Accelerometer Module-MMA7341 using PIC16F877A

  When interfacing Triple Axis Accelerometer Module-MMA7341 with PIC16F877A  micro-controller, The X,Y,Z pins of the sensor is connected to Port A of the micro-controller. Here X,Y,Z pins are connected  to RA2, RA1, RA0 respectively. Connection diagram is shown below.

Testing Triple Axis Accelerometer Module-MMA7341  with PIC16F877A, sample program is shown below. Using this program we are reading output from X,Y and Z axis during vibration.

 When PIC16F877A micro-controller receives Triple Axis Accelerometer Module-MMA7341 datas and are displayed on serial monitor as shown below.


Resources
Schematic
MMA7341L Data Sheet

How to Buy:Click here to buy RhydoLABZ’s  Triple Axis Accelerometer Module-MMA7341

Support:Please share your ideas with us, visit our forum for discussion

Frequently Asked Questions(FAQ):Q.What is an accelerometer ?
Ans: An accelerometer is an electro-mechanical device that will measure acceleration forces. These forces may be static, like the constant force of gravity pulling at your feet, or they could be dynamic – caused by moving or vibrating the accelerometer.

Q.What is range of an accelerometer?
Ans: Range is the level of acceleration supported by the sensor’s output signal specifications, typically specified in ±g. This is the greatest amount of acceleration the part can measure and accurately represent as an output. For example, the output of a ±3g accelerometer is linear with acceleration up to ±3g. If it is accelerated at 4g, the output may rail. 

Q. why you are getting data even while the accelerometer is at rest?
Ans:The reading of the accelerometer when at rest is due to the zero g output (typically 2.5V, varies depending upon the accelerometer model you have). Consider a sensor in a steady state on a horizontal surface, will measure 0g in X axis and 0g in Y axis whereas the Z axis will measure 1g, this Z axis value is getting at output of the accelerometer. 

 Q.What is zero-g offset?
Ans: Zero-g level Offset (Off) describes the deviation of an actual output signal from the ideal output signal if there is no acceleration present. A sensor in a steady state on a horizontal surface will measure 0g in X axis and 0g in Y axis whereas the Z axis will measure 1g

Q.Where would you use an accelerometer?
Ans:There are a number of practical applications for accelerometers; accelerometers are used to measure static acceleration (gravity), tilt of an object, dynamic acceleration, shock to an object, velocity, orientation and the vibration of an object. Cell phones, computers and washing machines now contain accelerometers. Other practical applications include: Measuring the performance of an automobile, measuring the vibration of a machine, measuring the motions of a bridge, measuring how a package has been handled .

 


Leave a Reply