Skip to content

Instantly share code, notes, and snippets.

View adeguet1's full-sized avatar

Anton Deguet adeguet1

View GitHub Profile
@maximecb
maximecb / xarm_control.py
Last active July 4, 2022 22:26
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
"""