Welcome to the BMI055 C++ Library, a tool for interfacing with the BMI055 sensor. The BMI055 combines an accelerometer and a gyroscope, and this library simplifies communication, data reading, and calibration. It provides support for SPI (and later I2C interfaces).
The BMI055 sensor is a versatile device used in various applications, including robotics, drones, and motion tracking. This library offers an easy way to harness its capabilities within your C++ projects.
- Initialization: Easily initialize the BMI055 sensor for quick integration.
- Data Reading: Retrieve accelerometer and gyroscope data with minimal effort.
- Calibration: Perform sensor calibration to ensure accurate readings.
To incorporate this library into your project, simply clone the repository:
git clone https://github.com/tritri0903/BMI055.git
Using the BMI055 C++ Library is straightforward:
- Include the library's header files.
- Create instances of the
BMI055
class for both the accelerometer and gyroscope. - Utilize the library's functions to initialize the sensors, read data from registers, and perform calibration.
- Begin your application code using the data collected.
#include "BMI055.h"
// Create instances for accelerometer and gyroscope
BMI055 accel;
BMI055 gyro;
void setup() {
// Initialize the sensors
accel.begin(SPI_CLK, SPI_MOSI, SPI_MISO, SPI_ACC_NSC, SPI_CLK_FREQ);
gyro.begin(SPI_CLK, SPI_MOSI, SPI_MISO, SPI_ACC_NSC, SPI_CLK_FREQ);
}
void loop() {
// Read accelerometer and gyroscope data
Still in work
// Perform your desired operations with the data
}
For comprehensive documentation detailing the library's functions and classes, please refer to the API documentation (documentation not available yet).
Link to the paper used for the calibration technique.