This project is a GUI application for monitoring and controlling a system with sensors and actuators using a Raspberry Pi. It displays real-time data from various sensors and allows the user to control certain parameters through a graphical interface built with PyQt5 and Matplotlib.
- Real-time data plotting using Matplotlib.
- Adjustable parameters through a graphical interface.
- Data logging to a CSV file.
- User-friendly interface for controlling pumps, chiller, and other parameters.
- Adjustable x-axis scale for real-time graph.
- Python 3.x
- PyQt5
- Matplotlib
- numpy (if not already installed with matplotlib)
- Raspberry Pi with Raspbian or any Debian-based Linux distribution
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-pyqt5
sudo apt-get install libgl1-mesa-glx libgl1-mesa-dri
sudo apt-get install libglapi-mesa libgles2-mesa
sudo apt-get install mesa-utils
pip3 install matplotlib
git clone <repository_url>
cd <repository_directory>
To start the application, run the following command:
python3 main.py
This is the main script that contains the entire application logic including:
- GUI setup using PyQt5
- Real-time data plotting with Matplotlib
- Data logging to CSV
- Control mechanisms for pumps and other parameters
This image is used as the logo for the application.
If you encounter an error related to libGL
, such as libGL error: MESA-LOADER: failed to open swrast
, follow these steps:
-
Ensure all necessary OpenGL libraries are installed:
sudo apt-get install libgl1-mesa-glx libgl1-mesa-dri
-
Set environment variables:
export LIBGL_DRIVERS_PATH=/usr/lib/dri export LIBGL_DEBUG=verbose
-
Reboot the system:
sudo reboot
To verify your system's OpenGL configuration, install mesa-utils
and run glxinfo
:
sudo apt-get install mesa-utils
glxinfo | grep "OpenGL"
This project is licensed under the MIT License. See the LICENSE file for details.