this is the source code of the Easy IMU GUI application. The application requires that you have the Easy IMU Module (i.e MPU9250 EIMU MODULE) and is connected to your PC via USB serial communication.
Note
Without the module, only the start page can be viewed.
-
This would run on Linux (Ubuntu), Windows, and MAC OS
-
Ensure you have
python3installed on your PC and alsopip -
install python virtual environment
sudo apt install python3-pip # linux or mac users sudo apt install python3-venv # linux or mac users
OR
pip install virtualenv # windows users (ensure you have pip installed) -
Ensure you have the
Easy IMU Moduleconnected to the PC.
-
Download (by clicking on the green Code button above) or clone the repo into your PC using
git cloneyou can use this command if you want to clone the repo:
git clone https://github.com/robocre8/eimu_setup_application.git
-
change directory into the root
eimu_setup_applicationfoldercd eimu_setup_application/ -
create a python virtual environment named
.envin the root folderpython3 -m venv .env
-
activate the virtual environment
source .env/bin/activate -
you should see now that you are in the
.envvirtual environment -
install all required python modules
pip3 install -r requirements.txt
-
now you can run the app in the virtual environment
python3 app.py
-
Now follow this tutorial on how to calibrate and setup the Easy IMU Module
-
once you are done using the application, just close and dectivate the environment
deactivate
-
Download (by clicking on the green Code button above) or clone the repo into your PC using
git cloneyou can use this command if you want to clone the repo:
git clone https://github.com/robocre8/eimu_setup_application.git
-
change directory into the root
eimu_setup_applicationfoldercd .\eimu_setup_application\
-
create a python virtual environment named
.envin the root folderpython -m venv .env
-
activate the virtual environment
.\.env\Scripts\activate.bat # In CMD .\.env\Scripts\Activate.ps1 # In Powershel
-
you should see now that you are in the
.envvirtual environment -
install all required python modules
pip install -r requirements.txt
-
now you can run the app in the virtual environment
python app.py
-
Now follow this tutorial on how to calibrate and setup the Easy IMU Module
-
once you are done using the application, just close and dectivate the environment
deactivate
-
change directory into the root
eimu_setup_applicationfoldercd eimu_setup_application/ -
activate the virtual environment
source .env/bin/activate -
you should see now that you are in the
.envvirtual environment -
now you can run the app in the virtual environment
python3 app.py
-
Now follow this tutorial on how to calibrate and setup the Easy IMU Module
-
once you are done using the application, just close and dectivate the environment
deactivate
-
change directory into the root
eimu_setup_applicationfoldercd .\eimu_setup_application\
-
activate the virtual environment
.\.env\Scripts\activate.bat # In CMD .\.env\Scripts\Activate.ps1 # In Powershel
-
you should see now that you are in the
.envvirtual environment -
now you can run the app in the virtual environment
python app.py
-
Now follow this tutorial on how to calibrate and setup the Easy IMU Module
-
once you are done using the application, just close and dectivate the environment
deactivate
-
change directory into the root
eimu_setup_applicationfoldercd eimu_setup_application/ -
activate the virtual environment
source .env/bin/activate -
you should see now that you are in the
.envvirtual environment -
build the application with pyinstaller:
pyinstaller app.py --onefile --name eimu_app_ubuntu_<OS-version-number> --hidden-import='PIL._tkinter_finder'
OR
pyinstaller app.py --onefile --name eimu_app_mac_<OS-version-number> --hidden-import='PIL._tkinter_finder'
-
change directory into the root
eimu_setup_applicationfoldercd .\eimu_setup_application\
-
activate the virtual environment
.\.env\Scripts\activate.bat # In CMD .\.env\Scripts\Activate.ps1 # In Powershel
-
you should see now that you are in the
.envvirtual environment -
build the application with pyinstaller:
pyinstaller app.py --onefile --name eimu_app_windows_<OS-version-number> --hidden-import='PIL._tkinter_finder'
-
once you are done, close and dectivate the environment
deactivate
