Search Results

by testpresta2
Sun Jan 21, 2018 3:31 am
Forum: Linux
Topic: PhidgetInterfaceKit 0/0/4 USB on raspberry pi3 - Python
Replies: 20
Views: 29558

Re: PhidgetInterfaceKit 0/0/4 USB on raspberry pi3 - Python

Thanks but there is no full example for 4 relay board. How can i select the relay from the 4 ? Can i create 4 digitaloutput at the same time this way: ? from Phidget22.Devices.DigitalOutput import * from Phidget22.Phidget import * # relay 0 ch0 = DigitalOutput() ch0.openWaitForAttachment(5000) ch0.s...
by testpresta2
Sat Jan 20, 2018 1:29 pm
Forum: Linux
Topic: PhidgetInterfaceKit 0/0/4 USB on raspberry pi3 - Python
Replies: 20
Views: 29558

Re: PhidgetInterfaceKit 0/0/4 USB on raspberry pi3 - Python

Thanks it seems to work

Just one more question: This line can set on/off a relay but is there a way to read the current state of a relay ?

Code: Select all

ch.setState(1)  # ON
ch.setState(0)  # OFF

Thanks
by testpresta2
Sat Jan 20, 2018 2:14 am
Forum: Linux
Topic: PhidgetInterfaceKit 0/0/4 USB on raspberry pi3 - Python
Replies: 20
Views: 29558

PhidgetInterfaceKit 0/0/4 USB on raspberry pi3 - Python

Hello, I want to connect a PhidgetInterfaceKit 0/0/4 (4 relays) via USB to a raspberry pi3. I want to drive the 4 relays with a python program. Here is what i've done: $ wget http://www.phidgets.com/downloads/libraries/PhidgetsPython.zip (I've unzip and changed directory) $ sudo python setup.py inst...