Code Monkey home page Code Monkey logo

sow_gui_dev's Introduction

S.O.W Machine

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.

Table of Contents

Features

  • 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.

Requirements

  • Python 3.x
  • PyQt5
  • Matplotlib
  • numpy (if not already installed with matplotlib)
  • Raspberry Pi with Raspbian or any Debian-based Linux distribution

Installation

1. Update and Upgrade Your System

sudo apt-get update
sudo apt-get upgrade

2. Install Necessary Libraries

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

3. Clone the Repository

git clone <repository_url>
cd <repository_directory>

Usage

Running the Application

To start the application, run the following command:

python3 main.py

File Descriptions

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

sow_machine.jpg

This image is used as the logo for the application.

Troubleshooting

Common Issues

libGL Error

If you encounter an error related to libGL, such as libGL error: MESA-LOADER: failed to open swrast, follow these steps:

  1. Ensure all necessary OpenGL libraries are installed:

    sudo apt-get install libgl1-mesa-glx libgl1-mesa-dri
  2. Set environment variables:

    export LIBGL_DRIVERS_PATH=/usr/lib/dri
    export LIBGL_DEBUG=verbose
  3. Reboot the system:

    sudo reboot

Checking OpenGL Configuration

To verify your system's OpenGL configuration, install mesa-utils and run glxinfo:

sudo apt-get install mesa-utils
glxinfo | grep "OpenGL"

License

This project is licensed under the MIT License. See the LICENSE file for details.

sow_gui_dev's People

Contributors

wogur110 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.