How shreekamesh/servo-calibrator works
Servo-Calibrator provides a browser interface for controlling and calibrating a multi-servo Arduino robot, with a Python HTTP server bridging browser requests to USB serial and firmware. The documented workflow is connect, adjust servo angles or poses, and save settings. The excerpts show browser-to-server routes and firmware command handling, but do not show the sketch wiring or the Python-to-firmware command translation in compatible terms; those links are left unverified. Additional interface capabilities include pose editing, tuning, action-code generation and settings management.
Main entry points: index.html Web page · Robot.cpp Robot behavior · SerialProtocol.cpp Command protocol · ServoManager.cpp Servo control
Components 16
Browser interface
- Control and editor UI
script.js - Web page
index.html - Interface styling
style.css
Python server
- HTTP API
web_server.py - Serial link
web_server.py
Arduino firmware
- Firmware entry
ServoCalibrator.ino - Command protocol
SerialProtocol.cpp - Robot behavior
Robot.cpp - Calibration settings
RobotSettings.cpp - Servo control
ServoManager.cpp - Hardware configuration
Config.h - EEPROM storage
Servo hardware
- PWM servo driver
- Arduino board
- Servo motors
Other components
- Robot operator
Connections 15
- Robot operator → Web page: opens
README.md - Web page → Control and editor UI: loads
- Control and editor UI → HTTP API: calls API
script.js - HTTP API → Serial link: sends commands
web_server.py - Serial link → Command protocol: forwards commands
- Firmware entry → Command protocol: updates
- Command protocol → Robot behavior: dispatches commands
SerialProtocol.cpp - Robot behavior → Servo control: sets angles
Robot.cpp - Robot behavior → Calibration settings: loads and saves
Robot.cpp - Calibration settings → EEPROM storage: reads and writes
RobotSettings.cpp - Servo control → PWM servo driver: sets pulses
ServoManager.cpp - Hardware configuration → Servo control: configures
ServoManager.cpp - Arduino board → PWM servo driver: drives
- PWM servo driver → Servo motors: controls
- Web page → Interface styling: uses