Go Down

Topic: M4024 RevJ arduino pins? (Read 1 time) previous topic - next topic

floresta

It's a Seiko M4024 - If you look at your photo of the front of the device the top left pin is pin 1 and the top right pin is pin 2.  Pins 3 and 4 are next, etc.  Hopefully whoever soldered the ribbon cable to the display connected the red wire to pin 1, the rest should follow in order. 

According to the datasheet that I found, the pin assignments are almost exactly backwards from the standard LCD modules.  There is also the expected second Enable line, and no mention of a backlight so it probably doesn't have one.  Pin 16 is not used, pin 15 is the second enable line, and pins 14 --> 1 correspond to pins 1 --> 14 of most other LCD modules (those with 80 or less characters).

If you disregard pins 15 and 16 you should be able to get two lines of your display working with the standard LiquidCrystal library, just don't forget that the pin numbers are reversed.  To get the whole display working, the easiest way is to use the LiquidCrystal440 library although you could use two instances of the standard LiquidCrystal library.


Don


Megaionstorm

Only the first two lines show a text !

Code: [Select]

  Seiko M4024 LCD Display - Display hat keine Hintergrundbeleuchtung
  LiquidCrystal Library - Autoscroll

Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.

This sketch demonstrates the use of the autoscroll()
and noAutoscroll() functions to make new text scroll or not.

The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* 10K Poti:
* ends to +5V and ground
* wiper to LCD pin 12

LCD Pin -> Arduino Pin
1 -> digital Pin 2
2 -> digital Pin 3
3 -> digital Pin 4
4 -> digital Pin 5
5 -> n.c.
6 -> n.c.
7 -> n.c.
8 -> n.c.
9 -> digital Pin 11
10 -> GND
11 -> digital Pin 12
12 -> Poti Schleifer
13 -> GND
14 -> 5V
15 -> ?
16 -> n.c.

Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried (http://www.ladyada.net)
example added 9 Jul 2009
by Tom Igoe
modified 22 Nov 2010
by Tom Igoe

This example code is in the public domain.

http://www.arduino.cc/en/Tutorial/LiquidCrystal
*/

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(40,4);
}

void loop() {
  // set the cursor to (0,0):
  lcd.setCursor(0, 0);
  // print from 0 to 9:
  for (int thisChar = 0; thisChar < 10; thisChar++) {
   lcd.print(thisChar);
   delay(250);
  }
  for (int thisChar = 0; thisChar < 10; thisChar++) {
   lcd.print(thisChar);
   delay(250);
  }
    for (int thisChar = 0; thisChar < 10; thisChar++) {
   lcd.print(thisChar);
   delay(250);
  }
    for (int thisChar = 0; thisChar < 10; thisChar++) {
   lcd.print(thisChar);
   delay(250);
  }
  // set the cursor to (16,1):
  lcd.setCursor(0,1);
  // set the display to automatically scroll:
  lcd.autoscroll();
  // print from 0 to 9:
  for (int thisChar = 0; thisChar < 10; thisChar++) {
    lcd.print(thisChar);
    delay(250);
  }
    for (int thisChar = 0; thisChar < 10; thisChar++) {
    lcd.print(thisChar);
    delay(250);
  }
    for (int thisChar = 0; thisChar < 10; thisChar++) {
    lcd.print(thisChar);
    delay(250);
  }
    for (int thisChar = 0; thisChar < 10; thisChar++) {
    lcd.print(thisChar);
    delay(250);
  }
  // turn off automatic scrolling
  lcd.noAutoscroll();
 
  // clear screen for the next loop:
  lcd.clear();
}

Mein Arduino Projekte Blog:
http://ardu-megatank.blogspot.de/

floresta

Quote
Only the first two lines show a text !


You have to deal with the second enable pin (pin 15) in order to see anything on the other two lines.  That's what LiquidCrystal440 does for you inherently although you could use a second instance of the regular LiquidCrystal library.

Take a look at this thread for some ideas on how to use a 'second instance' of the LiquidCrystal library. http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265969050


Don

Go Up