Professional Documents
Culture Documents
Introduction to Engineering
7 Segment Display
Liquid Crystal Display LCD
7 Segement Display
The 7-segment displays are really just seven LEDs lined up in
a particular pattern.
In this case, the number ‘8’ shape we’re all familiar with.
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 for indication of a
decimal point.
To turn on and off a particular part of the display, you set the appropriate pin
HIGH or LOW just like you would with 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 the display.
This then allows us to display each of the ten decimal digits 0 through to 9
on the same 7-segment display.
In the common cathode display, all the cathode connections of the LED segments are
connected together to ‘logic 0’ / GND.
The individual segments are then illuminated by applying HIGH / ’logic 1’ signal to the individual
Anode terminals (a-g).
In the common anode display, all the anode connections of the LED segments are joined
together to logic “1”.
The individual segments are illuminated by applying a ground, logic “0” or “LOW” signal to the
Cathode of the particular segment (a-g).
if you just want to position the cursor in the upper-left of the LCD
without clearing the display, use home()
There are many applications like notepad++, in which pressing
‘insert’ key on the keyboard changes cursor. Just like that you can
change the cursor on the LCD using blink() or lcd.cursor() .
blink() function displays the blinking block of 5×8 pixels,
while lcd.cursor() displays an underscore (line) at the position to
which the next character will be written.
You can use the noBlink() function to turns off the blinking LCD
cursor and lcd.noCursor() to hide the LCD cursor.
You can scroll the contents of the display one space to the right
using lcd.scrollDisplayRight() or one space left
using lcd.scrollDisplayLeft() .
If you want to scroll the text continuously, you need to use these functions
inside a ‘for loop’.