KA06 LCD Shield for Arduino
Illustrated Assembly Manual
Product Overview
Add an LCD to your projects and visualize measurements, parameters, data, messages, etc...
Features
- For Hitachi HD44780 or compatible LCDs
- Requires 1 Arduino UNO™ (not included)
- Stackable design: the shield can be stacked with other shields
Specifications
- Supplied with 20 character / 4 lines display with white backlight
- Contrast adjust trimmer
- Backlight on/off switch
- Reset button
- 3 user configurable pushbuttons (3 digital inputs / 1 analog input)
- Dimensions: 68 x 53mm / 2.67 x 2.08"
Assembly Hints
General Assembly Advice
Ok, so we have your attention. These hints will help you to make this project successful. Read them carefully.
Required Tools
- [Image: A soldering iron with a fine tip, a wet sponge for cleaning, a spool of solder wire, diagonal cutters, needle-nose pliers, small blade and Phillips screwdrivers, and a multimeter.]
Assembly Tips
- Make sure the skill level matches your experience, to avoid disappointments.
- Follow the instructions carefully. Read and understand the entire step before you perform each operation.
- Perform the assembly in the correct order as stated in this manual.
- Position all parts on the PCB (Printed Circuit Board) as shown on the drawings.
- Values on the circuit diagram are subject to changes; the values in this assembly guide are correct*.
- Use the check-boxes to mark your progress.
- Please read the included information on safety and customer service.
- * Typographical inaccuracies excluded. Always look for possible last minute manual updates, indicated as 'NOTE' on a separate leaflet.
Soldering Hints
- [Diagram: A component lead being soldered to a PCB pad.]
- [Diagram: A close-up of a correctly formed solder joint, described as cone-shaped and shiny.]
- [Diagram: Diagonal cutters trimming excess component leads after soldering.]
Important Note: DO NOT blindly follow the order of the components on the tape. ALWAYS CHECK THEIR VALUE ON THE PARTS LIST!
Construction
1. Resistors
2. Ceramic Capacitor
3. Female Headers
- LCD1: 2 x 8p
- LCD2: 2 x 8p
- LCD3: 2 x 8p
4. Trimmer
5. Switch
6. Push Buttons
7. Male Headers
- JP1, JP2, JP3, JP4, JP5, JP6, JP7
8. Female Headers Installation
Warning: Do not cut the connector pins! ⚠️
9. LCD Installation
Follow these steps if the supplied LCD is not provided with a male header connector.
Connection Diagram
1. LCD Connections
2. Analog / Digital Interface Selection
3. Backlight Control
4. Input Data
5. Contrast Adjustment
6. Reset Button
General Information
All displays based on the HD44780 have the same interface, regardless of the connector type or the pin arrangement. This interface consists of eight data lines, three control lines, a power supply, a GND and a line for contrast setting. The arrangement of these lines varies from model to model, so you will have to refer to the data sheet. Some models feature a built-in backlight connected via two lines.
LCD Pin Functions and Arduino UNO Connections
Pin LCD | Function | Pin Arduino UNO |
---|---|---|
VDD | +5 V Power supply | +5 V |
Vss | GND | GND |
Vo | contrast voltage | Trimmer |
RS | Selection: write data or commands | 8 |
R / W | Selection: writing or reading | GND |
Enable | 'Enable'-line | 9 |
DB0 | Data line 0 | Not used |
DB1 | Data line 1 | Not used |
DB2 | Data line 2 | Not used |
DB3 | Data line 3 | Not used |
DB4 | Data line 4 | 4 |
DB5 | Data Line 5 | 5 |
DB6 | Data Line 6 | 6 |
DB7 | Data Line 7 | 7 |
BL + | LED Backlight + | +5 V |
BL - | LED Backlight - | GND |
UNO Connections Assigned to the Buttons
Push button | Arduino connection (digital mode) | Arduino PIN (analogue mode) |
---|---|---|
S1 | 10 | AN3 |
S2 | 11 | AN3 |
S3 | 12 | AN3 |
The shield has three different connector types and is thus compatible with a large array of displays. The connectors are arranged so as to leave room for the three push buttons and the reset button. To work properly, each LCD requires a small voltage to adjust the contrast. This voltage is obtained from the +5 V through a trimmer.
Programming
Three push buttons are provided for your own applications. For maximum flexibility, two ways to interface with these buttons are provided:
1. Digital Interface
Uses three digital Arduino lines (pins 10, 11, 12). Activate this mode by shortcutting jumpers JP4, JP5, and JP6. Use pinMode(buttonPin, INPUT_PULLUP)
in firmware. Push buttons work in negative logic (1 at rest, 0 when pressed).
2. Analog Interface
Uses one analog line (pin A3). Digital lines remain free. Activate this mode by shortcutting jumpers JP1, JP2, JP3, and JP7. This method uses a voltage divider network formed by resistors R4, R5, and R6.
Analog Button Reading Table
Push button | AN3 voltage | ADC value |
---|---|---|
None | 5V | 1024 |
P1 | 0V | 0 |
P2 | 1.6 V | 328 |
P3 | 3.3V | 676 |
Programming via the Arduino IDE is straightforward, as it does not require an additional library. The system library LiquidCrystal
already includes all necessary functions. Programming code is available on www.velleman.eu.
PCB Layout
Detailed Connection Diagram
LEDs and How to Use Them
LEDs feature a specific voltage drop depending on type and colour. Check the datasheet for exact voltage drop and rated current.
Calculating Series Resistors
Example 1: Operate a red LED (1.7V) on a 9Vdc source with 5mA required current.
Formula: (Supply voltage - LED voltage) / Required current = Series resistance
Calculation: (9V - 1.7V) / 0.005A = 1460 ohm
. Closest standard value: 1.5kΩ resistor.
Required resistor power handling: (9V - 1.7V) x 0.005A = 0.036W
. A standard 1/4W resistor is sufficient.
LEDs in Series
Example 2: 3 x red LEDs (1.7V each) on a 9V battery with 5mA required current.
Formula: (Supply voltage - (Number of LEDs x LED voltage)) / Required current = Series resistance
Calculation: (9V - (3 x 1.7V)) / 0.005A = 780 ohm
. Use an 820 ohm resistor.
Parallel LEDs
Warning: Never connect LEDs in parallel without individual current-limiting resistors.
Open Collector Outputs
An open collector output can be compared to a switch that connects to ground when operated.
Company Information
Velleman N.V.
Legen Heirweg 33
9890 Gavere
(België)