esnosy / arduino_low_latency_servo_serial_control_python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Low Latency Servo Control via Serial

Circuit:

  • Arduino Nano
  • SG90 Servo Motor (Connected to pin 9)

How to run:

  1. Upload the sketch to the Arduino
  2. Install dependencies: pip install --user pyserial pyside6
  3. Run the script: python arduino_low_latency_servo_serial_control.py

Output:

Enter servo position (0-180):
an infinite loop with the above message, entering an angle moves the servo accordingly

Video:

CLI (set the "GUI" constant in the script to False)

Untitled.video.-.Made.with.Clipchamp.1.mp4

GUI

arduino_low_latency_servo_control_over_serial_python.mp4

About

License:MIT License


Languages

Language:Python 52.6%Language:C++ 47.4%