Contents
- I. Module Introduction
- II. Introduction to Main Chips
- 2.1 Chip Overview
- 2.2 Pin Definition
- 2.3 Functional Block Diagram
- 2.4 Performance Parameters
- 2.5 Reference Circuit
- 2.6 Chip Configuration
- 2.7 Communication Interfaces and Related Protocols
- 2.8 PCB Routing Notes
- III. Circuit Engineering
- 3.1 Circuit Source Engineering
- 3.2 Module Usage Instructions
- 3.3 Application Experiment
- IV. Drivers
- 5. BOM & Recommended Alternative Parts
- 6. Revision History
- VII. Relevant Materials
- 7.1 Chip Datasheet
- 7.2 Unique Icons for PCB Silk Screen


I. Module Introduction
Triaxial acceleration module based on MMA8451, which adopts the MMA8451 chip solution, is a low-power triaxial capacitive MEMS Acceleration Sensor, featuring 14-bit high resolution and 8-bit fast read mode, supports three adjustable measurement ranges of ±2g/±4g/±8g, the output data rate can be configured between 1.56Hz and 800Hz, and has a built-in 32-sample FIFO buffer and automatic wake-up/sleep function;The module integrates LDO voltage regulation, power filtering and I²C pull-up circuits. The device address can be configured via the ADDR pin. It is equipped with a power indicator, compatible with 3.3V level MCU, and suitable for scenarios such as high-precision motion detection, attitude sensing and low-power inertial monitoring.
II. Introduction to Main Chips
MMA8451 is a low-power triaxial capacitive MEMS Acceleration Sensor that supports ±2g/±4g/±8g measurement ranges, features 14-bit high resolution and 8-bit fast read mode, offers a maximum output data rate of 800Hz, has a built-in 32-sample FIFO and auto-wake function, and is suitable for high-precision motion detection scenarios.
2.1 Chip Overview

MMA8451Q is a NXP -launched intelligent low-power three-axis capacitive MEMS Acceleration Sensor, which adopts a 16-pin QFN package (3×3×1mm), with a supply voltage of 1.95~3.6V and an interface voltage of 1.6~3.6V;It supports dynamic ranges of ±2g/±4g/±8g, 14-bit/8-bit digital output, output data rates ranging from 1.56Hz to 800Hz, and a noise density of 99μg/√Hz, with a built-in 32-sample FIFO, a high-pass filter and self-test function. It features two programmable interrupt pins, automatic wake-up/sleep functionality, and a current consumption of 6~165μA, making it suitable for applications such as electronic compasses, attitude detection, free-fall detection, step counting and vibration monitoring.
2.2 Pin Definition


MMA8451Q is a 16-pin QFN packaged chip, whose core pins include power supply VDD (1.95~3.6V), interface power supply VDDIO (1.62~3.6V), I²C clock SCL, I²C data SDA, address configuration SA0 (which determines the I²C address as 0x1C / 0x1D), two programmable interrupt pins INT1 / INT2, and multiple ground pins GND; the BYP pin needs to be connected to a 0.1μF bypass capacitor, and the DNC and NC pins must be left floating;It is recommended to place a decoupling capacitor close to the power supply terminal, SCL / SDA are open-drain outputs requiring an external pull-up resistor, and the voltage of the control signal shall not exceed VDDIO + 0.3V.
2.3 Functional Block Diagram

MMA8451Q operates as follows: X / Y / Z three-axis capacitive transducers acquire acceleration signals, which are converted into analog signals by a capacitance-to-voltage converter, digitized by a 14-bit ADC, and then sent to the embedded DSP module for processing;This module integrates a 32-point configurable FIFO buffer, free-fall/motion detection, transient detection, orientation recognition, vibration detection and tap detection functions, and can output event signals via the programmable interrupt pins INT1 / INT2. It also supports automatic wake-up/sleep mode to reduce power consumption. The finally processed data communicates with the host through the I²C interface, the internal clock is provided by an on-chip oscillator, and the whole can switch among multiple operating modes such as low power consumption, low noise and high resolution.
2.4 Performance Parameters


MMA8451Q operates under the conditions of VDD = 2.5V, VDDIO = 1.8V and 25°C, supporting three measurement ranges of ±2g/±4g/±8g, with corresponding sensitivities of 4096/2048/1024 counts/g respectively, a sensitivity accuracy of ±2.64%, a zero-g offset accuracy of ±17mg (±20mg after mounting), an output noise as low as 99μg/√Hz (in low-noise mode), and an operating temperature range of -40°C to + 85°C; it also provides parameters such as sensitivity temperature drift, self-test output variation, and ODR accuracy.

MMA8451Q in the absolute maximum ratings and ESD protection characteristic table, the points requiring special attention are: its maximum acceleration tolerance is 5000g, VDD withstand voltage is -0.3~3.6V, input voltage range of control pins is -0.3~ VDDIO + 0.3V, operating temperature is -40~+ 85℃, storage temperature is -40~+ 125℃, ESD protection reaches HBM ±2000V, MM ±200V, CDM ±500V; meanwhile, it is indicated that this device is sensitive to mechanical shock and ESD, and ultrasonic cleaning is not recommended.
2.5 Reference Circuit

MMA8451Q typical application circuit is described as follows: VDD is connected to a 1.95~3.6V power supply with a 4.7μF decoupling capacitor, VDDIO is connected to a 1.6~3.6V interface power supply with a 0.1μF bypass capacitor, BYP pin is connected to a 0.1μF capacitor, SCL / SDA pins are each connected to a 4.7kΩ pull-up resistor, INT1 / INT2 serve as interrupt outputs, SA0 is used to configure the I²C address, DNC and NC pins are left floating.
2.6 Chip Configuration
None.
2.7 Communication Interfaces and Related Protocols


MMA8451Q uses the I²C serial interface to access registers and acceleration data, and is compatible with both the 100kHz standard mode and 400kHz fast mode. SDA / SCL require external pull-up resistors, and the device address can be configured via the SA0 pin to either 0x1C or 0x1D. It supports programmable interrupt outputs for data ready, motion, free fall and other events, simplifying system data synchronization.


MMA8451Q I²C single-byte/multi-byte read and write operation timings are specified as follows: single-byte read and write shall follow the standard sequence of start, address, register/data, acknowledge, and stop; during multi-byte read and write, the chip will automatically increment the register address, and the host shall send a NAK as the acknowledge for the last byte when receiving multi-byte data. Meanwhile, the table clarifies the read and write address sequence of SA0 pin corresponding to 0x1C / 0x1D, and the waveform diagram visually demonstrates the signal interaction logic between the master and slave devices at each stage.
2.8 PCB Routing Notes

MMA8451Q PCB Layout and Component Mounting Guide specifies the following: the core requirements include not soldering the bottom exposed pad, not covering the pad with solder mask, no additional vias/metal under the package, and components/vias shall be at least 2mm away from the pad area, signal traces shall be as symmetrical as possible, standard mounting process shall be adopted (hand soldering is prohibited), the PCB must withstand 260°C lead-free reflow soldering; it also notes that stress on the PCB caused by screw holes/press-fit structures shall be avoided, and the component is compatible with both Sn-Pb and Sn-Ag-Cu solder paste processes.
III. Circuit Engineering
3.1 Circuit Source Engineering
To obtain the circuit source project, please follow the official account [Freak Embedded].
3.2 Module Usage Instructions
The schematic diagram of this module is shown below:
SCH_Three-Axis Accelerometer Module Based on MMA8451-V1.0.0_2026-03-30.pdf 2.2 MB

This module provides an I²C communication interface: it supports standard-mode and fast-mode I²C communication, the device address can be configured via the ADDR pin as either 0x1C or 0x1D, and it is compatible with 3.3V level MCUs;The module integrates LDO voltage regulator, power filtering and I²C pull-up circuits, and is equipped with a power indicator. It can achieve high-precision acceleration detection with ranges of ±2g/±4g/±8g, and has a built-in 32-sample FIFO as well as automatic wake-up/sleep functions. It is suitable for scenarios such as motion detection, attitude sensing and low-power inertial monitoring, providing the system with stable and reliable acceleration sensing and data interaction capabilities.
3.3 Application Experiment
Here, we use the GraftPort-RP2040 development board for testing, and the MMA8451-based three-axis acceleration module uses the I2C interface to communicate with the main controller.
Here, we first use the HY2.0-4P connection cable to connect the module to the GraftPort-RP2040 development board's I2C0 interface:

The module connections are shown in the following table:
Development Board Pins | Module Pins | Description |
Pin 4 |
|
|
Pin 5 |
|
|
Here, we need to search for the relevant driver packages on uPyPI: https://upypi.net/zh/

Enter mma8451_driver to search, and the following will be displayed:

Click to copy the local installation command:

Import the module driver library code via the mip tool. Below are the usage commands for the mpremote tool:
mpremote mip install https://upypi.net/pkgs/mma8451_driver/1.0.0Import the MicroPython driver code for the MMA8451-based 3-axis acceleration module, then copy the following main.py code into our project:
# Python env : MicroPython v1.23.0
# -*- coding: utf-8 -*-
# @Time : 2025/9/8 4:52 PM
# @Author : hogeiha
# @File : main.py
# @Description : MMA8451 accelerometer example program
# ======================================== Import Modules =========================================
import time
from machine import Pin, I2C
from micropython_mma8451 import mma8451
# ======================================== Global Variables ============================================
# I2C bus number; on the RP2040, I2C0 corresponds to GPIO4 (SDA)/GPIO5 (SCL)
I2C_BUS_ID = 0
# I2C clock line pin
I2C_SCL_PIN = 5
# I2C data line pin
I2C_SDA_PIN = 4
# I2C communication frequency, set to 400kHz
I2C_FREQ = 400000
# Automatically identify the sensor address, define a global target address list (supports multiple addresses; use [] even for a single one)
TARGET_SENSOR_ADDRS = [0x1C,0x1D]
# ======================================== Functions ============================================
# ======================================== Custom Classes ============================================
# ======================================== Initialization configuration ===========================================
# System startup delay to ensure the peripherals are stable
time.sleep(3)
print("FreakStudio: MMA8451 sensor initialization")
# I2C initialization (compatible with I2C/SoftI2C)
i2c_bus = I2C(I2C_BUS_ID, scl=Pin(I2C_SCL_PIN), sda=Pin(I2C_SDA_PIN), freq=I2C_FREQ)
# Start scanning for devices on the I2C bus
devices_list: list[int] = i2c_bus.scan()
print("START I2C SCANNER")
# Check the I2C device scan result
if len(devices_list) == 0:
print("No i2c device !")
raise SystemExit("I2C scan found no devices, program exited")
else:
print("i2c devices found:", len(devices_list))
# Iterate over the address list to initialize the target sensor
mma = None # Placeholder for the sensor object initialization
for device in devices_list:
if device in TARGET_SENSOR_ADDRS:
print("I2c hexadecimal address:", hex(device))
try:
# Automatically identify and initialize the corresponding sensor
mma = mma8451.MMA8451(i2c=i2c_bus, address=device)
print("Sensor initialization successful")
break
except Exception as e:
print(f"Sensor Initialization failed: {e}")
continue
else:
# Target device not found, raise an exception
raise Exception("No target sensor device found in I2C bus")
# Set the sensor data output rate to 800Hz
mma.data_rate = mma8451.DATARATE_800HZ
# ======================================== Main Program ============================================
# Infinite loop: switch the data rate in turn and read the acceleration values
while True:
for data_rate in mma8451.data_rate_values:
print("Current Data rate setting: ", mma.data_rate)
# Read 10 times in a row at each rate
for _ in range(10):
accx, accy, accz = mma.acceleration
print(f"Acceleration: X={accx:0.1f}m/s^2 y={accy:0.1f}m/s^2 z={accz:0.1f}m/s^2")
print()
time.sleep(0.5)
# Switch to the next data rate
mma.data_rate = data_rateBurn the code, open the terminal, and the output is as follows:

It can be seen that the data rate can be cyclically switched normally, and the three-axis acceleration data can be printed out.
IV. Drivers
mma8451_driver-1.0.1.zip 14 KB
5. BOM & Recommended Alternative Parts
None.
6. Revision History
Document Version | Date of Revision | Modifier | Modified Content |
v1.0 | 2026-03-30 | Ling Gaoxing | Initialize the document |
v1.0.1 | 2026-04-07 | Li Zisheng | The homepage photo has not been taken, the production files have not been exported yet, and all other items have been sorted out completely. |
v1.0.2 | 2026-04-21 | Li Zisheng | The production documents have not been exported yet, while all the others have been sorted out completely. |
v1.1 | 2026-04-23 | Xin Ruili | Create an open version of the document, based on the internal document version v1.0.2. |
VII. Relevant Materials
7.1 Chip Datasheet
MMA8451Q.pdf 942 KB
7.2 Unique Icons for PCB Silk Screen
