How To Use EIMU With Arduino
Learn how to test and integrate the Easy IMU (EIMU) in your Arduino project

EIMU Module I2C Connection Overview
When using the EIMU with I2C, you’ll need to power it from its 5V input port, while the 5V3 pin of the EIMU I2C port will be connected to the Arduino-based microcontroller power for reference during I2C communication.
For example, if it is connected to an ESP32 microcontroller, the 5V3 pin of the EIMU I2C port will be connected to the ESP32 3.3v power (while the EIMU power port will use 5V).

Also, if it is connected to an Arduino UNO, MEGA, or NANO, the 5V3 pin of the EIMU I2C port will be connected to the Arduino microcontroller’s 5V power (the EIMU power port will still use 5V, most likely also from the microcontroller also).

Don’t forget to ensure the EIMU and the Arduino-based microcontroller are connected to a common ground.
EIMU Arduino Test Code - Read RPY
Ensure you have calibrated and setup the EIMU I2C address following this tutorial.
Download the eimu_arduino I2C comm library from here by clicking on the green Code button.
if you download it, extract it and change the folder name to
eimu_arduinoMove the downloaded library file -
eimu_arduino- to your Arduino library foldere.g on linux: ... home/Arduino/libraries/
e.g on windows: ... Documents/Arduino/libraries/
(or any where your arduino libraries are stored)
restart your ArduinoIDE and copy this example code into your project to test the EIMU Module (feel free to modify it to your taste).
read_rpy.ino
read output from serial monitor.
adjust the code to your taste and use.

Last updated