Search Results

by khun
Sun Feb 19, 2023 8:15 am
Forum: Python
Topic: Name 'DigitalOutput' is not defined
Replies: 4
Views: 23323

Re: Name 'DigitalOutput' is not defined

Finally I realized that if I do "sudo bash" and run "python MyScript.py", it works! So somehow I am suddenly not running Thonny Python IDE as administrator anymore? I must have done so before, because when I first programmed this code, it worked. Do I have to give my user "p...
by khun
Sat Feb 18, 2023 1:26 pm
Forum: Python
Topic: Name 'DigitalOutput' is not defined
Replies: 4
Views: 23323

Re: Name 'DigitalOutput' is not defined

I suddenly realized there was a semicolon at the end of one line there (habit from C++), so I thought I found the problem. Alas, removing it didn't help...
by khun
Sat Feb 18, 2023 1:21 pm
Forum: Python
Topic: Name 'DigitalOutput' is not defined
Replies: 4
Views: 23323

Re: Name 'DigitalOutput' is not defined

I forgot to mention that Phidget22admin shows that the Phidget is indeed connected and working OK...
by khun
Sat Feb 18, 2023 1:08 pm
Forum: Python
Topic: Name 'DigitalOutput' is not defined
Replies: 4
Views: 23323

Name 'DigitalOutput' is not defined

Hi! I was able to get a light sensor turning on the light in our carport working with a Phidget 0/16/16 board from a Raspberry Pi a while ago. Now I wanted to expand things, reinstalled the libraries to be up-to-date and suddenly things don't work! Very annoying! All installation parts seem to have ...
by khun
Fri Nov 20, 2020 8:12 am
Forum: InterfaceKits
Topic: Motion sensor 24V on 0/16/16
Replies: 12
Views: 30168

Re: Motion sensor 24V on 0/16/16

One more thing if someone should happen to read this later looking for help: this motion detector seems to almost have x-ray vision! I was very confused because it kept blinking on/off even if it was "locked away" in a box in the room. Tried all kinds of stuff, with lower voltage and blabl...
by khun
Tue Nov 17, 2020 8:07 am
Forum: Linux
Topic: Trying to get 0/16/16 board up and running on Pi
Replies: 23
Views: 46415

Re: Trying to get 0/16/16 board up and running on Pi

Hi! I finally got my Raspberry Pi model B v1.2 working with the old 0/16/16 Phidget board. The problem was the "addressing" (see: https://www.phidgets.com/docs/Addressing_Phidgets) of the board in my python code. I had a call: testOut.setHubPort(1) (copied from some example). This seems to...
by khun
Tue Nov 17, 2020 8:00 am
Forum: Linux
Topic: Raspberry 3 Buster can't find 0/16/16
Replies: 6
Views: 18259

Re: Raspberry 3 Buster can't find 0/16/16

Hi again! Thank you so much! I wasn't aware of the logging possibility. This (shown below) showed me that the Phidget _was_ actually found, but couldn't attach, so the attach timed out. So some googling later I realized that the old 0/16/16 Phidget shouldn't set any hub port. I removed that code and...
by khun
Sat Nov 14, 2020 5:43 am
Forum: Linux
Topic: Raspberry 3 Buster can't find 0/16/16
Replies: 6
Views: 18259

Re: Raspberry 3 Buster can't find 0/16/16

Would have been nice, but I had rebooted lot's of times before I asked here, so that's not the problem...
by khun
Thu Nov 12, 2020 5:45 pm
Forum: Linux
Topic: Raspberry 3 Buster can't find 0/16/16
Replies: 6
Views: 18259

Re: Raspberry 3 Buster can't find 0/16/16

Hi! I'm not quite sure how to run a python script as root in Thonny? The udev rules are installed, meaning there is a file: /etc/udev/rules.d/99-phidget22.rules with (among others) the following line: SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="06c2", ATTRS{idPr...
by khun
Thu Nov 12, 2020 11:52 am
Forum: Linux
Topic: Trying to get 0/16/16 board up and running on Pi
Replies: 23
Views: 46415

Re: Trying to get 0/16/16 board up and running on Pi

Hi, Mastiff! Still going strong, I see? We have discussed Girder previously, I think, you are Norwegian too, right? I have the exact same problem and made a thread on this yesterday! So you might want to follow "Raspberry 3 Buster can't find 0/16/16". Strange thing is I got an email today ...