Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/imu-visualization
visualize the orientation of an IMU connected to your laptop
https://github.com/brianlesko/imu-visualization
imu imu-sensor orientation robotics robotics-control sensor-data sensor-fusion
Last synced: about 20 hours ago
JSON representation
visualize the orientation of an IMU connected to your laptop
- Host: GitHub
- URL: https://github.com/brianlesko/imu-visualization
- Owner: BrianLesko
- Created: 2024-04-11T03:30:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T01:46:14.000Z (3 months ago)
- Last Synced: 2024-08-23T02:51:47.789Z (3 months ago)
- Topics: imu, imu-sensor, orientation, robotics, robotics-control, sensor-data, sensor-fusion
- Language: Python
- Homepage:
- Size: 38.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Measure Orientation using an IMU
IMU's are necessary for robotics applications and consumer devices. IMU's are used in conjunction with GPS modules to track both position and orientation in space.
[IMU](https://en.wikipedia.org/wiki/Inertial_measurement_unit) stands for inertial measurement unit.
IMU's are used in robotics and vehicles. Written in C++ Arduino and intended for use with a mobile robot.
Use this code to visualize the orientation of your IMU
## Usage
The .ino files are for the Arduino [BLE Sense 2](https://docs.arduino.cc/hardware/nano-33-ble-sense-rev2/)
or the [Nicla Sense ME](https://docs.arduino.cc/hardware/nicla-sense-me/) Arduino boards.Get either board, upload the .ino file using the arduino IDE, and make sure the serial monitor is closed. The Nicla sense board is much more accurate.
Then, run the following commands in your terminal:
```
python3 -m venv my_env
source my_env/bin/activate # or on windows: source my_env\Scripts\activate
pip install streamlit pyserial
streamlit run https://raw.githubusercontent.com/BrianLesko/IMU-visualization/main/app.py
```to stop the app, go back to the terminal and press control C
This will start the local Streamlit server, and you can access the chatbot by opening a web browser and navigating to `http://localhost:8501`.
## Repository Structure
```
repository/
├── app.py # the code and UI integrated together live here
├── customize_gui # class for adding gui elements
├── requirements.txt # the python packages needed to run locally
├── .gitignore # includes the local virtual environment named my_env
├── .streamlit/
│ └── config.toml # theme info for the UI
└── docs/
└── preview.png # preview photo for Github
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these for a cookie :)