LCD display module with blue/white font (transmissive) or yellow backlight/black font (transflective).
Wide viewing angle and high contrast.
Can display 2-lines * 16-characters.
Small and light appearance, easy and convenient to use.
LCD type: Character
Character type: 16 * 2
Screen size: 7.1 * 2.4cm
Character size: 3.55 * 5.95 mm
Driving voltage: 5V DC
Backlight: Blue (HCMODU0013) or Yellow (HCMODU0038)
Working temperature: 0 - 50°C
Example Arduino Sketch:
Code: Select all
/* FILE: ARD_1602_LCD_HCMODU0013_Hello_World_Example.pde
DATE: 09/03/13
VERSION: 0.1
This is a simple example of how to use the Hobby Components 1602 LCD module
(HCARDU0023). To use this module you will require the standard Arduino LCD
library which is built into the Arduino development enviroment.
This code also demonstrates the correct pin assignment for the LCD. When you
run this program you should see a greeting message appear on the display.
DEVICE PINOUT:
LCD ARDUINO
VSS GND
VDD +5V
VO +5V VIA POTENTIOMETER
RS D12
RW GND
E D11
D4 D5
D5 D4
D6 D3
D7 D2
A +5V
K GND
You may copy, alter and reuse this code in any way you like but please leave
reference to hobbycomponents.com in your comments if you redistribute this code. This software may not be used by other sellers.
THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS LTD MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS LTD SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/
/* Include the LCD Library */
#include <LiquidCrystal.h>
/* Create an instance of the LCD library. */
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
/* Initialise the LCD */
lcd.begin(16, 2);
}
/* Main program loop */
void loop()
{
/* Output the test message to the LCD */
lcd.setCursor(0,0);
lcd.print("HOBBY COMPONENTS");
lcd.setCursor(0,1);
lcd.print("**HELLO WORLD**");
/* Do nothing */
while(1);
}
PIC Great Cow Basic 1602 LCD Example:
Code: Select all
' FILE: PIC_GCB_16F877a_LCD_Example
' DATE: 07/08/14
' VERSION: 0.1
' AUTHOR: Andrew Davies
'
'This program was written using the Great Cow Basic IDE for use with our PIC
'16F8777A development board (HCDVBD0003) and our 1602 parallel LCD module
'(HCMODU0013 or HCMODU0038) to display some example text.
'
'You may copy, alter and reuse this code in any way you like, but please leave
'reference to HobbyComponents.com in your comments if you redistribute this code.
'This software may not be used directly for the purpose of selling products that
'directly compete with Hobby Components Ltd's own range of products.
'
'THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES,
'WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED
'WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR
'LACK OF NEGLIGENCE. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE
'FOR ANY DAMAGES INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR
'CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
'Chip Settings. Assumes our 16F877A development board with with external 4MHz
' crystal
#chip 16F877A,4
'Use LCD in 4 pin mode and define LCD pins
#define LCD_IO 4
#define LCD_RW PORTE.1
#define LCD_RS PORTE.0
#define LCD_Enable PORTE.2
#define LCD_DB4 PORTD.4
#define LCD_DB5 PORTD.5
#define LCD_DB6 PORTD.6
#define LCD_DB7 PORTD.7
'Main program
Main:
'Clear the LCD
CLS
'Display some text on both lines
Locate 0,5
Print "HOBBY"
locate 1,3 '
print "COMPONENTS"
'Do nothing
Do Loop
Goto Main
Disclaimer: Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do not provide any guarantees or warranties as to their accuracy or fitness for purpose.
Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.