Skip to content

Instantly share code, notes, and snippets.

View dmklee's full-sized avatar

David Klee dmklee

View GitHub Profile
@dmklee
dmklee / xarm_control.py
Created March 15, 2021 18:56 — 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
"""