Main Site Documentation

Sparkfun nokia 6100 LCD Shield


#1

Hi,

I’ve recentyle bough a FEZ Domino and a Nokia LCD Shield, soldered the connectors to the board, plugged in to the FEZ and nothing. It doesn’t even light up, it does not display anything on the LCD. I’ve tried the LCD drivers on the FEZ components page, I’ve tried the sample posted by someone for the Nokia 3510i LCD and I could’nt make it work.

Does anyone have an idea about what could be wrong?


#2

Hartz:

I wondered if the Nokia 6100 LCD Shield, that you’re using would be compatible with Nokia 3510i LCD?

From the Nokia 3510i LCD project page:
http://www.microframeworkprojects.com/index.php?title=Nokia_3510i_LCD

stated at the bottom of the page that


#3

Can we assume you can blink LED on FEZ? Just to be sure it is working.

Where did you buy the nokia LCD?


#4

Yes the led is blinking, also I’ve tried some USB host samples, so the FEZ is working.
The shield is bought from a shop in Romania (I’m from Romania)


#5

I just noticed the title "sparkfun…"
It is always helpful to put a link to the device you are using so we do not have to dig for it.

Should be this http://www.sparkfun.com/commerce/product_info.php?products_id=9363

I tried to look at schematic hoping I can find something but didn’t see anything useful


#6

Yes, that’s the one, sorry for not posting the link to it.

The 3510i does not work for any versiob (A,B,C,D)

The buttons on the shield work (tested them now)


#7

Do you mean that you couldn’t use the code for Nokia 3510i on your Nokia 6100??

One question though.
Can you show the diagram of the pins connection between the LCD and Fez Domino?


#8

To connect the shield to the FEZ I’ve soldered header pins to the shield and plugged it in to the FEZ board.
On the sparkfun site they say that the LCD Shield uses the following pins: (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.

Does it matter that i’m using the USB port to power the shield?


#9

I don’t see any reason the standard driver from the components page wouldn’t work. First start with the obvious and make sure the driver is changed to use SPI1 along with Di8 for reset and Di9 for CS. Also start with a lower clock speed until it’s definitely working.

I don’t have a Domino so I don’t know if the digital pins output in the 3V or 5V range. If they are outputting 3V then the voltage divider on the LCD shield will probably need bridged.


#10

Savitch:

I thinkg the problem is there, The driver from the components page use SPI from UEXT connector (SPI2) But Hartz hook up his LCD to SPI1.

Hartz :
I’m not sure that you change the code from the driver page accordingly?


#11

I think changing the driver is a little too advanced for me at this level… Can someone please help me?


#12

I am sure you can do it :wink:

Take this code http://www.tinyclr.com/downloads/Extension/FEZ_Extensions_ColorLCD.cs

add to your project

then put this in your main file

public class Program
    {
        public static void Main()
        {
            Extensions.ColorLCD.Initialize();
            for (int i = 20; i <= 110; i++)
                Extensions.ColorLCD.SetPixel((byte)i, 40, 0xF00);
            for (int i = 20; i <= 110; i++)
                Extensions.ColorLCD.SetPixel((byte)i, 80, 0xF00);
            for (int i = 40; i <= 80; i++)
                Extensions.ColorLCD.SetPixel(20, (byte)i, 0xF00);
            for (int i = 40; i <= 80; i++)
                Extensions.ColorLCD.SetPixel(110, (byte)i, 0xF00);
            Extensions.ColorLCD.Print(35, 55, "Hello FEZ!", 0x07, 0xFFF);
        }
    }

==============
now you need to modify the code. I am assuming you have the same display we use on this code but you only have it connected to different pins.

This is easy, you only have to change the code in the “initialize” function to match where your pins are connected. Just look at the code and you should be able to change it…or at least try :wink:

one last note, this display uses some very weird interface, a 9-bit interface with byte and half followed by half and a byte pixels!! This will result in the display running slower than any display out there because of the overhead software needed.


#13

[quote]This is easy, you only have to change the code in the “initialize” function to match where your pins are connected. Just look at the code and you should be able to change it…or at least try
[/quote]

Here is the reference and example of the SPI (page 81)

http://www.tinyclr.com/downloads/Beginners%20guide%20to%20NETMF.pdf


#14
 spi_module = SPI.SPI_module.SPI1;
                    _Config_9th_high = new SPI.Configuration((Cpu.Pin)FEZ.FEZ_Pin.Digital.Di9, false, Enable9BitMode | 0, Bit9High | 0, false, true, 1000, spi_module);
                    _Config_9th_low = new SPI.Configuration((Cpu.Pin)FEZ.FEZ_Pin.Digital.Di9, false, Enable9BitMode | 0, Bit9Low | 0, false, true, 1000, spi_module);
                    _reset = new OutputPort((Cpu.Pin)FEZ.FEZ_Pin.Digital.Di8, true);
                    _backlight = new OutputPort((Cpu.Pin)FEZ.FEZ_Pin.Digital.Di8, true);
                    _spi = new SPI(_Config_9th_low);

This works. But still no backlight…Any suggestions?


#15

Maybe the backlight is controlled from a different pin. Have you looked at the schematics on sparkfun website?


#16

The schematic says that the backlight part is tied to +5V and then to the LCD


#17

Apparently there’s something wrong with the shield. I can’t fin an 7V voltage that the backlight uses anywhere on the board… I’ll have to get a replacement…


#18

Here is something I got from the Sparkfun regarding the LCD Blacklight power supply.

LCD-9363 6100 Nokia Knock off LCD
http://www.sparkfun.com/commerce/product_info.php?products_id=9363
schematic:
http://www.sparkfun.com/datasheets/DevTools/Arduino/Color-LCD-Shield-v12.pdf

From the Schematic available, the power for the Blacklight power supply for this model is labeled as VLED.
That goes to pin number 10 on the LCD.
But I have no idea which pin is the used to control the blacklight of the LCD on this model.

LCD-08600 6100 Nokia Knock off LCD
http://www.sparkfun.com/commerce/product_info.php?products_id=8600
schematic:
http://www.sparkfun.com/datasheets/LCD/Nokia-Breakout-v13.pdf

From the Schematic available, the power for the Blacklight power supply for this model is labeled as VBATT.
Which is connected to pin no 12 on the JP1.
You can check if it is 7V reading on you multimeter.
But I have no idea which pin is the used to control the blacklight of the LCD on this model.

But on this model,

LCD-08683 with UEXT for Nokia 6610
schematic:
http://www.olimex.com/dev/images/OTHER/MOD-NOKIA6610-REV-A-sch.gif
From the Schematic available, the power for the Blacklight power supply for this model is labeled as VLED.
That goes to pin number 10 on the LCD.

LCD-Black Light Control is on UEXT-4 pin on the FEZ Domino.

hope this help!


#19

Thanks for the info, I’ll look into it.
But what led me to suspect a defective unit is the fact that it works intermittently. Sometimes it displays what i want on the lcd and if I press reset on the fez, it does not work anymore… for a while. Even if I redeploy the code it does not work ( the FEZ does not encounter any runtime error)


#20

If you’re in doubt that the unit is defected,
and if they can give you a replacement.
It would be a good idea to get it replaced.