Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›ADXL335 and MMA7361 Analog Accelerometer Modules, ADXL327

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the ADXL335, MMA7361 and analog accelerometers isADXL335, MMA7361 and analog accelerometers pinoutWiring the ADXL335, MMA7361 and analog accelerometersExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

ADXL335, MMA7361 and analog accelerometers pinout

The pins on the ADXL335, MMA7361 and analog accelerometers and what each one does.

PinFunction
VCCSupply
GNDGround
X / Y / ZAnalog outputs
STSelf-test
GS / SLRange select and sleep (MMA7361)
PinFunction
VCC
Supply
GND
Ground
X / Y / Z
Analog outputs
ST
Self-test
GS / SL
Range select and sleep (MMA7361)
03

Wiring the ADXL335, MMA7361 and analog accelerometers

Connect the ADXL335, MMA7361 and analog accelerometers like this.

ADXL335, MMA7361 and analog accelerometers pinArduino UnoESP32
VCC3.3 V3V3
GNDGNDGND
XA0GPIO 34
YA1GPIO 35
ZA2GPIO 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
04

Example code

Calibrate each axis; the ADXL375 is digital and uses the Adafruit ADXL375 library instead.

Read an ADXL335 in g · Arduino C++Verify & upload in Electrolark
// 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);
}
05

Setup and tuning

Supply

power the ADXL335 at 3.3 V. On an Uno, connect AREF to 3.3 V and call analogReference(EXTERNAL) for better resolution.

Find zero g

read each axis while the board lies flat and still; that is the zero-g value (about half the supply).

Scale

the ADXL335 changes about 300 mV per g at 3 V, so subtract zero g and divide by the sensitivity to get g.

Filter

add 0.1 µF capacitors on the outputs or average readings to reduce noise.

Tilt angle

use atan2 on two axes to get tilt; it only works while the sensor is not accelerating.

06

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
07

Alternatives and when to choose them

  • ✓ADXL345: digital, more features.
  • ✓MMA8452Q: digital, simple.
  • ✓Industrial vibration sensors: for machines.
08

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.
09

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

  • ADXL335 3-Axis Analog Accelerometer Sensor Module
    ₹599View
  • MMA7361 3-Axis Low-g Accelerometer Module – 1.5g/6g Selectable Range, 5V/3.3V Compatible
    ₹659View
  • Analog Devices ADXL327BCPZ-RL7 LFCSP-16 3-Axis Analog Accelerometer
    ₹506View
  • Analog Devices ADXL1002BCPZ-RL7 LFCSP-32 High-Bandwidth Accelerometer
    ₹4,257View
  • ADXL375 3-Axis Digital Accelerometer Module – ±200g Range, SPI/I2C Interface
    ₹1,649View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Digital Multimeter
    ₹177View
Shop Accelerometers, Gyroscopes & IMUs

Projects that use it

Put this into practice: 2 step-by-step builds in our project library use parts from this guide.

Intermediate · 1–2 hoursDigital spirit levelView projectBeginner · 45 minutesAccelerometer explorerView project
Browse all 2 projects

Keep learning

Component guideBeginnerADXL345 AccelerometerThe ADXL345 is a low-power 3-axis digital accelerometer from Analog Devices with ranges of ±2 to ±16 g.3 min read · SensorsComparisonIntermediateAccelerometersAn accelerometer measures acceleration along three axes, which lets you detect tilt, taps, free fall and vibration.3 min read · SensorsComponent guideBeginnerVibration, Shock and Tilt Sensors (SW-420, SW-520D)Vibration and tilt sensors are simple switches that close or open when shaken or tilted.3 min read · Sensors

Sources

  • Analog Devices ADXL335 datasheet
  • NXP MMA7361 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the ADXL335, MMA7361 and analog accelerometers isADXL335, MMA7361 and analog accelerometers pinoutWiring the ADXL335, MMA7361 and analog accelerometersExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)3 items · ₹980

ADXL335 3-Axis Analog Accelerometer Sensor Module · Digital Multimeter · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Lying flat, z reads about +1 g. Tilt the board to move gravity into x or y.

Serial monitor115200 baud
x -0.01 g  y -0.01 g  z 1.00 g

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question