Random Nerd Tutorials
Shares

Arduino – Display the LED Brightness on a LCD 16×2

Shares

In this project we’re going to display the LED brightness on a LCD 16×2 with a progress bar. This is a good Arduino beginner project for getting started with the LCD display. We provide a list of the parts required, schematic diagram, and code.

Watch the video demonstration below


Introducing the LCD

The simplest and inexpensive way to display information is with an LCD (liquid crystal display). These are found in everyday electronics devices such as vending machines, calculators, parking meters, printers, and so on, and are ideal for displaying text or small icons. The figure below shows a 16×2 LCD front and the back view.

This LCD has 2 rows, and each row can display 16 characters. It also has LED backlight to adjust the contrast between the characters and the background.

When you buy a 16×2 LCD, usually it doesn’t come with breadboard friendly pins. So, you may need some headers.

Parts Required

rsz_parts

For this project you’ll need the following parts:

You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!

Schematics

Wire all the parts by following the next schematic diagram.

schematics_lcd_bb

The next table shows a brief description of each pin of the LCD display. Make sure your LCD uses the same pinout.

lcd_pinout_print_screen

Code

Copy the following code and upload it to your Arduino board. The code is well commented so that you can easily understand how it works, and modify it to include in your own projects.

Demonstration

After uploading the code to your Arduino board, you can rotate the potentiometer to adjust the LED brightness and change the progress bar on the LCD.

For a complete demonstration watch the video at the beginning of the post.

Wrapping Up

This post showed you a basic example on how to use the LCD display with the Arduino. Now, the idea is to modify the sketch and use the display in other projects.

If you are a beginner to the Arduino, we recommend following our Arduino Mini Course that will help you quickly getting started with this amazing board.

If you like Arduino, you may also like:

Do you have any questions? Leave a comment down below!

Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing our blog.


20 Easy Raspberry Pi Projects

Our new book is a beginner-friendly collection of electronics projects, perfectly suited for hobbyists, parents, kids, parents, and educators looking to level up their hardware skills - GET THE BOOK »

Recommended Resources

Home Automation using ESP8266 »
Build IoT projects and home automation gadgets with the ESP8266 Wi-Fi module.

Build a Home Automation System »
Learn how to build a automation system using open-source hardware and software from scratch.

Arduino Step-by-Step Projects »
Build 25 cool Arduino projects with our couse even with no prior experience!

Leave a Comment:

Add Your Reply