Knowledge Base
...
Applied PIC Micro Development
Basics: Working With Hardware
LED - Light Emitting Diode
5min
lead in the led or light emitting diode is a device that performs two functions the first is that it acts as a 1 way electronic "valve" in the sense that power can only flow in one direction and it will inhibit the flow in the opposite direction in the course of doing this, the led will emit light leds are low power devices, however, and don't work well as rectifier diodes they are however excellent devices for display purposes, and building different types of displays these types of displays range in complexity from a single led used as an indicator and build out into 7 segment displays, scrolling displays, and so on led basics identifying the component the standard led is available in a plastic 2 pin package, 3mm, 5mm, or 7mm the device is polarised so one side is positive and the other negative these ends are known as the anode and the cathode when used in circuit, the anode would be connected to the positive or v+ and the ve to ground or 0 volts dimensions and engineering considerations an example of a 3mm is shown below with its relevant dimensional information these details are useful during project planning if for example you have to install an array of leds or are designing a pcb where a collection of leds is in place integrating the microcontroller integrating the microcontroller is a simple connection between the positive and the ground, and once that connection is made, the software can be used to power the led to do that the output is driven, and that provides the led with the power it requires the output of a microcontroller can only supply a maximum of 20ma, so the 10ma that has been supplied is sufficient to illuminate the led lead out the next step is the code, and once flashed to the device you have a functioning "hello world" project for details on the hello world project, see the following "hello world" docid\ igu dpkp6qm0ulq173wo7