A Python tool for real-time monitoring and visualization of Feetech STS3215 servo parameters (position, speed, load, voltage, temperature) over a serial connection.
- Real-time plots for position, speed, voltage, and temperature for up to 6 servos
- Color-coded lines for each servo
- Rolling 10-second window for live data
- Pause/resume live update with the spacebar
- Robust to communication errors and missing data
- Debug output for troubleshooting
- Python 3.7+
- Feetech STS3215 servos (or compatible)
- USB-to-serial adapter
- Clone this repository or copy the files to your machine.
- Install dependencies:
pip install -r requirements.txt
-
Connect your servos to your computer via a USB-to-serial adapter.
-
Run the monitor:
python read.py --port COM5
Replace
COM5with your serial port (e.g.,/dev/ttyUSB0on Linux). -
Optional arguments:
--baudrate 1000000(default: 1000000)--ids 1 2 3(specify servo IDs)--debug(enable debug output)
- If only position updates, check your servo model and wiring.
- If speed/load/voltage/temperature are always zero, check the register map and power supply.
- Use
--debugto see raw communication data. - If you get shape mismatch errors in the plot, update to the latest code.
MIT
