Make: Projects

RGB Liquid Crystal Display Tutorial

Plug your LCD into an Arduino and experiment with it.

  • By Jake Spurlock
  • Category: Arduino, Electronics
  • Time Required: 20-30 minutes
  • Difficulty: Easy
RGB Liquid Crystal Display Tutorial

This is something that almost every maker that is interested in easy electronics should know how to do. It is great for decorating or just experimenting for starters.

I am doing this tutorial because I had bought an RGB display from the Maker Shed and it was hard to track down the instructions. First I will teach you how to connect it to the Arduino and then I will show you the code required.

This isn’t my very own tutorial; I am just making the information easily accessible for everyone.

Steps

Step #1:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • We will start off by gathering all of the parts together. Then open the package. Inside, you will find the display, contrast pot, and header pins. Solder the header pins on the same side that I did.

Step #2:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • Now we will prepare everything to start connecting to the Arduino. Insert the display into the breadboard with the pot next to it. Then connect 5V and GND to the breadboard rails as I have done. Good.

Step #3:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • Now we will hook up the contrast pot. Connect one side of the pot to GND and the other to 5V. Then hook the middle of the pot to pin 3 on the display.

Step #4:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • Connect pin 1 of the display to GND, pin 2 to 5V, and pin 5 to GND.

Step #5:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • Connect pin 15 to 5V and then connect either pin 16, 17, or 18 to GND depending on what color you want for your backlight. I picked pin 16 which will make it light up red.

Step #6:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • Now we will start connecting the Arduino to the display. Connect pin 4 of the display to pin 7 on the Arduino; pin 6 to pin 8; pin 11 to 9; 12 to 10; 13 to 11; and pin 14 on the display to pin 12 on the Arduino.

Step #7:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • The setup should look something like this.

Step #8:

Next
RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • Now you have connected the display to the Arduino. For the code, navigate in the Arduino environment to Examples→Liquid crystal→Hello world. Change the line of code that says: LiquidCrystal lcd(12, 11, 5, 4, 3, 2); to LiquidCrystal lcd(7, 8, 9, 10, 11, 12);.
  • A wiring diagram is included here.

Step #9:

RGB Liquid Crystal Display TutorialRGB Liquid Crystal Display TutorialRGB Liquid Crystal Display Tutorial
  • If you got everything right, this is how it should look.

Conclusion

You have now just set up a liquid crystal display!

6 Responses to RGB Liquid Crystal Display Tutorial

  1. Is there a way to enlarge the thumbnails? None of the images are “clickable” It doesn’t help if you reference an image & a reader can’t see the details.

    • no i dont think there is a way to enlarge them. i think its a problem with
      the new make: projects. you could enlarge them on the old one.

      • yes, you can enlarge the thumbnails. First click the “all” button to show all project steps.
        then click on the thumbnail and it will show enlarged. I’m on firefox 19

  2. Is soldering really required for this project

  3. Thanks for the tutorial. I am new to Arduino, then I would try adding a temperature display on my project. just so happens that I have the parts :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: