![Phidgets 1070 - PhidgetSBC Product Manual Download Page 44](http://html.mh-extra.com/html/phidgets/1070-phidgetsbc/1070-phidgetsbc_product-manual_1537224044.webp)
44
1070_0_Product_Manual - October 28, 2010 8:52 AM
Digital Outputs
Using the Digital Outputs
Here are some circuit diagrams that illustrate how to connect various devices to the digital outputs on your Phidget.
Driving an LED with the Digital Output
Connecting an LED to a digital output is simple. Wire the anode to a digital output
labeled 0 to 7 on the Interface Kit, and the cathode to a supplied ground, labeled
G.
Using a 3052 SSR Board with a Digital Ouptut
Setting the digital output to true causes the output of the
3052 to turn on. This can be used to control AC or DC
devices. The load can also be switched with the 3052 on
the high side. High side switching is helpful for powering
more complicated circuitry that cannot tolerate having
multiple grounds.
Isolating a Digital Output with a MOSFET based
SSR
It’s possible to wire up your own Solid State Relay to the
digital output. MOSFET based SSRs have the advantage
that they can be understood as being a simple switch.
There are many other types of SSRs that are more
suitable for controlling higher power, higher voltage AC
devices that can also be controlled in the same fashion.
Q1
250
+5V
Detail of Digital Output
TRUE
FALSE
+5V
OUTPUT
GROUND
Isolating a Digital Output w
ith a Optocoupler
Driving LED causes output transistor to sink current
Maximum current through transistor will depend in part on the transf
er characteristics of the optocoupler
Be conservative, and refer to the datasheet of the optocoupler
K 1
D1
Controlling a relay with a NPN Transistor.
K 1
OUTPUT
GROUND
Phidget
Digital
Output
D1
Controlling a relay with a N-Channel MOSFET
Be sure to use a Logic-Level Mosfet - so the +5V
Digital Output is able to turn it on.
Isolating a the Digital Output w
ith a MOSFET-Based SSR
Driving LED causes output transistors to turn on
Can often be used to control AC or DC
Driving an LED with the Digital Output
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
Phidget Digital
Output x1
VS1
VS1
VS3
Q1
VS1
Load
U1
OptoCoupler
Load
D1
The Load can also be switched with the SSR on the high side.
Using a 3052 SSR Board with a Digital Output
Driving Output causes output of 3052 to Turn on
Can be used to control AC or DC
USER
APPLICATION
VS1
Load
The Load can also be switched with the 3052 on the high side.
3052
RED
BLACK
Using a 3051 Dual Relay Board with one or tw
o Digital Outputs
Driving Outputs causes 3051 Relay s to Turn on
Can be used to control AC or DC
USER
APPLICATION
Analog Input is for powering Relay s Only
0C
0NO
0NC
1C
1NO
1NC
CTL 0
CTL 1
ANL GI N
3051
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
Phidget
Digital
Output
OUTPUT
ANALOG
INPUT
Q1
250
+5V
Detail of Digital Output
TRUE
FALSE
+5V
OUTPUT
GROUND
Isolating a Digital Output w
ith a Optocoupler
Driving LED causes output transistor to sink current
Maximum current through transistor will depend in part on the transf
er characteristics of the optocoupler
Be conservative, and refer to the datasheet of the optocoupler
K 1
D1
Controlling a relay with a NPN Transistor.
K 1
OUTPUT
GROUND
Phidget
Digital
Output
D1
Controlling a relay with a N-Channel MOSFET
Be sure to use a Logic-Level Mosfet - so the +5V
Digital Output is able to turn it on.
Isolating a the Digital Output w
ith a MOSFET-Based SSR
Driving LED causes output transistors to turn on
Can often be used to control AC or DC
Driving an LED with the Digital Output
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
Phidget Digital
Output x1
VS1
VS1
VS3
Q1
VS1
Load
U1
OptoCoupler
Load
D1
The Load can also be switched with the SSR on the high side.
Using a 3052 SSR Board with a Digital Output
Driving Output causes output of 3052 to Turn on
Can be used to control AC or DC
USER
APPLICATION
VS1
Load
The Load can also be switched with the 3052 on the high side.
3052
RED
BLACK
Using a 3051 Dual Relay Board with one or tw
o Digital Outputs
Driving Outputs causes 3051 Relay s to Turn on
Can be used to control AC or DC
USER
APPLICATION
Analog Input is for powering Relay s Only
0C
0NO
0NC
1C
1NO
1NC
CTL 0
CTL 1
ANL GI N
3051
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
Phidget
Digital
Output
OUTPUT
ANALOG
INPUT
Q1
250
+5V
Detail of Digital Output
TRUE
FALSE
+5V
OUTPUT
GROUND
Isolating a Digital Output w
ith a Optocoupler
Driving LED causes output transistor to sink current
Maximum current through transistor will depend in part on the transf
er characteristics of the optocoupler
Be conservative, and refer to the datasheet of the optocoupler
K 1
D1
Controlling a relay with a NPN Transistor.
K 1
OUTPUT
GROUND
Phidget
Digital
Output
D1
Controlling a relay with a N-Channel MOSFET
Be sure to use a Logic-Level Mosfet - so the +5V
Digital Output is able to turn it on.
Isolating a the Digital Output w
ith a MOSFET-Based SSR
Driving LED causes output transistors to turn on
Can often be used to control AC or DC
Driving an LED with the Digital Output
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
USER
APPLICATION
Phidget Digital
Output x1
VS1
VS1
VS3
Q1
VS1
Load
U1
OptoCoupler
Load
D1
The Load can also be switched with the SSR on the high side.
Using a 3052 SSR Board with a Digital Output
Driving Output causes output of 3052 to Turn on
Can be used to control AC or DC
USER
APPLICATION
VS1
Load
The Load can also be switched with the 3052 on the high side.
3052
RED
BLACK
Using a 3051 Dual Relay Board with one or tw
o Digital Outputs
Driving Outputs causes 3051 Relay s to Turn on
Can be used to control AC or DC
USER
APPLICATION
Analog Input is for powering Relay s Only
0C
0NO
0NC
1C
1NO
1NC
CTL 0
CTL 1
ANL GI N
3051
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
GROUND
Phidget
Digital
Output
OUTPUT
Phidget
Digital
Output
OUTPUT
ANALOG
INPUT