Arduino LCD
A 16×2 LCD shows two rows of 16 characters and needs only four wires to Arduino over the I2C bus: SDA → A4, SCL → A5.
Write text, move the cursor and show a counter or stopwatch. Combine the screen with sensors from earlier labs to build a digital thermometer and a distance meter.
In this lab
- I2C wiring
- cursor and text
- clearing the screen
- digital thermometer and timer
What you learn
A device must be able to show people what it measured. The 16×2 LCD shows two rows of 16 characters and connects to the Arduino with just four wires over the I2C bus. The aim is to print text and numbers, place them correctly and, together with sensors from earlier labs, build a standalone instrument.
Tasks
- Wire the LCD over I2C: SDA → A4, SCL → A5
- Print text and control the cursor (column, row)
- Show a variable on screen (counter, stopwatch)
- Clear the screen so old characters do not remain
- Sensor + display: build a digital thermometer and a range finder
What you can build
- Name badge — Your name and class on the screen.
- Counter — People coming in or points in a game.
- Kitchen timer — Counts down and beeps when time is up.
- Digital voltmeter — Shows a 0…5 V voltage in millivolts.
- Weather display — Temperature and light on one screen.
- Parking display — Distance in cm and a "STOP!" warning.