Skip to content

PIDlab is a tool for simulating motor control. It lets you experiment with PID controllers in speed or position mode. You can choose from preset motors or define your own, apply gear ratios, and add loads. The simulation plots motor output, voltage, and current.

License

Notifications You must be signed in to change notification settings

glerpstudios/pidlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Tkinter + Matplotlib App

This project uses Tkinter for the GUI and Matplotlib with NumPy for plotting.

Setup Instructions

  1. Clone or download this repository.

  2. Make sure you have Python installed.
    Tkinter is included with most standard Python installations.

    On some Linux distributions :

    sudo apt-get install python3-tk
    

    On Mac OS X :

    brew install python-tk
     brew install tcl-tk
     env PATH="/usr/local/opt/tcl-tk/bin:$PATH" \
         LDFLAGS="-L/usr/local/opt/tcl-tk/lib" \
         CPPFLAGS="-I/usr/local/opt/tcl-tk/include" \
         PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig" \
         pyenv install 3.12.5
    
  3. Create and activate a virtual environment (recommended).

    On macOS/Linux:

    python3 -m venv venv
    source venv/bin/activate
    pip install --upgrade pip
    pip install -r requirements.txt
    python -m tkinter
    

    On Windows:

    python -m venv venv
    venv\Scripts\activate
    pip install --upgrade pip
    pip install -r requirements.txt
    python -m tkinter
    

About

PIDlab is a tool for simulating motor control. It lets you experiment with PID controllers in speed or position mode. You can choose from preset motors or define your own, apply gear ratios, and add loads. The simulation plots motor output, voltage, and current.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages