Component guide · Beginner · 3 min read
ADXL335 and MMA7361 Analog Accelerometer Modules, ADXL327

ADXL1002 Vibration and ADXL375 High-g Accelerometers
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The ADXL335 and MMA7361 output one voltage per axis, so you read them with analogRead and no library. At rest the output sits near half the supply and changes by about 300 mV per g on the ADXL335. The ADXL327 is a ±2 g version, the ADXL1002 a wide-bandwidth vibration sensor, and the ADXL375 a ±200 g digital sensor for impacts.
Key specs at a glance
- Range
- ±3 g (ADXL335), ±1.5 or 6 g (MMA7361), ±50 g (ADXL1002), ±200 g (ADXL375)
- Output
- Analog voltage per axis (ADXL375 is I2C/SPI)
- Sensitivity
- About 300 mV/g at 3 V (ADXL335)
- Supply
- 3.3 V (modules often accept 5 V)
- Bandwidth
- Up to 1.6 kHz (X/Y on ADXL335), 11 kHz (ADXL1002)
- Zero g
- About half the supply
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1ADXL335 3-Axis Analog Accelerometer Sensor Module₹599
Option 2MMA7361 3-Axis Low-g Accelerometer Module – 1.5g/6g Selectable Range, 5V/3.3V Compatible₹659
Option 3Analog Devices ADXL327BCPZ-RL7 LFCSP-16 3-Axis Analog Accelerometer₹506
Option 4Analog Devices ADXL1002BCPZ-RL7 LFCSP-32 High-Bandwidth Accelerometer₹4,257
Option 5ADXL375 3-Axis Digital Accelerometer Module – ±200g Range, SPI/I2C Interface₹1,649
What the ADXL335, MMA7361 and analog accelerometers is
The ADXL335 and MMA7361 are three-axis accelerometers that output one analog voltage per axis, so an Arduino reads tilt and acceleration with plain analogRead.
Analog accelerometers are ratiometric: zero g and sensitivity scale with the supply. Feed the ADC reference from the same 3.3 V for steady readings.
Calibrate each axis by turning the board to +1 g and -1 g and recording the readings.
ADXL335, MMA7361 and analog accelerometers pinout
The pins on the ADXL335, MMA7361 and analog accelerometers and what each one does.
| Pin | Function |
|---|---|
| VCC | Supply |
| GND | Ground |
| X / Y / Z | Analog outputs |
| ST | Self-test |
| GS / SL | Range select and sleep (MMA7361) |
- VCC
- Supply
- GND
- Ground
- X / Y / Z
- Analog outputs
- ST
- Self-test
- GS / SL
- Range select and sleep (MMA7361)
Wiring the ADXL335, MMA7361 and analog accelerometers
Connect the ADXL335, MMA7361 and analog accelerometers like this.
| ADXL335, MMA7361 and analog accelerometers pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 3.3 V | 3V3 |
| GND | GND | GND |
| X | A0 | GPIO 34 |
| Y | A1 | GPIO 35 |
| Z | A2 | GPIO 32 |
| SL (MMA7361) | 3.3 V (awake) | 3V3 |
- VCC
- Arduino Uno:
- 3.3 V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- X
- Arduino Uno:
- A0
- ESP32:
- GPIO 34
- Y
- Arduino Uno:
- A1
- ESP32:
- GPIO 35
- Z
- Arduino Uno:
- A2
- ESP32:
- GPIO 32
- SL (MMA7361)
- Arduino Uno:
- 3.3 V (awake)
- ESP32:
- 3V3
Example code
Calibrate each axis; the ADXL375 is digital and uses the Adafruit ADXL375 library instead.
// Calibrate: replace ZERO and SCALE with your own +1 g / -1 g readings
const int PX = A0, PY = A1, PZ = A2;
const float ZERO = 512, SCALE = 102; // counts per g at 3.3 V supply and 3.3 V AREF
void setup() {
Serial.begin(115200);
analogReference(EXTERNAL); // Uno: wire 3.3 V to AREF. ESP32: remove this line and recalibrate
}
void loop() {
float x = (analogRead(PX) - ZERO) / SCALE;
float y = (analogRead(PY) - ZERO) / SCALE;
float z = (analogRead(PZ) - ZERO) / SCALE;
Serial.printf("x %.2f g y %.2f g z %.2f g\n", x, y, z);
delay(100);
}Setup and tuning
power the ADXL335 at 3.3 V. On an Uno, connect AREF to 3.3 V and call analogReference(EXTERNAL) for better resolution.
read each axis while the board lies flat and still; that is the zero-g value (about half the supply).
the ADXL335 changes about 300 mV per g at 3 V, so subtract zero g and divide by the sensitivity to get g.
add 0.1 µF capacitors on the outputs or average readings to reduce noise.
use atan2 on two axes to get tilt; it only works while the sensor is not accelerating.
What you need
Shop this list7 of 8 found in our store · ₹8,236
ADXL335 3-Axis Analog Accelerometer Sensor Module: the part this guide coversADXL335 3-Axis Analog Accelerometer Sensor Module₹599
MMA7361 3-Axis Low-g Accelerometer Module – 1.5g/6g Selectable Range, 5V/3.3V Compatible: another version this guide coversMMA7361 3-Axis Low-g Accelerometer Module – 1.5g/6g Selectable Range, 5V/3.3V Compatible₹659
Analog Devices ADXL327BCPZ-RL7 LFCSP-16 3-Axis Analog Accelerometer: another version this guide coversAnalog Devices ADXL327BCPZ-RL7 LFCSP-16 3-Axis Analog Accelerometer₹506
Analog Devices ADXL1002BCPZ-RL7 LFCSP-32 High-Bandwidth Accelerometer: another version this guide coversAnalog Devices ADXL1002BCPZ-RL7 LFCSP-32 High-Bandwidth Accelerometer₹4,257
ADXL375 3-Axis Digital Accelerometer Module – ±200g Range, SPI/I2C Interface: another version this guide coversADXL375 3-Axis Digital Accelerometer Module – ±200g Range, SPI/I2C Interface₹1,649- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- ADXL345: digital, more features.
- MMA8452Q: digital, simple.
- Industrial vibration sensors: for machines.
Common mistakes to avoid
- Powering a bare ADXL335 board at 5 V when it has no regulator.
- Assuming zero g is exactly 512 instead of calibrating it.
- Calculating tilt while the sensor is accelerating.
- Reading the outputs on ESP32 ADC2 pins while Wi-Fi is on.
Frequently asked questions
Do I need a library for the ADXL335?
No. Each axis is a voltage, so analogRead and a simple calculation give acceleration in g.
Can the ADXL335 measure rotation speed?
No. It measures acceleration and tilt. Use a gyroscope or an IMU such as the MPU6050 for rotation rate.
Why are my readings different on each axis at rest?
Each axis has its own zero-g offset. Calibrate each axis separately with the board flat and on its side.
Will it work with an ESP32?
Yes. Power it at 3.3 V and read the three outputs on ADC1 pins, which work while Wi-Fi is on.
Which part should I use for impact testing?
The ADXL375 measures up to 200 g, so it suits crashes and impacts that would saturate the ADXL335.
Parts for this guide
Projects that use it
Put this into practice: 2 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

