For example, if we want to see an uppercase ‘A’ character on the display, we set these pins to 0100 0001 (as per the ASCII table).Ī-K (Anode & Cathode) pins are used to control the backlight of the LCD. When this pin is set to HIGH, the LCD processes the incoming data.ĭ0-D7 (Data Bus) pins carry the 8 bit data we send to the display. When this pin is set to LOW, the LCD does not care what is happening on the R/W, RS, and data bus lines. This forces it into WRITE mode.Į (Enable) pin is used to enable the display. Since we are only using this LCD as an output device, we are going to set this pin LOW. R/W (Read/Write) pin allows you to read data from the LCD or write data to the LCD. Basically this pin is used to separate the command from the data. RS (Register Select) pin is set to LOW when sending commands to the LCD (such as setting the cursor to a specific location, clearing the display, etc.) and HIGH when sending data to the LCD. Using a simple voltage divider with a potentiometer, we can make fine adjustments to the contrast. Vo (LCD Contrast) controls the contrast and brightness of the LCD. VCC is the power supply for the LCD which we connect to the 5V pin on the Arduino. GND is connected to the ground of the Arduino.
0 Comments
Leave a Reply. |