Page 1 of 1

Flashing a device by using Phidgets

Posted: Fri Feb 21, 2020 7:19 am
by akwa
Is it possible to flash a device by using Phidgets? I think I should use a 4x Relay Phidget to do this. But I don't know how to start.. I'm kinda bad at programming. I was planning to use Python for this.

Re: Flashing a device by using Phidgets

Posted: Fri Feb 21, 2020 8:29 am
by mparadis
I doubt a Phidget digital output would be fast enough to simulate the kind of signal needed to flash a device. You'd also have to custom program all of the logic behind creating the signal, which would be a lot of work. In most cases, any device that can be flashed typically has a specialized utility available that makes flashing easy.

Re: Flashing a device by using Phidgets

Posted: Mon Feb 24, 2020 10:40 am
by jdecoux
Unless you mean flashing a light? That would be quite easy.

Re: Flashing a device by using Phidgets

Posted: Fri Feb 28, 2020 10:31 pm
by sumware
# purchase a VINT HUB from
# https://www.phidgets.com/?tier=3&catid= ... prodid=643
# and
# purchase a Signal Relay Phidget from
# https://www.phidgets.com/?tier=3&catid= ... prodid=723

# plug the VINT HUB into your computer's USB port
# and the Signal Relay Phidget into the VINT HUB

# paste the code below into Python and run it.
# BAM! Flashing device! (light, strobe, horn, etc.)

from Phidget22.Phidget import *
from Phidget22.Devices.DigitalOutput import *
import time

digitalOutput0 = DigitalOutput()
digitalOutput0.setIsHubPortDevice(True)
digitalOutput0.setHubPort(0)
digitalOutput0.openWaitForAttachment(5000)

while (1):
digitalOutput0.setDutyCycle(1)
time.sleep(.15) # .15 seconds ON
digitalOutput0.setDutyCycle(0)
time.sleep(1) # 1.0 seconds OFF

digitalOutput0.close()

# press CTRL+C to end program

# This code was mostly generated by
# Phidgets online Code Samples Generator - TOO EASY!
# https://www.phidgets.com/?tier=3&catid= ... prodid=723