How To Use EIMU With Arduino
Learn how to test and integrate the Easy IMU (EIMU) in your Arduino project
Last updated
Learn how to test and integrate the Easy IMU (EIMU) in your Arduino project
Last updated
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.
if you download it, extract it and change the folder name to
eimu_arduino
Move the downloaded library file - eimu_arduino
- to your Arduino library folder
e.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.
Ensure you have calibrated and setup the EIMU I2C address following this .
Download the eimu_arduino I2C comm library from by clicking on the green Code button.