PyLevit is a Python application designed to interface with an Arduino-based electromagnet levitator system. It provides a graphical user interface (GUI) for controlling and monitoring the levitation process via serial communication with the Arduino.
PyLevit serves as the front-end interface for interacting with an Arduino-based electromagnet levitator system. It facilitates real-time control of system parameters such as setpoint, proportional gain, integral gain, and derivative gain, while also providing visual feedback through plots and status indicators.
This project relies on the Arduino code from the Levitator repository for integrating the levitator system with the graphical user interface.
To run PyLevit, you need:
- Python 3.x
- Required Python packages listed in
requirements.txt
- An Arduino Nano (ATmega328) with the appropriate firmware installed
- Clone this repository to your local machine.
- Install the required Python packages by running:
pip install -r requirements.txt
- Ensure your Arduino Nano is connected to your computer.
- Upload the firmware provided in the Arduino repository to your Arduino Nano.
- Run the
main.py
script:python main.py
- PyLevit GUI will open up.
- Connect your Arduino Nano to the PyLevit GUI via serial communication.
- Use the GUI to adjust system parameters and monitor the levitation process in real-time.
- Author: Valentin Maier
- Institution: HTL Bulme
This code is licensed under the MIT License. Feel free to use, modify, or distribute it according to the terms of the license.