Professional Documents
Culture Documents
From Wiki
Contents
1 Introduction
2 Feature
3 Cautions
4 Schematic
5 Usage
5.1 What it does:
5.2 How to Use It:
5.3 LCD Display Orientation
6 Version Tracker
7 Additional Idea
8 Resources
9 How to buy
10 See Also
11 Licensing
12 External Links
Introduction
This shield base on Sparkfun design, we upgraded and modied the blacklight to
PWM(D10) control and button to 4 direction Joystick w/ Switch(A0-A4),more
key and easy to operate. This shield just uses the Philips PCF8833 controller,
base on a good display Nokia 6100 LCD Panel.
The Color LCD Shield,provides an easy method of connecting the popular Nokia
6100 LCD to your Arduino. The board comes as shown with the 128x128 mini
color LCD, as well as a backlight driver circuit (boosts to 7V) control by PWM.
The Nokia 6100 LCD is controlled through a 9-bit SPI interface. The control pins
of the LCD are connected to the hardware SPI pins of the Arduino (D13
-SCK, D11 - DIO), the CS pin is tied to D9 and the reset pin is connected to D8.
Voltage from the '5V' pin of the Arduino is boosted to 7V to power the LCD
backlight.
Model: SHD-CLS (http://www.elecfreaks.com/estore/color-lcd-shield-shd-cls.html)
Feature
All Shield base on Philips PCF8833 controller
Nokia LCD6100
4 direction Joystick w/ Switch(A0-A4)
Backlight PWM control
128 x 128 pixels
12-bit color rendition (4 bits red, 4-bits green, 4-bits blue)
9-bit SPI serial interface (clock/data signals)
Cautions
1. If you use our library , you can not modied anything. If you use the Sparkfun
library, you just need change
lcd.init(EPSON);
to
pinMode(10, OUTPUT);
analogWrite(10, 1023); // For PWM control
lcd.init(PHILLIPS);
2. If there are mirror X/Y or bottom to top , swapped direction etc you just
need modied the PHILLIPS Register MADCTL in ColorLCDShield.cpp.
Schematic
Usage
What it does:
Looking at the Shield, it may seem like it's got a lot going on, but it's really a
pretty simple board. There's the LCD, a knock o Nokia 6100 screen. Below and
to the left of the LCD are an IC and some passive components whose sole purpose
in life is boosting 5V to about 7V, which is required to illuminate the LCD's
backlight. Finally, to the right of the boost circuit are a few momentary
push-buttons for use as...buttons.
To communicate with the LCD, the Arduino uses a three-wire serial interface, as
well as a fourth pin to control the LCD's reset functionality.
If you're using the Color LCD Shield with other shields or components, be wary of
sharing these pins. You should be safe if you want to set up an SPI bus, using the
DIO and SCK pins, but the other two pins should not be shared with any other
devices. Also, be aware that the buttons are connected to pins 3, 4, and 5.
When you rst receive the Shield, the LCD should be covered with a protective
sticker. Don't toss this in the garbage bin just yet, and put on your detective hat.
You see, one of the more irritating things about this display is we don't always
initially know what makes it tick. Embedded into each display is a driver, which is
really what controls these LCDs. The driver turns a simple 3-wire serial signal --
something we can easily send with an Arduino -- into a HUGE set of outputs
(upwards of 500 pins). Our displays come with two possible driver options: an
Epson S1D15G00 or a Philips PCF8833. If you've got a red tab on your protective
sticker, it's most likely an Epson, a blue tab is usually indicative of the Phillips
driver. File which display you have into the back of your mind because we'll need
it again. There are some minor dierences between the drivers, but in the end
they'll both display the same thing.
3. Run the arduino program compile and upload the sketch as below:
Now, try clearing the screen to other colors., or adjusting the contrast. The
predened colors are (don't forget all caps): BLACK, NAVY, BLUE, TEAL,
EMERALD, GREEN, CYAN, SLATE, INDIGO, TURQUOISE, OLIVE, MAROON,
PURPLE, GRAY, SKYBLUE, BROWN, CRIMSON, ORCHID, RED, MAGENTA,
ORANGE, PINK, CORAL, SALMON, ORANGE, GOLD, YELLOW, WHITE,
PALEROYALCORNFLOWERBLUE. OK, maybe not that last one. I had some fun
making colors...
However, don't let those dened colors limit your color spectrum, the LCD uses
12-bit RGB values to dene colors, which means there are 4096 possible colors.
Rather than sending one of the predened color values, try putting a 12-bit value
into the clear function; pick three hex digits (0-F), and arrange them as 0x123
(replacing 1, 2, and 3). The rst value is the amount of red you want, the middle
value is green, and the last value is blue.
The Nokia 6100 display has 132 x 132 pixels; each one with 12-bit color (4 bits
RED, 4 bits GREEN and 4 bits BLUE). Practically speaking, you cannot see the
rst and last row and columns. The normal orientation is as follows:
Version Tracker
Revision Descriptions Release
v1.2 Initial public release date
Additional Idea
The Additional Idea is the place to write your project ideas about this product, or
other usages you've found. Or you can write them on Projects page.
Resources
PHILLIPS-Datasheet (http://www.elecfreaks.com/store/download/datasheet
/shield/PCF8833_1.pdf)
Interface tutorial by Jim Lynch (http://www.elecfreaks.com/store/download
/datasheet/shield/6100_Display_Driver.pdf)
library (http://www.elecfreaks.com/store/download/datasheet/shield
/New-ColorLCDShield.zip)
How to buy
Click here to buy: http://www.elecfreaks.com/estore/color-lcd-shield-shd-cls.html
See Also
Other related products and resources.
Licensing
This documentation is licensed under the Creative Commons Attribution-
ShareAlike License 3.0 (http://creativecommons.org/licenses/by-sa/3.0/) Source
code and libraries are
External Links
Links to external webpages which provide more application ideas,
documents/datasheet or software libraries
About Wiki
Disclaimers