phidget22 python API issue

Supporting 2.6 and up
Post Reply
sam
Fresh meat
Posts: 2
Joined: Thu May 25, 2023 9:10 pm
Contact:

phidget22 python API issue

Post 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
sam
Fresh meat
Posts: 2
Joined: Thu May 25, 2023 9:10 pm
Contact:

Re: phidget22 python API issue

Post 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.
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: phidget22 python API issue

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests