Pages: [1]   Go Down
Author Topic: Help with Winstar WG12232A-TMI-N#A  (Read 559 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hei Guys!

I'm pretty new to this. I've just bought an ArduinoMega, and a LCD display to get starting with.
After a week with long evenings i still can't get it to work.
I have tryed everyting(in my opinion). I want to solv this my self tho, but need a little hint. can someone please give me a hint what I'm doing wrong and point me in the right direction?

datasheet: http://www.rapidonline.com/pdf/57-2272.pdf

LCD - ArduinoPIN
gnd - gnd
Vdd - +5V
Vo - contrast adjusting(working)
A0 - 46
CE1 - 47
CE2 - 48
R/W - 49
RES - 2
DB0->DB7 - 30->37

LCDbacklight working.

I have tried with the liquidcrystal lib with no success.
I have also tried some coding my self without luck.

the only thing that happens is that i get a white line at the bottom og the display, and the whole screen fades white.

here is my code:

void setup() {
  Serial.begin(9600);
  //RESTART PIN 
    pinMode(2, OUTPUT);
    digitalWrite(2, LOW);
    delay(20);
    digitalWrite(2, HIGH);

    myLCDtest();
}


void myLCDtest() {
  PORTC = B00000000;
  DDRC = B11111111;
 
  PORTL = B00000000;
  DDRL = B00001111;
 
  PORTL = B00000101;
  PORTC = B11000011;
  delay(2);
  PORTL = B00000001;
  PORTC = B00000000;
  delay(500);
}








Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have tried with the liquidcrystal lib with no success.
I believe that your device is a graphical lcd (GLCD) as opposed to being a character mode lcd, therefore the LiquidCrystal library is not appropriate.  

According to the data sheet the controller chip is a SBN1661G_M18-D or equivalent.

Now you have to determine if it is equivalent to the KS0108 or the ST7920 for which there are libraries available.
  KS0108 library:  http://www.arduino.cc/playground/Code/GLCDks0108
  ST7920 library:  http://code.google.com/p/u8glib/

Hopefully bperrybap will spot this and chime in with better information.


Don
Logged

Germany
Online Online
Edison Member
*
Karma: 100
Posts: 1232
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

U8glib should support the SBN1661 controller (it differs from KS0108 and ST7920). The constructor is:
U8GLIB_SBN1661_122X32 u8g(d0, d1, d2, d3, d4, d5, d6, d7, cs1, cs2, di, rw );
In your case (with A0 = DI):
U8GLIB_SBN1661_122X32 u8g(30, 31, 32, 33, 34, 35, 36, 37, 47, 48, 46, 49);

Oliver

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Worked like a charm!
Thanks!
Logged

Pages: [1]   Go Up
Jump to: