Home / Arduino Tutorials / Arduino Tutorial: 20×4 I2C Character LCD display with Arduino Uno from Banggood.com

Arduino Tutorial: 20×4 I2C Character LCD display with Arduino Uno from Banggood.com

Want create site? Find Free WordPress Themes and plugins.



Dear friends welcome to another Arduino Tutorial! Today we are going to learn how to use this 20×4 character LCD display with Arduino. There is a lot to cover so let’s get started!

Hello guys, I am Nick and welcome to educ8s.tv a channel that is all about DIY electronics projects with Arduino, Raspberry Pi, ESP8266 and other popular boards. Subscribe to the channel now if you don’t want to miss any future videos. In this video we are going learn how to use this inexpensive character LCD display with Arduino. After we learn how to use the display we are going to build something useful. A simple real time clock. Let’s start.

I discovered this display some time ago on Banggood.com. It drew my attention because it inexpensive, it costs around 7$, it is big, and it uses the I2C interface. Since it uses the I2C interface it is extremely easy to use with Arduino. We only need to connect two wires. I needed a big, easy to connect display for prototyping some projects and the only display that was using the I2C interface was this tiny OLED display. Now we have a big I2C display to use in our projects! Great!

——————–
WHERE TO BUY
——————–

Arduino Uno: http://educ8s.tv/part/ArduinoUno

20×4 LCD: http://bit.ly/20x4LCD

DS3231 RTC: http://bit.ly/Ds3231

Small Breadboard: http://bit.ly/SmallBreadboard

Jumper Wires: http://bit.ly/JumperWiresB

3 in 1 wires: http://bit.ly/Wires3InOne

Power Bank: http://bit.ly/XiaomiPowerbank2

Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!

As we said before we only need to connect 4 wires. I connect GND to Arduino GND, Vcc to Arduino 5V, SDA pin to Analog Pin 4 on the Arduino Uno and lastly SCL pin to Analog Pin 5 of the Arduino Uno. That’s it! Our display is ready to use.

We now need to download the library for the display. I am using the NewLiquidCrystal library. You can find a link for the library in the description below. After installing the library we are ready to write our first sketch. We are going to develop a simple sketch that is going to display some text on the display. Let’s see how to achieve that.

——————–
LIBRARIES
——————–

📥 New LiquidCrystal: https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/

📥 DS1307 Library: https://github.com/PaulStoffregen/DS1307RTC

As you can see the code of this first project is very simple. All we need to do is to include 2 libraries, and set the I2C address of the display here. Now we can initialize the display, we set the cursor to the desired position and print some text. The setCursor command works like this. The first argument is the column and the second one is the row. So, in this line of code we tell the cursor to move to column 3 and row 0 and with the following command we print the text “Hello YouTube”. We do the same for all the other lines of text. As you can see using the display is very easy, so this display is great for quick prototyping and ideal for beginners to Arduino.

——————–
CODE OF THE PROJECT & SCHEMATIC
——————–
📥 http://educ8s.tv/arduino-20×4-character-lcd

——————–
Physics Experiments Puzzle Game
——————–

You can download my latest Android Game which is called Incredible Physics Experiments here:

📥 http://bit.ly/IncredibleExperiments

——————–
MORE PROJECTS
——————–
Arduino Datalogger: https://www.youtube.com/watch?v=oei3Y6tOhVI
Arduino Weather Station Project: https://www.youtube.com/watch?v=9jN-3DtS1RI
Arduino Nokia 5110 LCD Display: https://www.youtube.com/watch?v=aDwrMeu4k9Y
Arduino OLED display tutorial: https://www.youtube.com/watch?v=A9EwJ7M7OsI
DIY Arduino: https://www.youtube.com/watch?v=npc3uzEVvc0

——————–
ABOUT EDUC8S.TV
——————–
Educ8s.tv is a Youtube channel and website which is dedicated in developing high quality videos about DIY hardware and software projects. In this channel we develop projects with Arduino, Raspberry Pi, we build robots and simple electronic circuits. Check out our website as well for more information: http://www.educ8s.tv

——————–
SUBSCRIBE ON YOUTUBE
——————–

Never miss a video: https://www.youtube.com/subscription_center?add_user=educ8s

source

Did you find apk for android? You can find new Free Android Games and apps.

About admin

Check Also

Arduino Tutorial: C# to Arduino Communication. Send data and commands from Computer to an Arduino.

Want create site? Find Free WordPress Themes and plugins. Dear friends welcome to another Arduino …

Leave a Reply