Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to xarm thorugh USB #15

Open
RicoZKB opened this issue Jun 5, 2024 · 0 comments
Open

Can't connect to xarm thorugh USB #15

RicoZKB opened this issue Jun 5, 2024 · 0 comments

Comments

@RicoZKB
Copy link

RicoZKB commented Jun 5, 2024

import xarm

arm is the first xArm detected which is connected to USB

arm = xarm.Controller('USB')
print('Battery voltage in volts:', arm.getBatteryVoltage())

I installed necessary modules as instructed but I can't connect to the xarm
the issue show below:

(.venv) thihaphyo@THIHAs-Laptop hiwonder % python main.py
Traceback (most recent call last):
File "/Users/thihaphyo/Documents/hiwonder/main.py", line 4, in
arm = xarm.Controller('USB')
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/thihaphyo/Documents/hiwonder/.venv/lib/python3.12/site-packages/xarm/controller.py", line 25, in init
self._device.open(0x0483, 0x5750)
File "hid.pyx", line 143, in hid.device.open
OSError: open failed

I bought a hiwonder xarm with esp32 open source. I also try to use platformio in vscode to connect. it is connected but i dont know where to get started and how to move the xarm. is there a problem with vendor and product id >>self._device.open(0x0483, 0x5750)

Please help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant