Live hookup chat

24-Feb-2018 00:30

Finally, you’ll need to solder a connector onto the MMA8452Q breakout.

If you’re using a breadboard to hook it up, we recommend straight male headers.

If it is motionless, flat on the desk, then an acceleration of 1g should be felt on the z-axis, while the others feel around 0.

Test the other axes by rotating the board and making them feel the pull of gravity.

The breakout board includes a jumper, on the back side, to help tie this pin high or low.

By default the jumper is open, which will pull the SA0 pin high (there’s a resistor on the top side of the board to help accomplish that task).

Here’s the hookup: We simply have to supply the accelerometer with power (3.3V and GND), then hookup the SCL and SDA lines between devices.

Live hookup chat-71Live hookup chat-2Live hookup chat-58

In the example hookup above, we used a pair of series resistors on the SDA and SCL lines.Once you’ve set your Board and Serial Port, upload the sketch to your Arduino. You’ll begin to see acceleration values stream by, in addition to some information about the sensor’s orientation.Try moving the sensor around to change those values.Fortunately, you don’t need a lot of power to make the MMA8452Q work.In normal operating mode it can require anywhere between 7 and 165 µA.

In the example hookup above, we used a pair of series resistors on the SDA and SCL lines.Once you’ve set your Board and Serial Port, upload the sketch to your Arduino. You’ll begin to see acceleration values stream by, in addition to some information about the sensor’s orientation.Try moving the sensor around to change those values.Fortunately, you don’t need a lot of power to make the MMA8452Q work.In normal operating mode it can require anywhere between 7 and 165 µA.Freescale’s MMA8452Q is a smart, low-power, three-axis, capacitive micro-machined accelerometer with 12 bits of resolution.