•
Digital I/O digital output with pull-up disabled:
•
When switch 1 closes, the port is on and the front panel LED (IPL EXP RIO8 only) is on.
•
When switch 1 opens, the port is off and the front panel LED (IPL EXP RIO8 only) is off.
Example application, digital output without pull-up: connecting an LED and an external
•
+5 VDC power source
This application often requires a current-limiting resistor, as shown in the diagram below. Many
button switches that contain LEDs have a resistor built in. See the guide for the lighted switch or
stand-alone LED for details.
NOTE: Each I/O pin is capable of sinking a maximum of 250 mA.
+5.0 V
1k ohms
SW 2
CTL
SW 1
Figure 14.
Digital I/O Digital Output Application:
LED and External +5 VDC Power Source Without Pull-up
To determine the value of the current limiting resistor in the circuit shown above, you need to
know the values of three variables:
i = LED forward current in amps (found in the data sheet for the LED)
= LED forward voltage drop in volts (found in the data sheet for the LED)
V
f
V
= supply voltage of the external voltage source
s
Insert those values into the following equation to determine the resistor value:
V
- V
s
R =
i
Example calculation:
i = 5 mA (0.005 A)
= 2 V
V
f
= 5 V
V
s
NOTE: If the value calculated for the current limiting resistor is not a standard resistor value, you can
round up the number to the next highest common resistance value.
The connected LED is off when the port and switch 1 are open.
The connected LED is on when the port and switch 1 are closed.
Digital
I/O
Voltage
Protection
GND
f
}
V
- V
5 V - 2 V
s
f
R =
=
i
0.005 A
Resistor
(R)
LED
+
-
External
+5 VDC
Power
Source
= 600 ohms
IPL EXP I/O Series • Hardware Features and Installation
25
Need help?
Do you have a question about the IPL EXP I/O Series and is the answer not in the manual?
Questions and answers