Flask-based web companion app for servo-ctrl-zephyr
  • CSS 46.9%
  • JavaScript 27.7%
  • Python 17.5%
  • HTML 7.9%
Find a file
2025-02-09 21:41:08 +01:00
doc Initial commit 2025-02-09 21:41:08 +01:00
static Initial commit 2025-02-09 21:41:08 +01:00
templates Initial commit 2025-02-09 21:41:08 +01:00
app.py Initial commit 2025-02-09 21:41:08 +01:00
LICENSE Initial commit 2025-02-09 21:41:08 +01:00
README.md Initial commit 2025-02-09 21:41:08 +01:00
requirements.txt Initial commit 2025-02-09 21:41:08 +01:00

Zephyr Servo Controller Frontend

The Servo Controller is a Flask-based web application that serves as a companion app for the servo-ctrl-zephyr application. It allows users to control multiple servos through a serial interface and provides functionalities for configuring serial settings, adjusting servo positions, and managing trajectory points for automated movements.

Usage

  • Serial Configuration: Enter the desired UART port and baud rate, then click "Update Serial Config" to apply the settings.
  • Servo Controls: Use the sliders to set the desired positions for each servo. Click "Reset Sliders" to return to default values.
  • Trajectory Management:
    • Click "Save Point" to record the current servo positions.
    • Use "Clear Trajectory" to remove all saved points.
    • Replay the trajectory with "Start Replay" and stop it with "Stop Replay".
    • Adjust the time delay for replay and enable looping if desired.
    • Load or save trajectory data using the respective buttons.

Preview

Screenshot

Quickstart

  • Clone the repository:
https://github.com/pkoscik/servo-ctrl-zephyr-gui-flask.git
  • Install Python requirements
pythom -m venv .venv
. venv/bin/activate
pip install -r requirements.txt
  • Run flash app
python app.py