Search Results

by josh.williams
Tue May 19, 2020 1:51 pm
Forum: General
Topic: Phidget Steppers disconnecting?
Replies: 0
Views: 13374

Phidget Steppers disconnecting?

Hello, I am running a number of Phidget devices connected to a VINT Hub. I have: 2 of 4A Phidget Steppers (STC1003_0) 1 of 2x DC Motor Phidget (DCC1003_0) 1 of Barometer Phidget (PRE1000_0) 1 of Differential Air Pressure Sensor (1126_0) 1 of 8x Voltage Input Phidget (DAQ1000_0), with 2 of IR Reflect...
by josh.williams
Tue May 19, 2020 1:21 pm
Forum: General
Topic: Using an IR sensor to check if an object is within range.
Replies: 2
Views: 5040

Re: Using an IR sensor to check if an object is within range.

Since you've configured the channel using setSensorType, you should be getting an "out of range" error event whenever the sensor doesn't detect anything within 4mm.When you get a valid reading, it will fire a SensorChange event instead. If you don't want to use events, and just want to ch...
by josh.williams
Wed May 06, 2020 10:55 am
Forum: General
Topic: Using an IR sensor to check if an object is within range.
Replies: 2
Views: 5040

Using an IR sensor to check if an object is within range.

Hi all, I have an IR Reflective Sensor 1-4mm (ID: 1146_0) and I just want to use it to check if an object is within range of the sensor (i.e. within 1-4mm away). Here is the example code for my device: from Phidget22.Phidget import * from Phidget22.Devices.VoltageRatioInput import * import time #Dec...
by josh.williams
Fri Mar 27, 2020 7:30 pm
Forum: General
Topic: Is there any way to speed up setTargetPosition?
Replies: 1
Views: 4842

Is there any way to speed up setTargetPosition?

Hi all, I have a segment of code in python 3.7 that I'm trying to run on a timer that includes: stepper1.setTargetPosition(stepper1_targetposition) stepper2.setTargetPosition(stepper2_targetposition) From timing my code, it looks like these two lines take about 0.04 seconds to run. I'd like to run t...