A PyQt interface to monitor a PID_Controler (Teensy microcontroler) via the serial USB bus.
Download the zip of this repository using the green button [Code v] at the top right of this page, then unzip the file to install the directory TP_PID-Controler_master
within your personnal disk tree on your computer.
You need to run the PyQt interface within a Python Virtual Environment (PVE) with Python 3.10:
In the following we name "(minfo) console" the "Anaconda prompt" window (window 10 or 11) or the terminal (macOS or GNU/Linux) with the minfo PVE activated:
-
If you are an ENSAM student you already have a minfo PVE for the Math-Info activity installed on your laptop or on the school computers. You just have to add the modules pyserial and pyqtgraph. To do this type in the (minfo) console:
conda install pyserial pyqtgraph -y
-
If you don't already have any PVE available, you can follow this link Document d'installation... until the command (slide 4):
conda activate minfo
. Then in the (minfo) console, updateconda
itself with the command:
conda update -n base -c defaults conda
and populate the PVE with the command:
conda env update -n minfo --file <path-of-PVE.yml>
replacing<path-of-PVE.yml>
by the acces path of the filePVE.yml
on your computer (found thanks to the file browser):
->[Windows]: something likeC:\Users\you\...\PVE.yml
->[macOS, Linux]: something like/home/users/you/.../PVE.yml
.
When done, go to root folder of the project in the (minfo) console with the cd
(change directory) command:
cd <path-of-folder-"PID_Controler_master">
replacing <path-of-folder-"PID_Controler_master">
by the acces path of the folder PID_Controler_master
on your computer (found thanks to the file browser):
-> [Windows]: something like C:\Users\you\...\TP_PID-Controler_master\PID_Controler_master
->[macOS, Linux]: something like /home/users/you/.../TP_PID-Controler_master/PID_Controler_master
.
Finally run the application from the (minfo) console with the command:
python main.py
Enjoy...