How to test the Adafruit mma8451 accelerometer breakout?

How to test the Adafruit mma8451 accelerometer breakout?

Open up File->Examples->Adafruit_MMA8451->MMA8451demo and upload to your Arduino wired up to the sensor ( Thats it! Now open up the serial terminal window at 9600 speed to begin the test.

What’s the I2C address for the Adafruit mma8451?

On an UNO & ‘328 based Arduino, this is also known as A4, on a Mega it is also known as digital 20 and on a Leonardo/Micro, digital 2 The MMA8451 has a default I2C address of 0x1D and can be changed to 0x1C by tying the A pin to GND Download Libraries

What is the sda-i2c data pin on an Adafruit accelerometer?

SCL – I2C clock pin, connect to your microcontrollers I2C clock line. SDA – I2C data pin, connect to your microcontrollers I2C data line. INT and ADDR Pins A is the I2C Address select pin. By default this is pulled up to 3.3V with a 10K resistor, for an I2C address of 0x1D.

Which is the most precise 14 bit accelerometer?

It’s designed for use in phones, tablets, smart watches, and more, but works just as well in your Arduino project. Of the MMA8451/MMA8452/MMA8453 family, the MMA8451 is the most precise with a built in 14-bit ADC.

Can a microcontroller be used as an accelerometer?

It has a wide usage range, from +-2g up to +-8g yet is easy to use with Arduino or another microcontroller The MMA8451 is a miniature little accelerometer from Freescale, who are (by this point) masters at the accelerometer-design game.

How to count the number of steps using the accelerometer?

For example, if you acceleration is expressed in m/s^2 and your sampling interval is 100ms, then scale the acceleration vector by 0.1 before adding it to the velocity vector. Likewise when accumulating velocity into distance.

How to use the mma8451 sensor in Python?

It’s easy to use the MMA8451 sensor with Python or CircuitPython, and the Adafruit CircuitPython MMA8451 module. This module allows you to easily write Python code that reads the acceleration and more from the sensor.