0% found this document useful (0 votes)
83 views17 pages

7 Segment

The document provides an overview of 7-segment displays, which are electronic devices used to display decimal numerals in various applications like clocks and calculators. It explains the working mechanism of the display, the types (Common Cathode and Common Anode), and includes a basic integration guide with Arduino for displaying numbers 0 to 9. The document also includes coding examples for controlling the display using an Arduino board.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views17 pages

7 Segment

The document provides an overview of 7-segment displays, which are electronic devices used to display decimal numerals in various applications like clocks and calculators. It explains the working mechanism of the display, the types (Common Cathode and Common Anode), and includes a basic integration guide with Arduino for displaying numbers 0 to 9. The document also includes coding examples for controlling the display using an Arduino board.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

7 Segment

Display
Here is where your presentation begins
CONTENTS

1. Explain about 7-segment display


2. Describe the Working of the 7-segment display
3. Discuss the types of 7-segment display
4. Integrate the 7-segment display with Arduino

2
INTRODUCTION

A seven-segment display is a form of an electronic display


device for
displaying decimal numerals that is an alternative to the more
complex dot matrix displays.
Seven-segment displays are widely used in digital clocks,
electronic
meters, basic calculators, and other electronic devices that
display information.

3
HOW ITS WORK ?

Let's briefly discuss the characteristics and functionality of the


7-segment display before we connect it to an Arduino.
The 7-segment displays are just seven LEDs lined up in a particular
pattern. In this case, the number '8' shape. Each of the seven LEDs is
called a segment because when illuminated, the segment forms part
of a numerical digit (both Decimal and Hex) to be displayed. An
additional 8th LED is sometimes used to indicate a decimal point.

5
● Each of the seven LEDs in the display is given a positional segment,
with one of its connection pins being brought straight out of the
rectangular plastic package.
● These individual LED pins are labelled from a through to g representing each
LED. The other LED pins are connected and wired to form a common pin.
● To turn a particular display part on and off, you set the appropriate pin
HIGH or LOW, just like a regular LED.
So that some segments will be light and others will be dark, allowing
the desired character pattern of the number to be generated on
display.
● This allows us to display each of the ten decimal digits 0
through to 9 on the same 7-segment display.

6
TYPES OF
7SEGMENT
Seven Segment displays are Common Cathode
(CC) and Common Anode (CA).
Comman Cathode
The Internal structure of both types is nearly the
same. The difference is the polarity of the LEDs
and the common terminal. As their name
suggests, the common cathode has all the
cathodes of the LEDs in a 7-segment connected,
and the common anode has all the anodes of the
LEDs in a 7-segment connected.In the common
cathode display, all the cathode connections of
the LED segments are connected to ‘logic 0' /
GND. The individual segments are then
illuminated by applying a HIGH /' logic 1' signal to
the individual Anode terminals (a-g).
Comman Anode

You can see the type by testing it; when you


connect one of the centre pins from the
seven segments to GND and connect one of
the other pins to VCC, and it turns on, that
means the seven segments are common
cathodes. Otherwise, the

seven-segment is a common anode.


Objective:

To Display Numbers
between 0 to 9.
Component Required

Resistor 330
Ohm-8 Nos*

1 2 3 4

UNO 7 SEGMENT JUMPER WIRES

*It can also be done with one single 1k OHM resistance at a common pin
attached to the ground rather than using eight separate resistances.
7 SEGMENT PIN
CODING

// DECLARING THE PIN NUMBER ON ARDUINO BOARD


int a=2;
int b=3;
int c=4;
int d=5;
int e=6;
int f=7;
int g=9;

14
// DECLARING THE OUTPUT PINS

void setup()

{
pinMode(a,OUTPUT);
pinMode(b,OUTPUT);
pinMode(c,OUTPUT);
pinMode(d,OUTPUT);
pinMode(e,OUTPUT);
pinMode(f,OUTPUT);
pinMode(g,OUTPUT);
}

15
// TO DISPLAY NUMBER 9

void loop()
{
digitalWrite(a,HIGH);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,LOW);
digitalWrite(f,HIGH);
digitalWrite(g,HIGH);

16
// TO DISPLAY NUMBER 8

digitalWrite (a,HIGH);
digitalWrite (b,HIGH);
digitalWrite (c,HIGH);
digitalWrite (d,HIGH);
digitalWrite (e,HIGH);
digitalWrite (f,HIGH);
digitalWrite (g,HIGH);

17

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy