Arduino Hello World
Arduino Hello World
"
The LiquidCrystal library allows you to control LCD displays that
are compatible with the Hitachi HD44780 driver. There are many
of them out there, and you can usually tell them by the 16-pin
interface.
This example sketch prints "Hello World!" to the LCD and shows
the time in seconds since the Arduino was reset.
Hardware Required
hook-up wires
breadboard
Circuit
Before wiring the LCD screen to your Arduino or Genuino board
we suggest to solder a pin header strip to the 14 (or 16) pin count
connector of the LCD screen, as you can see in the image above.
To wire your LCD screen to your board, connect the following pins:
image developed using Fritzing. For more circuit examples, see the Fritzing
project page
Schematic
click the images to enlarge
image developed using Fritzing. For more circuit examples, see the Fritzing
project page
Code
/*
LiquidCrystal Library - Hello World
Demonstrates the use a 16x2 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.
This sketch prints "Hello World!" to the LCD
and shows the time.
The circuit:
LCD RS pin to digital pin
LCD Enable pin to digital
LCD D4 pin to digital pin
LCD D5 pin to digital pin
LCD D6 pin to digital pin
LCD D7 pin to digital pin
LCD R/W pin to ground
*
*
*
*
*
*
*
12
pin 11
5
4
3
2
*
*
*
*
*