Professional Documents
Culture Documents
University of Arizona
Lab 5
Pre-Lab
Group Number: Irfanil Huda Ani’matus
Ashibri Shob’rina
3. Prelab Questions:
a. What is the approximate range of distance measurements for our
Parallax PING))) sensor?
Estimated distance measurement for parallax PING))) for non-contact
distances of around 2cm (0.8 inches) to 3 meters (3.3 yards). Because this
makes it easy to connect to microcontrollers such as the Propeller chip and
Arduino that only need an I / O pin.
b. What is the library you have to use for the LCD display?
The LiquidCrystal library is a library that we can use to control the LCD
screen with the Hitachi HD44780 driver. We can tell by the 16 pin
interface. The LCD will also show the time in seconds when Arduino is
reset. Like when outputting "Hello World!" on display.
c. Take a look at the pin initialization call for the LCD. What are the
parameters it takes and what does each one do
LCD has a parallel interface because the microcontroller manipulates
several interface pins to control the display at once. The following are the
parameters:
1. A register select (RS) pin that has fiction to controls wherein the
LCD's memory the user want to write the data. The user was able to
choose two options, either to hold what goes on the screen by using a
data register or instruction register, which is where the LCD's
controller looks for instructions on what to do next.
2. A Read / Write (R / W) pin that selects reading mode or writing mode
3. An Enable pin, which allows writing to the register
4. 8 data pins (D0 -D7), the states of these pins (high or low) are the bits
that you're writing to a register when you write, or the values you're
reading when you read.
5. Display Contrast pin (Vo) to set the desired contrast for LCD, power
supply pins (+5V and Gnd) to give the power to the LCD, and LED
Backlight (Bklt+ and BKlt-) pins to turn on and off the LED backlight,
respectively.