Skip to content

Instantly share code, notes, and snippets.

View atomicpunk's full-sized avatar

Todd Brandt atomicpunk

View GitHub Profile
@atomicpunk
atomicpunk / xarm_control.py
Created August 24, 2020 06:50 — forked from maximecb/xarm_control.py
Simple class to control the LewanSoul XArm over the USBHID interface
"""
sudo apt-get install libhidapi-hidraw0 libhidapi-libusb0
pip3 install --user hid
Notes:
- servos_off will power off the servos
- sending a movement command wakes up unpowered servos
- position readouts are sadly pretty slow, they can take up to 450ms
"""