Skip to main content

Cross-platform tool for detecting and programming Axon servos

Project description

AXON Servo Cross-Platform Programmer

The Axon servo is an amazing servo used by many FTC teams. One of the downsides of the servo is that to program it, you need a Windows laptop. For those who do not have access to one or prefer using macOS or Linux, this can be a significant limitation. This project was created to solve that exact problem. By reverse-engineering the communication between the official Windows-based Axon programmer and the USB HID device, we developed a lightweight, cross-platform Python tool with a modern GUI. This program is in its VERY early stages. If you have experience reverse engineering protocols for USB devices, contributions are welcome! This project is a Python-based tool that communicates with a custom USB HID servo adapter (based on the SA33/USBBootloader) to program and test Axon servos. It replicates the behavior of a proprietary .exe tool by sending low-level HID reports to the device and interpreting its responses.


🔧 Features

  • ✅ Detects when a servo is plugged into the USB adapter
  • 🔄 Continuously polls the adapter for status
  • ⚙️ Uses hidapi (via the hid Python package)
  • 🖥️ Works on Windows, Linux, and macOS
  • ✨ Modern GUI built with PyQt6 and PyQt6-Fluent-Widgets.

🖼️ GUI

A modern GUI has been developed using PyQt6 and PyQt6-Fluent-Widgets, with features such as:

  • Real-time status display (servo connected, current position, etc.)
  • Interactive controls for configuration and testing
  • Visual feedback and logging
  • Cross-platform builds for Windows, macOS, and Linux

🚧 Future Plans

The current version of this project only scratches the surface of what the official Axon Programming Software can do. The long-term goal is to fully recreate and extend all of its functionality — in a free, open-source, and cross-platform package.

Planned features include:

  • 🔌 Automatic adapter and servo detection on all supported OSes
  • 🔄 Read/write servo configuration parameters (PID values, direction, etc.)
  • ⬆️ Upload new firmware directly to the servo (Continous or Positional)
  • 💾 Save and load profiles for repeatable tuning
  • 🧪 Test mode to control servo position or speed from the GUI
  • 🔍 Log and decode all USB traffic for debugging and advanced development

To support these features, we will continue reverse-engineering the USB HID protocol used by the original Windows .exe and documenting the command structure. This tool is being built by FTC teams, for FTC teams, with the goal of making Axon servo configuration accessible to everyone, not just those with Windows laptops. If you'd like to contribute to the protocol decoding, GUI development, or feature implementation, feel free to open an issue or pull request.


📦 Requirements

  • Python 3.6+
  • hidapi
  • ttkthemes
  • PyQt6
  • PyQt6-Fluent-Widgets

Install dependencies:

pip install hidapi ttkthemes PyQt6 PyQt6-Fluent-Widgets

On Linux/macOS, you may also need:

sudo apt install libhidapi-libusb0  # Debian/Ubuntu
brew install hidapi                 # macOS

🛠️ Setup (Linux/macOS Users)

To avoid running as root, add a udev rule:

  1. Create file /etc/udev/rules.d/99-servo.rules:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="13aa", MODE="0666"
  1. Reload rules:
sudo udevadm control --reload
sudo udevadm trigger

🚀 Usage

Install the package using pip:

pip install axon-programmer

Then run the GUI:

axon-programmer

You will see a GUI window to interact with the servo.


🧪 How It Works

  • The adapter uses a known HID interface (VID=0x0471, PID=0x13aa)

  • A specific OUT report must be sent to trigger a status response:

    04 8A 00 00 04 00 00 00 ... (total 64 bytes)
    
  • The adapter replies with a 64-byte IN report:

    • If servo is plugged in: 04 01 00 01 01 03 ...
    • If servo is not plugged: 04 01 FA 00 01 00 ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axon_programmer-0.0.7.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axon_programmer-0.0.7-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file axon_programmer-0.0.7.tar.gz.

File metadata

  • Download URL: axon_programmer-0.0.7.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for axon_programmer-0.0.7.tar.gz
Algorithm Hash digest
SHA256 78cae1f34d3d505f6e08124ce9929fce1c92a7678e6dc1a1bb71e8a3d3cbdf35
MD5 044e79cbc5efeb665e4806bc272fa1da
BLAKE2b-256 10fcd336f46e4b25217a8b7ef5c9dfefb51c9ca8af5d8313cd39a664e5213684

See more details on using hashes here.

Provenance

The following attestation bundles were made for axon_programmer-0.0.7.tar.gz:

Publisher: publish.yml on DevMello/AxonProgrammer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file axon_programmer-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for axon_programmer-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0bdfc660edccaf11ab794140c0512cec91e5df90558f1d5e561064c5b57b55dc
MD5 fe2a8934985fc4f6927efaf9f5afff21
BLAKE2b-256 30f16e9601a15d535b3ec5bfd5838b1b7fecfb7d6b4af1036f0d6ddf028d1985

See more details on using hashes here.

Provenance

The following attestation bundles were made for axon_programmer-0.0.7-py3-none-any.whl:

Publisher: publish.yml on DevMello/AxonProgrammer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page