AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store
Write to the LCD1602
Intermediate 25 minutes

Use the LiquidCrystal library in 4-bit mode. RS=D12, E=D11 and data D4–D7=D5,D4,D3,D2. Print a greeting and elapsed seconds.

Use the LiquidCrystal library in 4-bit mode. RS=D12, E=D11 and data D4–D7=D5,D4,D3,D2. Print a greeting and elapsed seconds.

Use the Uno R3 Learning Kit. Build with power disconnected, check the labelled connections, then upload the supplied sketch. Drag or zoom the 3D model to inspect it from any angle.

Also needed

Use matching female-ended jumper leads or a soldered 2.54mm header if your LCD is supplied with empty pads.

Explore all kit tutorials

View Markdown

Step 1 — Watch the complete build

Press Play for the narrated build. You can rotate and zoom the model while it plays, or follow the individual steps below.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Keep U S B disconnected while you build. On this breadboard, each group of five holes shares a connection; the centre channel separates the two halves. You can drag the 3D view to look around. Connect the Arduino’s five volt output to the separate motor supply rail. Connect Arduino ground to the lower ground rail. Add the 16 × 2 character L C D. Keep its terminals accessible for the connections that follow. Add the 10 kiloohms rotary potentiometer. Its 1 lead goes into column 10 row E; the highlights show the remaining holes. Add the 330 ohms resistor. Its Pin 0 lead goes into column 20 row H; the highlights show the remaining holes. Connect the screen's ground supply pin to the lower ground rail. Connect the screen’s positive supply pin to the separate motor supply rail. Connect the screen’s RW pin to the lower ground rail. Connect the potentiometer’s 1 pin to the separate motor supply rail. Connect the potentiometer’s 3 pin to the lower ground rail. Connect the potentiometer’s WIPER pin to the screen’s VO pin. Connect the screen’s RS pin to Arduino digital pin 12. Connect the screen’s E pin to Arduino digital pin 11. Connect the screen’s D4 pin to Arduino digital pin 5. Connect the screen’s D5 pin to Arduino digital pin 4. Connect the screen’s D6 pin to Arduino digital pin 3. Connect the screen’s D7 pin to Arduino digital pin 2. Connect the separate motor supply rail to one end of the resistor. Connect the other end of the resistor to the screen’s A pin. Connect the screen’s K pin to the lower ground rail. Check all wiring. Connect the square U S B-B plug to the Uno and the U S B-A plug to your computer. Use Verify and Upload in the code editor below.

Step 2 — Understand the breadboard

Keep USB disconnected while you build. On this breadboard, each group of five holes shares a connection; the centre channel separates the two halves. You can drag the 3D view to look around.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Keep U S B disconnected while you build. On this breadboard, each group of five holes shares a connection; the centre channel separates the two halves. You can drag the 3D view to look around.

Step 3 — Connect Uno 5V → B+ rail 3

Connect the Arduino’s five volt output to the separate motor supply rail.

ConnectTo
Uno 5VB+ rail 3
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the Arduino’s five volt output to the separate motor supply rail.

Step 4 — Connect Uno GND → B- rail 1

Connect Arduino ground to the lower ground rail.

ConnectTo
Uno GNDB- rail 1
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect Arduino ground to the lower ground rail.

Step 5 — Place 16 × 2 character LCD

Add the 16 × 2 character LCD. Keep its terminals accessible for the connections that follow.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 16 × 2 character L C D. Keep its terminals accessible for the connections that follow.

Step 6 — Place 10 kΩ rotary potentiometer

Add the 10 kΩ rotary potentiometer. Its 1 lead goes into column 10 row E; the highlights show the remaining holes.

Exact breadboard holes
  • pot · 1 → column 10 row E
  • pot · WIPER → column 9 row E
  • pot · 3 → column 8 row E
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 10 kiloohms rotary potentiometer. Its 1 lead goes into column 10 row E; the highlights show the remaining holes.

Step 7 — Place 330 Ω resistor

Add the 330 Ω resistor. Its Pin 0 lead goes into column 20 row H; the highlights show the remaining holes.

Exact breadboard holes
  • r · Pin 0 → column 20 row H
  • r · Pin 1 → column 24 row H
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 330 ohms resistor. Its Pin 0 lead goes into column 20 row H; the highlights show the remaining holes.

Step 8 — Connect 16 × 2 character LCD VSS → B- rail 23

Connect the screen’s VSS pin to the lower ground rail.

ConnectTo
16 × 2 character LCD VSSB- rail 23
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen's ground supply pin to the lower ground rail.

Step 9 — Connect 16 × 2 character LCD VDD → B+ rail 25

Connect the screen’s VDD pin to the separate motor supply rail.

ConnectTo
16 × 2 character LCD VDDB+ rail 25
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s positive supply pin to the separate motor supply rail.

Step 10 — Connect 16 × 2 character LCD RW → B- rail 27

Connect the screen’s RW pin to the lower ground rail.

ConnectTo
16 × 2 character LCD RWB- rail 27
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s RW pin to the lower ground rail.

Step 11 — Connect column 10 row A → B+ rail 10

Connect the potentiometer’s 1 pin to the separate motor supply rail.

ConnectTo
column 10 row AB+ rail 10
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the potentiometer’s 1 pin to the separate motor supply rail.

Step 12 — Connect column 8 row A → B- rail 8

Connect the potentiometer’s 3 pin to the lower ground rail.

ConnectTo
column 8 row AB- rail 8
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the potentiometer’s 3 pin to the lower ground rail.

Step 13 — Connect column 9 row A → 16 × 2 character LCD VO

Connect the potentiometer’s WIPER pin to the screen’s VO pin.

ConnectTo
column 9 row A16 × 2 character LCD VO
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the potentiometer’s WIPER pin to the screen’s VO pin.

Step 14 — Connect 16 × 2 character LCD RS → Uno D12/MISO

Connect the screen’s RS pin to Arduino digital pin 12.

ConnectTo
16 × 2 character LCD RSUno D12/MISO
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s RS pin to Arduino digital pin 12.

Step 15 — Connect 16 × 2 character LCD E → Uno D11 PWM/MOSI

Connect the screen’s E pin to Arduino digital pin 11.

ConnectTo
16 × 2 character LCD EUno D11 PWM/MOSI
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s E pin to Arduino digital pin 11.

Step 16 — Connect 16 × 2 character LCD D4 → Uno D5 PWM

Connect the screen’s D4 pin to Arduino digital pin 5.

ConnectTo
16 × 2 character LCD D4Uno D5 PWM
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s D4 pin to Arduino digital pin 5.

Step 17 — Connect 16 × 2 character LCD D5 → Uno D4

Connect the screen’s D5 pin to Arduino digital pin 4.

ConnectTo
16 × 2 character LCD D5Uno D4
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s D5 pin to Arduino digital pin 4.

Step 18 — Connect 16 × 2 character LCD D6 → Uno D3 PWM

Connect the screen’s D6 pin to Arduino digital pin 3.

ConnectTo
16 × 2 character LCD D6Uno D3 PWM
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s D6 pin to Arduino digital pin 3.

Step 19 — Connect 16 × 2 character LCD D7 → Uno D2

Connect the screen’s D7 pin to Arduino digital pin 2.

ConnectTo
16 × 2 character LCD D7Uno D2
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s D7 pin to Arduino digital pin 2.

Step 20 — Connect B+ rail 20 → column 20 row J

Connect the separate motor supply rail to one end of the resistor.

ConnectTo
B+ rail 20column 20 row J
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the separate motor supply rail to one end of the resistor.

Step 21 — Connect column 24 row J → 16 × 2 character LCD A

Connect the other end of the resistor to the screen’s A pin.

ConnectTo
column 24 row J16 × 2 character LCD A
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the other end of the resistor to the screen’s A pin.

Step 22 — Connect 16 × 2 character LCD K → B- rail 29

Connect the screen’s K pin to the lower ground rail.

ConnectTo
16 × 2 character LCD KB- rail 29
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the screen’s K pin to the lower ground rail.

Step 23 — Place USB-A to USB-B cable · Uno

Check all wiring. Connect the square USB-B plug to the Uno and the USB-A plug to your computer. Use Verify and Upload in the code editor below.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Check all wiring. Connect the square U S B-B plug to the Uno and the U S B-A plug to your computer. Use Verify and Upload in the code editor below.

Step 24 — Program your Uno

Choose Arduino Uno. Verify, pair the board and Upload this sketch. Keep USB connected. Use the LiquidCrystal library in 4-bit mode. RS=D12, E=D11 and data D4–D7=D5,D4,D3,D2. Print a greeting and elapsed seconds.

Write to the LCD1602Open in English ↗

Step 25 — Try it and troubleshoot

Turn the contrast potentiometer until the characters appear clearly. The second line counts elapsed seconds.

If it does not work

Backlight without text is often a contrast setting or an incorrect RS/E/data connection. Check the header labels rather than the viewing orientation.

Parts List

Required Parts (1)

Uno R3 Learning kit
Uno R3 Learning kit

Use the components named in this tutorial. A computer and any additional power supply are not included.

x1

$64.70

In stock

Project Summary

1 part total

Required parts $64.70
Total (required) $64.70

Unavailable items will be skipped

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.