0% found this document useful (0 votes)
30 views4 pages

Ep-1.3 21mca2001

The document provides instructions for connecting a 16x2 LCD display to an Arduino Uno board to display text. It lists the required hardware, describes how an Arduino and LCD work, and gives step-by-step directions to wire the components. The code uploads to the board to print and scroll "Hello World!" and another message on the LCD screen. Turning a potentiometer controls the LCD brightness. A gif shows the scrolling text output.

Uploaded by

local use
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views4 pages

Ep-1.3 21mca2001

The document provides instructions for connecting a 16x2 LCD display to an Arduino Uno board to display text. It lists the required hardware, describes how an Arduino and LCD work, and gives step-by-step directions to wire the components. The code uploads to the board to print and scroll "Hello World!" and another message on the LCD screen. Turning a potentiometer controls the LCD brightness. A gif shows the scrolling text output.

Uploaded by

local use
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Worksheet Number 1.

• Aim/Overview of the practical:

Design the circuit and write a program to Interface of 16*2 LCD with Arduino Uno to print the
message on LCD

• Hardware Required:
• LCD 16*2
• Resistor
• Arduino UNO3
• Breadboard
• Potentiometer

• Theory:
Arduino Uno is a microcontroller board that allows you to build electronics
projects by connecting sensors and other components to it. It is easy to use
and comes with a programming environment that simplifies the process of
writing code. It is used in a variety of applications, including robotics, home
automation, and many other projects.
A breadboard is a prototyping board used to build and test electronic
circuits. It has a grid of holes into which electronic components, such as
resistors, capacitors, and integrated circuits, can be inserted and connected
without the need for soldering. The holes are typically arranged in a series of
parallel rows and columns, allowing for easy circuit design and
modification. Breadboards come in various sizes and can be reused multiple
times for different projects. They are widely used by hobbyists, students, and
professionals for electronics prototyping and testing.
LCD stands for Liquid Crystal Display, and it is a type of display screen
commonly used in electronic devices, including Arduino boards. The 16x2
LCD is a type of LCD display that has 16 columns and 2 rows, allowing it to
display up to 32 characters at once.
The LCD display works by using a backlight to illuminate the display and
liquid crystals to block or allow light to pass through, creating the characters
or images on the screen. The LCD display can be controlled using an
Arduino board by connecting it to the board's digital pins and using a
specialized library that provides a set of functions for controlling the display.
A potentiometer is a type of variable resistor that is commonly used to
control the flow of electrical current in a circuit. It has a three-terminal
design, with one terminal connected to the input voltage or current, one
terminal connected to the ground or reference voltage, and the third terminal
connected to the output or load.

Implementation Steps:
Here are the step-by-step instructions to connect a 16x2 LCD display to an Arduino
Uno using a potentiometer and displaying a text:

• Gather the necessary materials:


• Arduino Uno board
• 16x2 LCD display
• Potentiometer (10k Ohm)
• Jumper wires
• Connect the LCD display to the Arduino Uno using jumper wires:
• Connect the LCD's GND pin to the GND pin on the Arduino board.
• Connect the LCD's VSS pin to the 5V pin on the Arduino board.
• Connect the LCD's V0 pin to the center pin of the potentiometer.
• Connect one of the outer pins of the potentiometer to the GND pin on
the Arduino board.
• Connect the other outer pin of the potentiometer to the 5V pin on the
Arduino board.
• Connect the control pins of the LCD to the Arduino board:
• Connect the LCD's RS pin to digital pin 2 on the Arduino board.
• Connect the LCD's RW pin to GND on the Arduino board.
• Connect the LCD's Enable pin to digital pin 3 on the Arduino board.
• Connect the data pins of the LCD to the Arduino board:
• Connect the LCD's D4 pin to digital pin 4 on the Arduino board.
• Connect the LCD's D5 pin to digital pin 5 on the Arduino board.
• Connect the LCD's D6 pin to digital pin 6 on the Arduino board.
• Connect the LCD's D7 pin to digital pin 7 on the Arduino board.
• Upload the code: Connect the Arduino board to your computer, select the
correct board and serial port in the Arduino IDE, and upload the code to the
board.
• Test the circuit: Start the simulation by clicking on Start Simulation.

Arduino Code:

// C++ code
//
#include <LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4,5,6,7); //Pins connected to LED
void setup()
{
lcd.begin(16, 2);
}

void loop()
{
int i = 0; //Initial position of text
bool forward = true; // Boolean to change the direction of
text

while(i >= 0){ //Loop to shift the text forward and backward
if(i == 4)
forward = false; //text reach the end and reverse
direction

lcd.setCursor(i,0); //printing text


lcd.print("Hello World!");
lcd.setCursor(i,1);
lcd.print("RITUL DARYAN");
delay(200); // add delay before clearing LED
lcd.clear();

if(forward) //check the direction


i++; //move text forward
else
i--; //move text backward
}
}

• Output (Screenshots from TinkerCad):


Output of the Circuit

Gif Format from TinkerCad :


Below .gif shows a moving text on LCD from one end to another in a loop.

• Learning outcomes (What I have learnt):

• Basic Learning and Implementation TinkerCad


• Functioning of Arduino Uno
• Usage of Breadboard, LCD, Potentiometer and Resistors
• Adding Potentiometer to the board and connecting to LCD.
• Coding and Displaying a text to LCD.

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