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?
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?
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.
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
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.
[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)
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…
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.
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.
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)