Nokia color LCD backpack design overview

From DP

Jump to: navigation , search

Nokia Cover.jpg

We've always liked the Nokia knock-off displays from SparkFun. They're dirt cheap ($15) and pretty easy to control.

The goal of this project is to add simple USB control. Unfortunately we are unable to source the displays so we are selling the untested board at cost, after that we wont make any more. You can get the project for $9.5.

Read about the design below.

Contents

Overview

LCDbackpack-Nokia.png

This is a simple USB backpack for SparkFun's cheap color LCDs. Screen contrast and backlight brightness are adjustable from software. A small booster supplies 7volts for the backlight. A PIC 18F24J50 controls the LCD from a USB connection.

Our example uses a simple USB->serial interface, but HID and other device types are possible.

Production was stalled for months because we couldn't find a suitable LCD supplier. Even with Spark Fun shearing their source with us(Thanks SparkFun!), we were ultimately unable to procure them. So the project is sold as untested, AS-IS, without the displays.

Hardware

Lcd-backpack-v1.1-c2t.png

Click for a full size schematic image. Schematic and PCB were designed with the freeware version of Cadsoft Eagle, download the latest project files from our Google Code project page.

PIC18F24J50

NokiaLCD-MCU-600.jpg

The backpack uses a PIC18F24J50 MCU (IC1), it is powered by low drop-out regulator (VR1) that drops the 5v USB supply to the 3.3v required by the chip. The power supply (VDD) and USB supply (VUSB) pins are decoupled using a 0.1uF cap(C6,C8). The pic internal regulator pin (VDDCORE) requires a 10uF cap (C14). A 16Mhz quartz oscillator with two 27pF caps (C1 and C2) provides a stable external clock. The ICSP connector is brought to a header for programing.The MCLR pin gets a 2k resistor (R1) to hold the pic in reset until the power supply is adequate.

Nokia 6100 LCD

6102-LCD-600.jpg

Nokia 6100 LCD is a 128x128 pixel color display that is controlled via a serial interface. The interface consists of a data, clock, chip select, and reset pins which are driven by the MCU. The driver power supply is decoupled using a 0.1uF cap (C5). The bias voltage is sensitive to noise and since we are using a boost circuit we added a ferrite bead (L1) and a 0.1uF cap(C4) for extra filtering.

6102-LCD45-600.jpg

The back light requires a 7v supply that is provided by the DC/DC boost circuit, it is dimmed using transistor (T1) and a 1K base resistor (R6).

DC/DC boost circuit

Boost-section-diagram2-600.jpg

The DC/DC boost circuit uses a MC34063A switching regulator in a standard boost topology.It takes the 5v USB supply and boosts it to 7v to power the LCD backlight.at 43mA. You can use this online calculator to calculate component values for the MC34063 boost circuits.

PCB

File:Project-render-490.jpg

We used the freeware version of Cadsoft Eagle to make the schematic and PCB. Download the latest designs and firmware from the project Google Code page.

  • PCB and placement notes
  • soldering advise

Partslist

Brd-LCDbackpack-Nokia-v1.2.png

Click for a full size placement image.

partlist
PartQuantityValuePackage
C1,C2227pfC0805
C31150pFC0805
C4,C5,C6,C7,C8,C960.1uFC0805
C1011uFC0805
C11110uF electrolytic /14v+SMD_A5
C12,C13,C14310uF tantalum/10voltsSMC_A
D111N5819SOD123
IC11PIC18F24J50SSOP28
IC21MC34063ADSO08
J11USBSMDUSB-MINIB
JR11ICSP1X05
L11Ferrite bead, 100mA+L0805
L21680uH/0.12AL4532P
Q1116MHzHC49UP
R1110K0805
R2118K0805
R312R40805
R41180R0805
R513.9K0805
R611K0805
T11NPN 30+hfe, 800mA+SOT23-BEC
VR113.3volt regulator, 150mA+SOT23-5
LCD11NOKIA6100 LCD cloneNOKIA6100_LCD

Firmware

The firmware is written in C and compiled with the free Microchip C18 compiler. You can download the latest files from our Google Code project page.

  • Operating modes
  • extra software required

We used the Microchip USB stack to run the 18F2550 as a virtual serial port. Microchip's code is open but not redistributable. If you want to compile the source, download the stack from Microchip, then drag the source code into the install directory. See the detailed instructions in the PIC compiler how-to.

.inf installation

The virtual serial port (CDC) is an open standard, it should work on any modern operating system.

You don't need a driver, but you will need a .inf file to tell Windows how to use the device. A suitable .inf is included in the project archive.

Commands

The LCD backpack uses simple serial commands to control the features of the LCD and the board. Such as backlight fading, turning the backlight on and off, setting the contrast of the LCD and more.

The interface is started by sending a 1 byte command code, followed by 0-4 bytes of data depending on the command used.

Bootloader

600px


The Nokia LCD backpack can be upgraded over the USB connection. It uses a modified version of the Diolan USB PIC bootloader. This bootloader, written in ASM and released under the GPL, enumerates as an HID device. The bootloader app is included in the project archive.

Software

We provide a simple image loader and demonstration utility that can interface with the LCD backpack and run a self test. The utility is windows only and wont be officially ported to any other OS. The utility provides an easy was to interface with the LCD backpack trough console.

Taking it further

We are hoping somebody picks this up because we couldn't buy the LCDs to use with this project. We are only going to sell the PCBs as scrap and then we don't plan to produce any more. So we wont take this project any further.

Get one!

You can get one for $9.50, including worldwide shipping. Does not include the LCD, it is untested because we can't find the LCDs.

Your purchases at Seeed Studio keep the open source project coming, we sincerely appreciate your support!