Hi learners! I hope you are doing great. Today, I am going to share the second version(V2.0) of the LCD library for Proteus. We have already shared the LCD V1.0 Library on our blog. Along with appreciation, we also get some complaints/suggestions about that library. So, we have designed a better version of the LCD library by keeping the suggestions in mind.
Version 2.0 has error-free working, better pinout prints, and is identical to the real-world LCD. We have also removed our website link from the LCD. This library includes two alphanumeric LCDs in it i.e. LCD 16x2 and LCD 20x4.
If you don't have any experience with the LCD, no need to worry as we will guide you from scratch. Before installing the LCD, let's first have a look at its brief introduction:
Where To Buy? | ||||
---|---|---|---|---|
No. | Components | Distributor | Link To Buy | |
1 | Battery 12V | Amazon | Buy Now | |
2 | Resistor | Amazon | Buy Now | |
3 | LCD 16x2 | Amazon | Buy Now | |
4 | LCD 20x4 | Amazon | Buy Now | |
5 | PIR Sensor | Amazon | Buy Now | |
6 | Arduino Uno | Amazon | Buy Now |
Let's have a look at the pinout of LCD:
Both of these LCDs(16x2 and 20x4) have similar pinouts and a simple basic circuit needs to be designed in order to operate them. There are a total of 16 pins present in LCD used for different purposes. The below table has the complete description of LCD Pinout:
Serial |
Pin |
Functionality |
Description |
1 |
VSS |
Ground |
This pin is connected to the ground terminal of the circuit. |
2 |
VDD |
Power Supply |
It is connected to the positive voltage(+5V) and is responsible for the power supply to all pins. |
3 |
VEE |
Voltage Emitter |
It is used to control the contrast of LCD. it applies the negative voltage and thus controls the electric field of the LCD. |
4 |
RS |
Register Select |
It selects the LCD register. LCD has two registers: an instruction register and a data register. |
5 |
RW |
Read or write |
The read-and-write operation is done through this pin. if set to HIGH then LCD is in reading mode and LOW means it is writing the data. |
6 |
E |
Enable |
Enables the working of LCD. If HIGH then allow the display and if LOW then disable it. |
7-14 |
D0-D7 |
Data bits (Pins to deal with the data) |
Data is sent to the LCD in a parallel manner. These pins send this data and out of these, D0 is the least significant and D7 is the most significant. |
The installation of the LCD V2.0 is simple. The first step is to download the library files. I believe you have Proteus installed. So, click the below button to download the Proteus Library zip file.
The zip file also contains the project, where we simply connected both the LCDs with Arduino, so that you could check their working. Moreover, code is also present in the file.
Once the Library is installed, you need to open your Proteus software. If it's already open, you have to restart it. Now follow the instructions.
I have installed both versions therefore, I am getting four options. I will choose the LCD 20X4 V2.0 and LCD 16X2 V2.0.
Click on the components and simply place them on the working sheet of Proteus, it will appear as shown below:
Now, let's design an LCD simulation in Proteus:
Now, let's design a simple LCD simulation, where we will interface it with an Arduino UNO board. We will display our website's link on the LCD. So, let's design the circuit:
Go to the pick library and select the following components:
Now let's design the Arduino code to display data on these LCDs:
Now, open your Arduino software, I hope you have it installed. Paste the below code in it, I have also added this code in the zip file.
#include
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.setCursor(1,0);
lcd.print("www.TheEngineering");
lcd.setCursor(4,1);
lcd.print("Projects.com");
}
void loop() {
}
The next step is to get the Hex File from Arduino IDE and add in the Proteus. For this, follow these steps:
If you have followed all the steps, I am sure your project will run successfully. I hope it was helpful to you. You must practice it more and try to make different projects. So, that was all for today, will meet you guys in the next tutorial. Take care!!!
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w