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
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.
📥 New LiquidCrystal:
📥 DS1307 Library:
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
Quiz of Knowledge Android Game
You can download my latest Android Game which is called Quiz of Knowledge here:
Arduino Weather Station Project:
Arduino Nokia 5110 LCD Display:
Arduino OLED display tutorial:
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:
SUBSCRIBE ON YOUTUBE
Never miss a video:
Xem Thêm Bài Viết:
- fita de led 5m 4,4wm 220V quente Stellatech STH3222/30
- LED Front Turn Signal Bulbs 2017+ Ford F250 F350 Super Duty Amber or Switchback
- Weird 1W (0.1W!) LED lamp from eBay.
- HƯỚNG DẪN CÁCH ĐẤU LED FULL COLOR NHÁY THEO NHẠC – IC 1903, 9803, 6803 [FULL] – LEDCF Việt Nam
- Tự Chế Đèn LED Soi Cá 100w Siêu Sáng | Chói Lóa ( Super bright flashlight )