SlideShare a Scribd company logo
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 robotics
Kshitij Wagle
 
Basic electronics component
Basic electronics componentBasic electronics component
Basic electronics component
ABHISHEK MAURYA
 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for Beginners
Sarwan Singh
 
Arduino 123
Arduino 123Arduino 123
Arduino 123
GOPI KRISHNA
 
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 Arduino
Yong Heui Cho
 
Led blinker
Led blinkerLed blinker
Basic workshop practice (electronics group) 17005
Basic workshop practice (electronics group) 17005Basic workshop practice (electronics group) 17005
Basic workshop practice (electronics group) 17005
Pravin 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 Arduino
Diksha Prakash
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software Development
Sanjay Kumar
 
Arduino Uno Board - Robomart
Arduino Uno Board - RobomartArduino Uno Board - Robomart
Arduino Uno Board - Robomart
raspberrypib
 
Introduction To Arduino
Introduction To ArduinoIntroduction To Arduino
Introduction To Arduino
unsheffield
 
Automatic led night lamp
Automatic led night lampAutomatic led night lamp
Automatic led night lamp
pratik parekh
 
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
svrohith 9
 
Electronic components
Electronic componentsElectronic components
Electronic components
archiesalangsang
 

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

7 segment display.ppt
7 segment display.ppt7 segment display.ppt
7 segment display.ppt
060RAMAKANTKUMAR
 
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
pooja jaiswal
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000bnsprasad
 
ESD protection
ESD protection ESD protection
ESD protection
ssuser1ded5f
 
PPT of Wireless Vehicle charging station nano Project
PPT of Wireless Vehicle charging station nano ProjectPPT of Wireless Vehicle charging station nano Project
PPT of Wireless Vehicle charging station nano Project
rs7054576148
 
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
Vipin Kumar
 
Ardui no
Ardui no Ardui no
Ardui no
Amol Sakhalkar
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
AbdErrezakChahoub
 
Barcode scanner
Barcode scannerBarcode scanner
Barcode scanner
Giritharan M
 
microcontroller based tracking soloar.pptx
microcontroller based tracking soloar.pptxmicrocontroller based tracking soloar.pptx
microcontroller based tracking soloar.pptx
tariqqureshi33
 
Basic Electronics
Basic ElectronicsBasic Electronics
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
CephasMpandikaKalemb
 
399 ppt.pptx
399 ppt.pptx399 ppt.pptx
399 ppt.pptx
AwesomeMoneY
 
LED INTERFACE.ppt
LED INTERFACE.pptLED INTERFACE.ppt
LED INTERFACE.ppt
UITkarthimech
 
basic of led in market
basic of led in marketbasic of led in market
basic of led in market
Mathan kumar
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
Kedarv
 
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
 

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
 
PPT of Wireless Vehicle charging station nano Project
PPT of Wireless Vehicle charging station nano ProjectPPT of Wireless Vehicle charging station nano Project
PPT of Wireless Vehicle charging station nano Project
 
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
 
Ardui no
Ardui no Ardui no
Ardui no
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
 
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 ...
 
Pppt
PpptPppt
Pppt
 
Ppptcoxandking
PpptcoxandkingPpptcoxandking
Ppptcoxandking
 
FL7701 APEC Demo Performance_SMappus 01192012
FL7701 APEC Demo Performance_SMappus 01192012FL7701 APEC Demo Performance_SMappus 01192012
FL7701 APEC Demo Performance_SMappus 01192012
 

More from Techvilla

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

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

weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 

Recently uploaded (20)

weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 

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);