{"repo":"aler9/sensor-imu","free":true,"listed":false,"github":"https://github.com/aler9/sensor-imu","clone":"git clone https://github.com/aler9/sensor-imu.git","description":"C library to interact with various IMUs (MPU6000, MPU6050, MPU6500, ICM20600, ICM20601, ICM2062)","language":"C","stars":30,"topics":["imu","mpu6000","mpu6050","mpu6500","icm20600","icm20601","icm20602","raspberry-pi"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"sensor-imu C library to interact with various IMUs (MPU6000, MPU6050, MPU6500, ICM20600, ICM20601, ICM2062). It was written for the raspberry-imu-viewer project, an orientation viewer in 3D for the Raspberry Pi, where you can also find a working example on how to use this library. Features: works with Raspberry Pi / Linux and probably with almost every single-board computer equipped with I2C IMU model and address are autodetected during initialization sampling rate can reach 1khz (when I2C speed is 400khz) orientation estimation algorithms are available in folder /orientation Installation 1. On the Raspberry Pi, enable I2C and set speed to 400khz: edit /boot/config.txt and add: then edit /etc/modules and add then reboot the system. 2. Install the dependencies: 3. Clone this repository: 4. Create a sample source file named main.c : 5. Build: 6. Launch: API Documentation Creates an IMU reader. Arguments a pointer to an empty imut object, the path to the I2C device, the accelerometer range and the gyroscope range. It returns NULL in case of success, otherwise returns an error. Destroys an IMU reader. Performs a measurement. Returns an imu output that contains the measurements. Accelerometer measurements are expressed in [g], while gyroscope measurements are expressed in [deg/s] Links raspberry-imu-viewer","default_branch":null,"files":null,"tree":[],"storefront":"/r/aler9","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aler9/sensor-imu/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}