Page 1 of 1

phidget22 python API issue

Posted: Thu May 25, 2023 9:14 pm
by sam
Hello friends,
-- I am using phidget vint to control a DC motor on an odroid board, I am using phiodget22 python api, however, when I run script it always show 'No phdidget were detected at all. Make sure your device is attached.' it is caused by the 'openWaitForAttachment(1000)', please help figure this out,
Thanks

Re: phidget22 python API issue

Posted: Fri May 26, 2023 8:34 am
by sam
ok, I tried to use
sudo -E code \dot py
, it can control the DC motor, the question is why in my laptop it does not require the 'sudo' and in odroid it does ? and when I use ros to launch a control node, it is not proper to run in root, so many path are in usr's path.

Re: phidget22 python API issue

Posted: Fri May 26, 2023 3:26 pm
by Patrick
Have a look here: https://www.phidgets.com/docs/OS_-_Linux

You'll need to create the udev rule to allow access on linux to non-root users.

-Patrick