Alert.png

Notice: This page contains information for the legacy Phidget21 Library.

Phidget21 is out of support. Bugfixes may be considered on a case by case basis.

Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21.

We recommend that new projects be developed against the Phidget22 Library.


Click on the 2phidget22.jpg button in the menu bar to go to the Phidget22 version of this page.

Alert.png

LED Primer: Difference between revisions

From Phidgets Legacy Support
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category: Primer]]
{|
{|
|- valign=middle
|- valign=middle
| align=center width=300px| __TOC__  
| align=center width=300px| __TOC__  
| [[Image:RBG.jpg|500px]]
| [[Image:RBG.jpg|400px|link=]]
|}
|}


Line 10: Line 12:
Like normal diodes, Light Emitting Diodes (LEDs) are semiconductor devices designed to conduct current in one direction only.  What makes LEDs unique is their internal material makeup:  when atoms in an LED release energy due to the flow of forward current, it is released in the form of photons (light).  Different construction materials and various phosphor coatings are used to produce numerous colors of light.
Like normal diodes, Light Emitting Diodes (LEDs) are semiconductor devices designed to conduct current in one direction only.  What makes LEDs unique is their internal material makeup:  when atoms in an LED release energy due to the flow of forward current, it is released in the form of photons (light).  Different construction materials and various phosphor coatings are used to produce numerous colors of light.


LEDs that Phidgets sells are all operable via the [[Device Functionality - Digital Output|digital outputs]] on any of our interface kits.  However Phidgets also sells a specific [[1031 PhidgetLED-64 Advanced|LED controller]] since it is often desirable to control more LEDs than even the [[1012 PhidgetInterfaceKit 0/16/16|0/16/16]] can operate.  It offers some unique features such as brightness control.
LEDs that Phidgets sells are all operable via the [[Digital Output Primer|digital outputs]] on any of our interface kits.  However Phidgets also sells a specific [{{SERVER}}/products.php?product_id=1032 PhidgetLED-64 Advanced LED controller] since it is often desirable to control more LEDs than even the [{{SERVER}}/products.php?product_id=1012 1012 Phidget Interface Kit 0/16/16] can operate.  It offers some unique features such as brightness control.


==Principles of operation==
==How it works==
[[image:led.png|thumb|350px|Parts of an LED.  The flat spot on the epoxy casing, is an anchor to prevent twisting from damaging the leads.]]
[[image:led.png|thumb|350px|link=|Parts of an LED.  The flat spot on the epoxy casing, is an anchor to prevent twisting from damaging the leads.]]
LEDs use electroluminescence which is an optical phenomenon in which a material emits light in response to the passage of an electric current.


As in conventional diode, current flows from anode to cathode but not the oppositeDue to the material of LEDs however, when electrons pass through their energy level drops.  When that happens they release energy in the form of light.
LEDs emit light from current flowing through themAs the current flows, the electronics experience a sudden drop in energy level (voltage).  When that happens they release energy in the form of light.  The amount of light produced is proportional to the current.  Depending on the material used to make the LED, different colors can be created.  Like a conventional diode, the current can only flow in one direction - from the anode to the cathode.


==Controlling LEDs==
==Controlling LEDs==
Line 22: Line 23:
===Forward Voltage===
===Forward Voltage===


The materials used within LEDs that cause them to emit different colors of light affect a property called its forward voltage. The forward voltage is the voltage at which current in the forward direction will flow through the device and allow the LED to convert electrical energy into light.  If the voltage applied to the LED is below the forward voltage of the LED, very little current (or none) may flow, and therefore very little light will be emitted. Most standard LEDs with colors such as red, amber, orange, yellow, and green have forward voltages below 2.75 Volts, and can be used with a [[Digital Output Primer|digital output]] by simply soldering them to a connector-wire and inserting the wire into the output port. The forward voltage in the [[1031 - PhidgetLED|PhidgetLED]] will default to 2.75V, and the maximum current defaults to 20mA.
The materials used within LEDs that cause them to emit different colors of light affect a property called its forward voltage. The forward voltage is the voltage at which current in the forward direction will flow through the device and allow the LED to convert electrical energy into light.  If the voltage applied to the LED is below the forward voltage of the LED, very little current (or none) may flow, and therefore very little light will be emitted. Most standard LEDs with colors such as red, amber, orange, yellow, and green have forward voltages below 2.75 Volts, and can be used with a [[Digital Output Primer|digital output]] by simply soldering them to a connector-wire and inserting the wire into the output port. The forward voltage in the [{{SERVER}}/products.php?product_id=1032 1032 - PhidgetLED] will default to 2.75V, and the maximum current defaults to 20mA.


===Supply Voltage===
===Supply Voltage===
Line 29: Line 30:
|To be an effective LED controller your digital outputs must be capable of <br />adjusting the forward voltage supplied to the LEDs to 1.7, 2.75, 3.9 and 5 volts<br /> settings allowing you to properly drive blue, white, violet, ultra violet and purple LEDs.<br /> The supply voltage will affect all LEDs. If you set the supplied voltage too high,<br /> power will be wasted and the controller may shut down from thermal overload. If you<br /> set the supply voltage too low, your LEDs will not be driven at the requested<br /> current, and will be dim or non-functional.
|To be an effective LED controller your digital outputs must be capable of <br />adjusting the forward voltage supplied to the LEDs to 1.7, 2.75, 3.9 and 5 volts<br /> settings allowing you to properly drive blue, white, violet, ultra violet and purple LEDs.<br /> The supply voltage will affect all LEDs. If you set the supplied voltage too high,<br /> power will be wasted and the controller may shut down from thermal overload. If you<br /> set the supply voltage too low, your LEDs will not be driven at the requested<br /> current, and will be dim or non-functional.
|
|
{| {{table}} border = 1
{| border = 1
!colspan="2" style="background:#f0f0f0;"|Typical Forward Voltages
!colspan="2" style="background:#f0f0f0;"|Typical Forward Voltages
|-
|-
Line 58: Line 59:
|-valign="top"
|-valign="top"
|
|
Most LEDs fall within 20, 40, 60 or 80mA, and applies to all LEDs. The <br />Phidgets DiscreteLED API call can be used to provide more current <br />or control brightness and will adjust the current linearly between 0 <br />and the set maximum. This however does not imply a precise method <br />for controlling the visibility of emitted light, as this is affected by the <br />construction and quality of the LED as well as the eyes of the viewer. <br />Be cautious when changing the current property. Many small LEDs are <br />designed for a maximum 20mA, and can be destroyed if driven at higher <br />currents.
Most LEDs have a current rating of 20, 40, 60 or 80mA. The Phidgets DiscreteLED API call can be used to provide more current or control brightness and will adjust the current linearly between 0 and the set maximum. This however does not imply a precise method for controlling the visibility of emitted light, as this is affected by the construction and quality of the LED as well as the eyes of the viewer. Be cautious when changing the current property. Many small LEDs are designed for a maximum 20mA, and can be destroyed if driven at higher currents.
|
|
[[image:Ledcurrent.png|400px]]
[[image:Ledcurrent.png|link=|400px]]
|}
|}


===Choosing Current and Voltage Settings===
===Choosing Current and Voltage Settings===


Make sure to choose the minimum supply voltage setting to drive the LED that requires the most voltage during operation. Any extra voltage not required by the LED will be converted to heat by the 1031. For example, a Blue LED being driven at 20mA, 3.9V Supply, that requires 3.7 volts will cause (3.9V-3.7V + 0.4V) * 0.02A = 12 milliwatts of heat to be produced on the 1031. If this example instead uses a high power, 1.5V infrared LED at 80mA, this will create (3.9V-1.5V+0.4V)*0.08 Amps = 224 milliwatts of heat. See the Heat Dissipation and Thermal Protection section later on in this manual for more information about this issue.
Make sure to choose the minimum supply voltage setting to drive the LED that requires the most voltage during operation. Any extra voltage not required by the LED will be converted to heat by the 1032. For example, a Blue LED being driven at 20mA, 3.9V Supply, that requires 3.7 volts will cause (3.9V-3.7V + 0.4V) * 0.02A = 12 milliwatts of heat to be produced on the 1032. If this example instead uses a high power, 1.5V infrared LED at 80mA, this will create (3.9V-1.5V+0.4V)*0.08 Amps = 224 milliwatts of heat. See the Heat Dissipation and Thermal Protection section later on in this manual for more information about this issue.


==Multiplexed LEDs==
==Multiplexed LEDs==
Line 72: Line 73:
In an effort to reduce electrical noise in the system the PhidgetLED does not use multiplexing. All 64 anodes are connected to the same power supply and the cathode of each LED connection is attached to an individual constant current sink. Also, the LEDs are not controlled by PWM - they are driven at a constant current.
In an effort to reduce electrical noise in the system the PhidgetLED does not use multiplexing. All 64 anodes are connected to the same power supply and the cathode of each LED connection is attached to an individual constant current sink. Also, the LEDs are not controlled by PWM - they are driven at a constant current.


==Other Uses for the 1031==
==Other uses for LED controllers==


The 1031 PhidgetLED 64 is not limited to Light Emitting Diodes. It can be used to control relays, solenoids and even very small motors. The PhidgetLED can also be used to drive opto-isolators and MOSFET SSRs. A diode integrated into the 1031 on each cathode will clamp inductive surges to the anode supply voltage.
LED controllers are typically just a set of special digital outputs.  This means they aren't limited to just controlling LEDs. They can be used to control relays, solenoids and even very small motors. The PhidgetLED can also be used to drive opto-isolators and MOSFET SSRs. A diode integrated into the 1032 on each cathode will clamp inductive surges to the anode supply voltage.


==Power Requirements and Power Supply Selection==
==Power Requirements and Power Supply Selection==


The power supply that is included with the 1031 is rated at 12V and 2A (max).  If your application requires more power, a larger power supply may be necessary.  The on-board voltage regulator is able to supply up to 6A for each LED supply voltage setting, as long as the power supply is able to provide enough voltage and current to the regulator. Assume an efficiency of 80% for the on-board voltage regulator when determining if a different power supply is required.
The power supply that is included with the 1032 is rated at 12V and 2A (max).  If your application requires more power, a larger power supply may be necessary.  The on-board voltage regulator is able to supply up to 6A for each LED supply voltage setting, as long as the power supply is able to provide enough voltage and current to the regulator. Assume an efficiency of 80% for the on-board voltage regulator when determining if a different power supply is required.
 
==Heat Dissipation and Thermal Protection==
 
Projects that require a high supply voltage, or have a lot of heat being produced from over voltage settings, will have over-temperature problems.  This can be mitigated somewhat by understanding how channels are grouped and how the heat is distributed around the 1031. Channels are split into four groups: (0-7,24-31), (8-23), (32-39, 56-63) and (40-55); each controlled by their own individual IC. Evenly distributing the LEDs that may produce a lot of heat across these groups will balance the load on the ICs and reduce the risk of thermal overload. When thermal overload occurs, the integrated circuit (IC) controlling the involved LEDs will disable the output of all the channels it controls.  For example, if an over-temperature occurs due to channel 12, all of the channels 8 through 23 will be disabled by the IC until the temperature back within the operating range.  Thermal protection is activated when the die of the IC reaches approximately 160 degrees Celsius.  Once the over-temperature fault has been corrected (ie, the IC has cooled down), the output channels will be re-enabled with the same settings as before the thermal shutdown. An error message will be produced during an over-temperature.

Latest revision as of 17:52, 31 January 2013


RBG.jpg


Introduction

Like normal diodes, Light Emitting Diodes (LEDs) are semiconductor devices designed to conduct current in one direction only. What makes LEDs unique is their internal material makeup: when atoms in an LED release energy due to the flow of forward current, it is released in the form of photons (light). Different construction materials and various phosphor coatings are used to produce numerous colors of light.

LEDs that Phidgets sells are all operable via the digital outputs on any of our interface kits. However Phidgets also sells a specific PhidgetLED-64 Advanced LED controller since it is often desirable to control more LEDs than even the 1012 Phidget Interface Kit 0/16/16 can operate. It offers some unique features such as brightness control.

How it works

Parts of an LED. The flat spot on the epoxy casing, is an anchor to prevent twisting from damaging the leads.

LEDs emit light from current flowing through them. As the current flows, the electronics experience a sudden drop in energy level (voltage). When that happens they release energy in the form of light. The amount of light produced is proportional to the current. Depending on the material used to make the LED, different colors can be created. Like a conventional diode, the current can only flow in one direction - from the anode to the cathode.

Controlling LEDs

Forward Voltage

The materials used within LEDs that cause them to emit different colors of light affect a property called its forward voltage. The forward voltage is the voltage at which current in the forward direction will flow through the device and allow the LED to convert electrical energy into light. If the voltage applied to the LED is below the forward voltage of the LED, very little current (or none) may flow, and therefore very little light will be emitted. Most standard LEDs with colors such as red, amber, orange, yellow, and green have forward voltages below 2.75 Volts, and can be used with a digital output by simply soldering them to a connector-wire and inserting the wire into the output port. The forward voltage in the 1032 - PhidgetLED will default to 2.75V, and the maximum current defaults to 20mA.

Supply Voltage

To be an effective LED controller your digital outputs must be capable of
adjusting the forward voltage supplied to the LEDs to 1.7, 2.75, 3.9 and 5 volts
settings allowing you to properly drive blue, white, violet, ultra violet and purple LEDs.
The supply voltage will affect all LEDs. If you set the supplied voltage too high,
power will be wasted and the controller may shut down from thermal overload. If you
set the supply voltage too low, your LEDs will not be driven at the requested
current, and will be dim or non-functional.
Typical Forward Voltages
Color Forward Voltage
Infrared < 1.9
Red 1.7 to 2.2
Orange 2.0 to 2.2
Yellow 2.1 to 2.4
Green 2 to 2.3
Blue 3.2 to 4.0
Ultraviolet 2.1 to 3.8
White 3.3 to 3.6

Maximum Current and Brightness Control

Most LEDs have a current rating of 20, 40, 60 or 80mA. The Phidgets DiscreteLED API call can be used to provide more current or control brightness and will adjust the current linearly between 0 and the set maximum. This however does not imply a precise method for controlling the visibility of emitted light, as this is affected by the construction and quality of the LED as well as the eyes of the viewer. Be cautious when changing the current property. Many small LEDs are designed for a maximum 20mA, and can be destroyed if driven at higher currents.

Ledcurrent.png

Choosing Current and Voltage Settings

Make sure to choose the minimum supply voltage setting to drive the LED that requires the most voltage during operation. Any extra voltage not required by the LED will be converted to heat by the 1032. For example, a Blue LED being driven at 20mA, 3.9V Supply, that requires 3.7 volts will cause (3.9V-3.7V + 0.4V) * 0.02A = 12 milliwatts of heat to be produced on the 1032. If this example instead uses a high power, 1.5V infrared LED at 80mA, this will create (3.9V-1.5V+0.4V)*0.08 Amps = 224 milliwatts of heat. See the Heat Dissipation and Thermal Protection section later on in this manual for more information about this issue.

Multiplexed LEDs

Multiplexing is a system wherein the entire display is not active at the same time. Instead, sub-units of the display are driven one at a time and the electronics combine with human persistence of vision (the phenomenon of the eye by which an afterimage is thought to persist for approximately one twenty-fifth of a second on the retina) to make the viewer believe the entire display is continuously active. Many controllers use this architecture to reduce power consumption. 7 segment display clocks are an example of this.

In an effort to reduce electrical noise in the system the PhidgetLED does not use multiplexing. All 64 anodes are connected to the same power supply and the cathode of each LED connection is attached to an individual constant current sink. Also, the LEDs are not controlled by PWM - they are driven at a constant current.

Other uses for LED controllers

LED controllers are typically just a set of special digital outputs. This means they aren't limited to just controlling LEDs. They can be used to control relays, solenoids and even very small motors. The PhidgetLED can also be used to drive opto-isolators and MOSFET SSRs. A diode integrated into the 1032 on each cathode will clamp inductive surges to the anode supply voltage.

Power Requirements and Power Supply Selection

The power supply that is included with the 1032 is rated at 12V and 2A (max). If your application requires more power, a larger power supply may be necessary. The on-board voltage regulator is able to supply up to 6A for each LED supply voltage setting, as long as the power supply is able to provide enough voltage and current to the regulator. Assume an efficiency of 80% for the on-board voltage regulator when determining if a different power supply is required.