9
LCD Displays
In this
chapter, you look at how to write software to control LCD displays.
Figure 9-1
shows the kind of LCD display used.
This is a book about software, not hardware, but in this chapter, we will have to explain
a little about how the electronics of these displays work so that you understand how to
drive them.
The LCD module that we use is a prebuilt Arduino shield that can just be plugged on
top of an Arduino board. In addition to its display, it also has some buttons. There are a
number of different shields, but nearly all of them use the same LCD controller chip (the
HD44780), so look for a shield that uses this controller chip.
I used the DFRobot LCD Keypad Shield for Arduino. This module supplied by
DFRobot (
www.robotshop.com
) is inexpensive and provides an LCD display that is 16
characters by 2 rows and also has six pushbuttons.
The shield comes assembled, so no soldering is required; you just plug it on top of your
Arduino board (see
Figure 9-2
).
The LCD shield uses seven of the Arduino pins to control the LCD display and one
analog pin for the buttons. So we cannot use these Arduino pins for any other purpose.
Dostları ilə paylaş: