The BMA400 is an ultra-low power acceleration sensor from Bosch Sensortec, with a maximum current consumption of 14 µA. The output data rate ranges from 12.5 Hz to 800 Hz and the measurement range varies from ±2 g up to ±16 g. The BMA400 senses tilt, orientation, tab/double tab and enables step counting.
Here are the board's main features:
The first step with the BMA400 Accelerometer Sensor is to solder the 8 pin header that comes along with the board. The easiest way to solder the board is to insert the header into a breadboard (long pins down) and solder the short pins to the board.
Connecting the BMA400 on the I2C bus is very easy. The first step is to connect the board to the power supply.
Great! Now we need to connect the sensor to the I2C bus. The I2C communication uses basically two wires. The clock signal is generated by the Arduino and transferred to the sensor through the SCL line. The Arduino can send commands to the sensor using the SDA line. Just as well, all data from the sensor goes back to the Arduino through the SDA line. Because of that, the SDA line is bidirectional.
The easiest way to start using your BME400 sensor is to download and install the BlueDot BMA400 Library for Arduino. Just open the Arduino IDE and go to Sketch > Include Library > Manage Libraries... and search for the BlueDot BMA400 Library on the Library Manager.
Alternatively, you can download the latest version of the library from their Github repository.
xkcd.com
After installing the library we can open an example sketch. Just go to File > Examples > BMA400 and open the sketch BlueDot_BMA400_Test.
No changes are needed to run the sketch. Please note that the baud rate is set to 115200 per default.
xkcd.com
xkcd.com