All Projects → aler9 → sensor-imu

aler9 / sensor-imu

Licence: MIT license
C library to interact with various IMUs (MPU6000, MPU6050, MPU6500, ICM20600, ICM20601, ICM2062)

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to sensor-imu

MPU60X0
Fast, Lightweight STM32 I2C HAL Driver for the MPU6000/MPU6050 IMU
Stars: ✭ 15 (-6.25%)
Mutual labels:  imu, mpu6050, mpu6000
CodeDroneDIY
The most simple, but working, quadricopter flight controller from scratch, using Arduino Uno/Nano.
Stars: ✭ 68 (+325%)
Mutual labels:  imu, mpu6050
DeepLIO
Deep Lidar Inertial Odometry
Stars: ✭ 46 (+187.5%)
Mutual labels:  imu
IMU-VR-Full-Body-Tracker
Inertial Measurement Unit (IMU) based full body tracker for Steam VR.
Stars: ✭ 46 (+187.5%)
Mutual labels:  imu
imu 3dm gx4
Driver for Lord Corporation Microstrain 3DM GX4 25
Stars: ✭ 31 (+93.75%)
Mutual labels:  imu
radmap point clouds
Preprocessing, coordinate frame calibration, configuration files, and launching procedure used to generate point clouds with Google Cartographer for the RadMAP acquisition system. The RadMAP acquisition system consists of two LIDARS, differential GPS, two Ladybug 360 cameras, and an IMU.
Stars: ✭ 26 (+62.5%)
Mutual labels:  imu
X360Advance
External Arduino gyroscope & pedals for any Xbox compatible gamepads / Внешний Arduino гироскоп и педали для Xbox совместимых геймпадов
Stars: ✭ 35 (+118.75%)
Mutual labels:  mpu6050
Map Based Visual Localization
A general framework for map-based visual localization. It contains 1) Map Generation which support traditional features or deeplearning features. 2) Hierarchical-Localizationvisual in visual(points or line) map. 3)Fusion framework with IMU, wheel odom and GPS sensors.
Stars: ✭ 229 (+1331.25%)
Mutual labels:  imu
microstrain inertial
ROS driver for all of MicroStrain's current G and C series products. To learn more visit
Stars: ✭ 44 (+175%)
Mutual labels:  imu
SlimeVR-Server
Server app for SlimeVR ecosystem
Stars: ✭ 361 (+2156.25%)
Mutual labels:  imu
MPU6050 light
Lightweight, fast and simple library to communicate with the MPU6050
Stars: ✭ 73 (+356.25%)
Mutual labels:  mpu6050
Awesome-Human-Activity-Recognition
An up-to-date & curated list of Awesome IMU-based Human Activity Recognition(Ubiquitous Computing) papers, methods & resources. Please note that most of the collections of researches are mainly based on IMU data.
Stars: ✭ 72 (+350%)
Mutual labels:  imu
OpenCVB
OpenCV .Net application supporting several RGBD cameras - Kinect, Intel RealSense, Luxonis Oak-D, Mynt Eye D 1000, and StereoLabs ZED 2
Stars: ✭ 60 (+275%)
Mutual labels:  imu
Balance-Bot
A two-wheel self-balancing robot based on the ATmega2560 micro-controller.
Stars: ✭ 33 (+106.25%)
Mutual labels:  imu
hoverboard-sideboard-hack-GD
Hoverboard sideboard hack for GD32 boards
Stars: ✭ 68 (+325%)
Mutual labels:  imu
rtimulib ros
A small package to use the RTIMULib in ROS
Stars: ✭ 28 (+75%)
Mutual labels:  imu
Smartimu
Inertial Sensor Development Kit,STM32F411C、NRF52810、MPU9250、LPS22HB
Stars: ✭ 231 (+1343.75%)
Mutual labels:  imu
belaonurhead
Bela On Ur Head - head-tracking for binaural audio with Bela
Stars: ✭ 22 (+37.5%)
Mutual labels:  imu
ESP32 IMU BARO GPS VARIO
GPS altimeter/variometer with LCD display, routes with waypoints, data/gps track logging, bluetooth NMEA sentence transmission, wifi AP + webpage configuration
Stars: ✭ 72 (+350%)
Mutual labels:  imu
pymetawear
Community developed SDK around the Python bindings for the C++ SDK
Stars: ✭ 42 (+162.5%)
Mutual labels:  imu

sensor-imu

Lint Test

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:

    dtparam=i2c_arm=on
    dtparam=i2c_arm_baudrate=400000
    

    then edit /etc/modules and add

    i2c-dev
    

    then reboot the system.

  2. Install the dependencies:

    sudo apt install -y git make gcc libc6-dev libi2c-dev
    
  3. Clone this repository:

    git clone https://github.com/aler9/sensor-imu
    
  4. Create a sample source file named main.c:

    #include <stdio.h>
    #include <stdlib.h>
    
    #include "sensor-imu/imu.h"
    
    int main() {
        imut *imu;
        error *err = imu_init(&imu, "/dev/i2c-1", IMU_ACC_RANGE_2G, IMU_GYRO_RANGE_250DPS);
        if(err != NULL) {
            printf("ERR: %s\n", err);
            return -1;
        }
    
        imu_output io;
        err = imu_read(imu, &io);
        if(err != NULL) {
            printf("ERR: %s\n", err);
            return -1;
        }
    
        printf("gyro x,y,z: %f, %f, %f\n", io.gyro.x, io.gyro.y, io.gyro.z);
        printf("acc x,y,z: %f, %f, %f\n", io.acc.x, io.acc.y, io.acc.z);
        return 0;
    }
  5. Build:

    gcc -o main sensor-imu/*.c main.c
    
  6. Launch:

    ./main
    

API Documentation

error *imu_init(imut **pobj, const char *path, imu_acc_range acc_range, imu_gyro_range gyro_range)

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.

void imu_destroy(imut *obj)

Destroys an IMU reader.

error *imu_read(imut *obj, imu_output *out)

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].