Skip to content

DaviBaechtold/Arduino-IMU-Angle-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino IMU Angle Visualizer

This project enables real-time reading, transmission, and visualization of IMU sensor data (accelerometer and gyroscope) from an Arduino, with graphical visualization in Python.

Features

  • Reads accelerometer and gyroscope data via Arduino (C++ code).
  • Transmits data over serial port at high speed (1 Mbps).
  • Decodes, filters (Kalman), and visualizes angles (pitch and roll) in Python.
  • 3D visualization of Arduino orientation and real-time angle plots.

Project Structure

  • banco_angulo.ino: Arduino code for IMU data acquisition and transmission.
  • banco_angulo.py: Python script for reading, filtering, and visualizing the data.
  • requirements.txt: Required Python dependencies.
  • setup.sh: Script to create a virtual environment and install dependencies.
  • LICENSE: MIT License.

Installation

1. Arduino

  • Upload the banco_angulo.ino file to an Arduino Nano 33 BLE Sense (or another compatible IMU board).
  • Make sure to install the Arduino_LSM6DSOX library in the Arduino IDE.

2. Python Environment

On Linux:

cd /path/to/voice-assistant-arduino
bash setup.sh
source .venv/bin/activate

3. Connection

  • Connect the Arduino via USB.
  • Identify the serial port (e.g., /dev/ttyACM0).
  • Change the PORT variable at the beginning of banco_angulo.py to match your system's port.

Usage

Run the Python script:

python banco_angulo.py

Follow the terminal instructions for debug or visualization mode.

Dependencies

  • pyserial
  • numpy
  • matplotlib

Automatically installed by setup.sh.

License

MIT License. See the LICENSE file for details.


Developed for movement monitoring and visualization with Arduino and Python.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published