SlideShare a Scribd company logo
1 of 20
TECHVILLA
WWW.TECHVILLA.ORG.IN
OUTPUT DEVICES INTERFACING
• Hardware information.
• Different compiler information.
• PRACTICAL1 : LED interfacing.
• PRACTICAL2: SSD interfacing.
• PROJECT: microcontroller based led pattern generation
HARDWARE INFORMATION
• LEDs
• Seven segment displays.
LIGHT EMITTING DIODE
WHAT IS AN LED?
• An led is a pn junction opto-semiconductor that emits a monochromatic(single color)
light when operated in a forward biased junction.
• Instead of a filament they use a semiconductor diode which emits narrow-spectrum light.
• Depending on the composition & condition of the semiconducting material used
(Silicone, germanium), they come in either Infrared for sensing heat, Visible for every
day use, or Near-Ultraviolet for spotting stains at a crime-scene.
• An LED consists of a chip of semiconducting material that has been “doped” with
impurities in order to create a p-n junction.
• A p-n junction is basically a junction between an anode and a cathode.
• Current flows easily from the p-side to the n-side, but never in the reverse order.
• The wavelength and color of the LED depends on the band-gap energy of the materials
forming the p-n junction
WORKING PRINCIPLE
LED CHARACTERISTICS
LED CHARACTERISTICS
• Forward bias of approximately 1 volt is needed to give significant forward
current.
• The commercially used LED’s have a typical voltage drop between 1.5 Volt
to 2.5 Volt or current between 10 to 50 milliamperes.
• Series resistance is determined by the following equation.
• Rseries = (Vsupply – V)/I
• Vsupply – Supply Voltage
• V – LED forward bias voltage
SEVEN SEGMENT DISPLAYS
WHAT IS A SEVEN SEGMENT DISPLAY?
• A Seven-Segment Display (SSD) is simply a figure eight grouping of
LEDs [some include a decimal point (DP)].
• Each Segment is labeled (a) through (g).
• SSDs are available in two configurations
• Common Cathode (all LED cathodes are connected)
• Common Anode (all LED anodes are connected)
TYPES OF SSD
SEVEN SEGMENT DISPLAY CODES
SEVEN SEGMENT DISPLAY CODES
LED INTERFACING WITH AVR
• Leds require around 50mA,so we usually require a current-limiting
resistor.
• The resistance of the resistor is calculated using the well known
formula V=IR.
ATMEGA16 INTERFACING WITH LEDS
C PROGRAMMING
#include <avr/io.h>
#include <util/delay.h>
Int main()
{
DDRX = 0xFF; // x – can be PORTA/B/C/D
while(1) {
PORTX = 0xff; }
return 0;
}
SSD INTERFACING WITH AVR
C PROGRAM
#include <avr/io.h>
#include <util/delay.h>
Int main()
{
DDRX = 0xFF ; // x can be A,B,C or D
while(1) {
PORTA = 0b00110000; // display number 1
_delay_ms(1000); // delay 1 sec
PORTA = 0b01011011; // display number 2
_delay_ms(1000);
PORTA = 0b01001111; // display number 3
_delay_ms(1000);
PORTA = 0b01100110; // display number 4
_delay_ms(1000);
PORTA = 0b01110111; // Display letter A
_delay_ms(1000);
PORTA = 0b00111001; // display letter C
_delay_ms(1000);
PORTA = 0b01111001; // display letter E
_delay_ms(1000);
PORTA = 0b01110001; // display letter F
_delay_ms(1000);

More Related Content

What's hot

Basic electronic components used in robotics
Basic electronic components used in roboticsBasic electronic components used in robotics
Basic electronic components used in roboticsKshitij Wagle
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics componentABHISHEK MAURYA
 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for BeginnersSarwan Singh
 
Sensitive intrucer alaram
Sensitive intrucer alaramSensitive intrucer alaram
Sensitive intrucer alaramSai Kumar
 
デザインキット・擬似共振回路のインデックス
デザインキット・擬似共振回路のインデックスデザインキット・擬似共振回路のインデックス
デザインキット・擬似共振回路のインデックスTsuyoshi Horigome
 
Simple led flasher circuits
Simple led flasher circuitsSimple led flasher circuits
Simple led flasher circuitsMuhammad Khan
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoYong Heui Cho
 
Basic workshop practice (electronics group) 17005
Basic workshop practice (electronics group) 17005Basic workshop practice (electronics group) 17005
Basic workshop practice (electronics group) 17005Pravin Shirke
 
デザインキット・擬似共振回路のスパイスモデル
デザインキット・擬似共振回路のスパイスモデルデザインキット・擬似共振回路のスパイスモデル
デザインキット・擬似共振回路のスパイスモデルTsuyoshi Horigome
 
Interfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using ArduinoInterfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using ArduinoDiksha Prakash
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software DevelopmentSanjay Kumar
 
Arduino Uno Board - Robomart
Arduino Uno Board - RobomartArduino Uno Board - Robomart
Arduino Uno Board - Robomartraspberrypib
 
Introduction To Arduino
Introduction To ArduinoIntroduction To Arduino
Introduction To Arduinounsheffield
 
Automatic led night lamp
Automatic led night lampAutomatic led night lamp
Automatic led night lamppratik parekh
 
A Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensorA Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensorsvrohith 9
 

What's hot (20)

Basic electronic components used in robotics
Basic electronic components used in roboticsBasic electronic components used in robotics
Basic electronic components used in robotics
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for Beginners
 
Arduino 123
Arduino 123Arduino 123
Arduino 123
 
Sensitive intrucer alaram
Sensitive intrucer alaramSensitive intrucer alaram
Sensitive intrucer alaram
 
デザインキット・擬似共振回路のインデックス
デザインキット・擬似共振回路のインデックスデザインキット・擬似共振回路のインデックス
デザインキット・擬似共振回路のインデックス
 
Simple led flasher circuits
Simple led flasher circuitsSimple led flasher circuits
Simple led flasher circuits
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Led blinker
Led blinkerLed blinker
Led blinker
 
Basic workshop practice (electronics group) 17005
Basic workshop practice (electronics group) 17005Basic workshop practice (electronics group) 17005
Basic workshop practice (electronics group) 17005
 
デザインキット・擬似共振回路のスパイスモデル
デザインキット・擬似共振回路のスパイスモデルデザインキット・擬似共振回路のスパイスモデル
デザインキット・擬似共振回路のスパイスモデル
 
Interfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using ArduinoInterfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using Arduino
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software Development
 
Arduino Uno Board - Robomart
Arduino Uno Board - RobomartArduino Uno Board - Robomart
Arduino Uno Board - Robomart
 
Introduction To Arduino
Introduction To ArduinoIntroduction To Arduino
Introduction To Arduino
 
Automatic led night lamp
Automatic led night lampAutomatic led night lamp
Automatic led night lamp
 
Diodes
Diodes Diodes
Diodes
 
A Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensorA Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensor
 
Electronic components
Electronic componentsElectronic components
Electronic components
 

Similar to Led

Ppt on interfacing led and 7 segmentwith 8951
Ppt on interfacing led  and 7 segmentwith 8951Ppt on interfacing led  and 7 segmentwith 8951
Ppt on interfacing led and 7 segmentwith 8951pooja jaiswal
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000bnsprasad
 
Analog Electronics ppt on Photo Diodes and LED by Being topper
Analog Electronics  ppt on Photo Diodes  and LED by Being topperAnalog Electronics  ppt on Photo Diodes  and LED by Being topper
Analog Electronics ppt on Photo Diodes and LED by Being topperVipin Kumar
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfAbdErrezakChahoub
 
microcontroller based tracking soloar.pptx
microcontroller based tracking soloar.pptxmicrocontroller based tracking soloar.pptx
microcontroller based tracking soloar.pptxtariqqureshi33
 
basic of led in market
basic of led in marketbasic of led in market
basic of led in marketMathan kumar
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshopKedarv
 
IRJET- Design and Development of a Programmable High Current Laser Diode ...
IRJET-  	  Design and Development of a Programmable High Current Laser Diode ...IRJET-  	  Design and Development of a Programmable High Current Laser Diode ...
IRJET- Design and Development of a Programmable High Current Laser Diode ...IRJET Journal
 
FL7701 APEC Demo Performance_SMappus 01192012
FL7701 APEC Demo Performance_SMappus 01192012FL7701 APEC Demo Performance_SMappus 01192012
FL7701 APEC Demo Performance_SMappus 01192012Steve Mappus
 
Liquid crystal display
Liquid crystal displayLiquid crystal display
Liquid crystal displayVraj Patel
 

Similar to Led (20)

7 segment display.ppt
7 segment display.ppt7 segment display.ppt
7 segment display.ppt
 
Ppt on interfacing led and 7 segmentwith 8951
Ppt on interfacing led  and 7 segmentwith 8951Ppt on interfacing led  and 7 segmentwith 8951
Ppt on interfacing led and 7 segmentwith 8951
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000
 
ESD protection
ESD protection ESD protection
ESD protection
 
Analog Electronics ppt on Photo Diodes and LED by Being topper
Analog Electronics  ppt on Photo Diodes  and LED by Being topperAnalog Electronics  ppt on Photo Diodes  and LED by Being topper
Analog Electronics ppt on Photo Diodes and LED by Being topper
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
 
Ardui no
Ardui no Ardui no
Ardui no
 
Barcode scanner
Barcode scannerBarcode scanner
Barcode scanner
 
microcontroller based tracking soloar.pptx
microcontroller based tracking soloar.pptxmicrocontroller based tracking soloar.pptx
microcontroller based tracking soloar.pptx
 
Basic Electronics
Basic ElectronicsBasic Electronics
Basic Electronics
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
 
399 ppt.pptx
399 ppt.pptx399 ppt.pptx
399 ppt.pptx
 
LED INTERFACE.ppt
LED INTERFACE.pptLED INTERFACE.ppt
LED INTERFACE.ppt
 
basic of led in market
basic of led in marketbasic of led in market
basic of led in market
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
IRJET- Design and Development of a Programmable High Current Laser Diode ...
IRJET-  	  Design and Development of a Programmable High Current Laser Diode ...IRJET-  	  Design and Development of a Programmable High Current Laser Diode ...
IRJET- Design and Development of a Programmable High Current Laser Diode ...
 
Ppptcoxandking
PpptcoxandkingPpptcoxandking
Ppptcoxandking
 
Pppt
PpptPppt
Pppt
 
FL7701 APEC Demo Performance_SMappus 01192012
FL7701 APEC Demo Performance_SMappus 01192012FL7701 APEC Demo Performance_SMappus 01192012
FL7701 APEC Demo Performance_SMappus 01192012
 
Liquid crystal display
Liquid crystal displayLiquid crystal display
Liquid crystal display
 

More from Techvilla

Raspberry pi Part 26
Raspberry pi Part 26Raspberry pi Part 26
Raspberry pi Part 26Techvilla
 
Raspberry pi Part 25
Raspberry pi Part 25Raspberry pi Part 25
Raspberry pi Part 25Techvilla
 
Raspberry pi Part 24
Raspberry pi Part 24Raspberry pi Part 24
Raspberry pi Part 24Techvilla
 
Raspberry pi Part 23
Raspberry pi Part 23Raspberry pi Part 23
Raspberry pi Part 23Techvilla
 
Raspberry pi Part 22
Raspberry pi Part 22Raspberry pi Part 22
Raspberry pi Part 22Techvilla
 
Raspberry pi Part 21
Raspberry pi Part 21Raspberry pi Part 21
Raspberry pi Part 21Techvilla
 
Raspberry pi Part 20
Raspberry pi Part 20Raspberry pi Part 20
Raspberry pi Part 20Techvilla
 
Raspberry pi Part 19
Raspberry pi Part 19Raspberry pi Part 19
Raspberry pi Part 19Techvilla
 
Raspberry pi Part 18
Raspberry pi Part 18Raspberry pi Part 18
Raspberry pi Part 18Techvilla
 
Raspberry pi Part 17
Raspberry pi Part 17Raspberry pi Part 17
Raspberry pi Part 17Techvilla
 
Raspberry pi Part 16
Raspberry pi Part 16Raspberry pi Part 16
Raspberry pi Part 16Techvilla
 
Rasperry pi Part 15
Rasperry pi Part 15Rasperry pi Part 15
Rasperry pi Part 15Techvilla
 
Rasperry pi Part 13
Rasperry pi Part 13Rasperry pi Part 13
Rasperry pi Part 13Techvilla
 
Rasperry pi Part 12
Rasperry pi Part 12Rasperry pi Part 12
Rasperry pi Part 12Techvilla
 
Rasperry pi Part 10
Rasperry pi Part 10Rasperry pi Part 10
Rasperry pi Part 10Techvilla
 
Rasperry pi Part 9
Rasperry pi Part 9Rasperry pi Part 9
Rasperry pi Part 9Techvilla
 
Rasperry pi Part 8
Rasperry pi Part 8Rasperry pi Part 8
Rasperry pi Part 8Techvilla
 
Rasperry pi Part 7
Rasperry pi Part 7Rasperry pi Part 7
Rasperry pi Part 7Techvilla
 
Raspberry pi Part 6
Raspberry pi Part 6Raspberry pi Part 6
Raspberry pi Part 6Techvilla
 
Raspberry pi Part 5
Raspberry pi Part 5Raspberry pi Part 5
Raspberry pi Part 5Techvilla
 

More from Techvilla (20)

Raspberry pi Part 26
Raspberry pi Part 26Raspberry pi Part 26
Raspberry pi Part 26
 
Raspberry pi Part 25
Raspberry pi Part 25Raspberry pi Part 25
Raspberry pi Part 25
 
Raspberry pi Part 24
Raspberry pi Part 24Raspberry pi Part 24
Raspberry pi Part 24
 
Raspberry pi Part 23
Raspberry pi Part 23Raspberry pi Part 23
Raspberry pi Part 23
 
Raspberry pi Part 22
Raspberry pi Part 22Raspberry pi Part 22
Raspberry pi Part 22
 
Raspberry pi Part 21
Raspberry pi Part 21Raspberry pi Part 21
Raspberry pi Part 21
 
Raspberry pi Part 20
Raspberry pi Part 20Raspberry pi Part 20
Raspberry pi Part 20
 
Raspberry pi Part 19
Raspberry pi Part 19Raspberry pi Part 19
Raspberry pi Part 19
 
Raspberry pi Part 18
Raspberry pi Part 18Raspberry pi Part 18
Raspberry pi Part 18
 
Raspberry pi Part 17
Raspberry pi Part 17Raspberry pi Part 17
Raspberry pi Part 17
 
Raspberry pi Part 16
Raspberry pi Part 16Raspberry pi Part 16
Raspberry pi Part 16
 
Rasperry pi Part 15
Rasperry pi Part 15Rasperry pi Part 15
Rasperry pi Part 15
 
Rasperry pi Part 13
Rasperry pi Part 13Rasperry pi Part 13
Rasperry pi Part 13
 
Rasperry pi Part 12
Rasperry pi Part 12Rasperry pi Part 12
Rasperry pi Part 12
 
Rasperry pi Part 10
Rasperry pi Part 10Rasperry pi Part 10
Rasperry pi Part 10
 
Rasperry pi Part 9
Rasperry pi Part 9Rasperry pi Part 9
Rasperry pi Part 9
 
Rasperry pi Part 8
Rasperry pi Part 8Rasperry pi Part 8
Rasperry pi Part 8
 
Rasperry pi Part 7
Rasperry pi Part 7Rasperry pi Part 7
Rasperry pi Part 7
 
Raspberry pi Part 6
Raspberry pi Part 6Raspberry pi Part 6
Raspberry pi Part 6
 
Raspberry pi Part 5
Raspberry pi Part 5Raspberry pi Part 5
Raspberry pi Part 5
 

Recently uploaded

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 

Recently uploaded (20)

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 

Led

  • 2. OUTPUT DEVICES INTERFACING • Hardware information. • Different compiler information. • PRACTICAL1 : LED interfacing. • PRACTICAL2: SSD interfacing. • PROJECT: microcontroller based led pattern generation
  • 3. HARDWARE INFORMATION • LEDs • Seven segment displays.
  • 5. WHAT IS AN LED? • An led is a pn junction opto-semiconductor that emits a monochromatic(single color) light when operated in a forward biased junction. • Instead of a filament they use a semiconductor diode which emits narrow-spectrum light. • Depending on the composition & condition of the semiconducting material used (Silicone, germanium), they come in either Infrared for sensing heat, Visible for every day use, or Near-Ultraviolet for spotting stains at a crime-scene. • An LED consists of a chip of semiconducting material that has been “doped” with impurities in order to create a p-n junction. • A p-n junction is basically a junction between an anode and a cathode. • Current flows easily from the p-side to the n-side, but never in the reverse order. • The wavelength and color of the LED depends on the band-gap energy of the materials forming the p-n junction
  • 8. LED CHARACTERISTICS • Forward bias of approximately 1 volt is needed to give significant forward current. • The commercially used LED’s have a typical voltage drop between 1.5 Volt to 2.5 Volt or current between 10 to 50 milliamperes. • Series resistance is determined by the following equation. • Rseries = (Vsupply – V)/I • Vsupply – Supply Voltage • V – LED forward bias voltage
  • 10. WHAT IS A SEVEN SEGMENT DISPLAY? • A Seven-Segment Display (SSD) is simply a figure eight grouping of LEDs [some include a decimal point (DP)]. • Each Segment is labeled (a) through (g). • SSDs are available in two configurations • Common Cathode (all LED cathodes are connected) • Common Anode (all LED anodes are connected)
  • 14. LED INTERFACING WITH AVR • Leds require around 50mA,so we usually require a current-limiting resistor. • The resistance of the resistor is calculated using the well known formula V=IR.
  • 16. C PROGRAMMING #include <avr/io.h> #include <util/delay.h> Int main() { DDRX = 0xFF; // x – can be PORTA/B/C/D while(1) { PORTX = 0xff; } return 0; }
  • 18. C PROGRAM #include <avr/io.h> #include <util/delay.h> Int main() { DDRX = 0xFF ; // x can be A,B,C or D while(1) { PORTA = 0b00110000; // display number 1 _delay_ms(1000); // delay 1 sec
  • 19. PORTA = 0b01011011; // display number 2 _delay_ms(1000); PORTA = 0b01001111; // display number 3 _delay_ms(1000); PORTA = 0b01100110; // display number 4 _delay_ms(1000);
  • 20. PORTA = 0b01110111; // Display letter A _delay_ms(1000); PORTA = 0b00111001; // display letter C _delay_ms(1000); PORTA = 0b01111001; // display letter E _delay_ms(1000); PORTA = 0b01110001; // display letter F _delay_ms(1000);