Вы находитесь на странице: 1из 2

Microprocessor Systems Lab Manual 10

Roll No. _________________

LCD control with Arduino


Objective
In this lab students will learn about:
 How to use Arduino to control LCD

Exercise

To start with, we will create a demonstration project that will show off most of the functions
available in the LiquidCrystal.h library. We will be using a backlit 16x2 LCD Display.

Connect it UP

The contract adjustment pin on the LCD must be connected via a current-limiting resistor to
adjust the contrast the desired level. A value of around 10KΩ should suffice. If you find it
difficult to get the right value, then connect a potentiometer with value between about 4KΩ to
10KΩ with the left leg to +5V, the right leg to ground, and the center leg to the contrast
adjustment pin (pin 3 on my LCD). This way, you can use the knob to adjust the contrast until
you can see the display clearly.
The backlight on the LCD I used required 4.2V, so I added the appropriate current-limiting
resistor between +5V and the LED power supply pin (pin 15 in my LCD). You could, of course,
connect the LED power pin to a PWM pin (via a current-limiting resistor) on the Arduino and
use a PWM output to control the brightness of the backlight.
Microprocessor Systems Lab Manual 10
Roll No. _________________

Write the description of the algorithm below:


______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________

Вам также может понравиться