i have decided to try to hook up this display for a small project, but i cant figure out how to hook it up and cant find anything similar. i have tried 3 different methods and no luck, part of the issues is the contrast setting is controlled by a command i think. and i cant find the contrast pin.
the arduino im using is the micro
the lcd model is ea led55x31-r
http://datasheet.elcodis.com/pdf/21/73/217305/ea_dogm081l-a.pdf
can anyone help or point me in the right direction.
Depending on how you want to connect the display to your arduino (8bit, 4bit or SPI) depends on what library you use to control it.
For SPI look here and for parallel interface you will need to google something like 'arduino st7036 library' and try to find something to suit.
what pins would i use on the display for spi?
im bout ready to toss these lcds,
found a code i want to use, anything else is super complicated or not for the my lcd
#include <lcd.h>
#include <LCD_C0220BiZ.h>
#include <ST7036.h>
#include <LCDdogmSPI.h>
#define CSB_PIN 10
#define RS_PIN 9
#define LCD_LINES 3
// This initializes for a 3 LINES display
LCDdogmSPI lcd = LCDdogmSPI(LCD_LINES, CSB_PIN, RS_PIN);
void setup() {
lcd.init();
lcd.cursorTo(0,0);
lcd.println("theqtisch");
}
void loop() {
delay(10);
}
LCDdogmExample:13: error: 'LCDdogmSPI' does not name a type
LCDdogmExample.pde: In function 'void setup()':
LCDdogmExample:16: error: 'lcd' was not declared in this scope
Slap my wrists, I just realized the Playground link I directed you to is for an I2C interface to the ST7036 so unless you have some form of I2C backpack it would never work. A quick Google and I find a link to an old thread on here that looks more promising but will need updating to work on Arduino 1.0 (assuming it ever worked). I have altered the library so it compiles but cannot test if it works. I have attached the files so you just need to extract the library to the libraries folder and extract the sketch to the sketch folder.
I do like the look of these displays and 3.3V is handy (harder to get 3.3V LCD's normally) so I may be temped to buy one at some point and write a better library.
DOGM_LCD.zip (2.76 KB)
sketch_jun16a_ST7036.zip (762 Bytes)
thank you much, it worked but it didn't work, compiled but nothing shows up on the lcd. i followed this pin assignment.
// ########## pin assignment ##########
int RS = 12; // Register Select
int RW = 11; // Read/Write
int En = 2; // Enable
//DB should be an unseparated group of pins - because of lazy coding in push_nibble()
int DB[] = {7, 8, 9, 10}; // DB4 .. DB7
im also wondering if i fried my lcd trying to get it to work,
kumar22:
thank you much, it worked but it didn't work, compiled but nothing shows up on the lcd. i followed this pin assignment.
That's a shame, I cannot really offer much more apart from while reading up on theses displays somewhere it said you wont see anything on some display types without a backlight. Not sure if your display has one.
im also wondering if i fried my lcd trying to get it to work,
Is it the 3.3V or 5V version, or does it not matter?
well dat sucks, it does come with a back-light built in.. and tried it with it on, it takes both 3.3v and 5v, i got a second one laying around here somewhere ill try it on 3.3 when i find it.
kumar22:
well dat sucks, it does come with a back-light built in.. and tried it with it on, it takes both 3.3v and 5v, i got a second one laying around here somewhere ill try it on 3.3 when i find it.
Just a thought, I think the code I attached earlier was written for an UNO, is this what your using? If your Arduino is 5V then use 5V as it may damage the display if you power it with 3.3V and the data lines are still 5V. Either use logic level shifters or stick with 5V.
hno its a micro and it support 3.3/ 5v