Hello,
I am trying to get two 5510 lcd displays to work at the same time.
I have connected them in parralel except the CE pin. If I wire the CE (pin 2) manually to ground and the other CE pin to vcc it works and I can write to one display. And of course if I swap the ground and vcc I can write to the other display.
So the displays are working and I think I wired them correctly.
Now I connected the CE pins to pin 9 and 10 thinking I can do something like this:
pinMode(OUTPUT);
digitalWrite(9,LOW); // to select the first display
digitalWrite(10,high);// to make sure this display is not selected.
To force which display should be written.
But it does not work. I tried several libraries. They all work with one display at the same time. It seems I cannot just connect the CE pin to a digital pin and make that HIGH or LOW? I have the board ground connected to the breadboards ground. I do use an external powersource. I tried without but it does not help.
2 examples of what I tried:
#include <Nokia_LCD.h>
Nokia_LCD lcd(3 /* CLK */, 4 /* DIN */, 5 /* DC */, 10 /* CE */, 6 /* RST */);
Nokia_LCD lcd2(3 /* CLK */, 4 /* DIN */, 5 /* DC */, 9 /* CE */, 6 /* RST */);
void setup() {
delay(20);
lcd.begin();
lcd.setContrast(60);
lcd2.begin();
lcd2.setContrast(60);
}
void loop() {
lcd.println("\nI am right");
delay(500);
lcd2.println("\nI am Left");
delay(500);
}
Or
#include <Nokia_LCD.h>
Nokia_LCD lcd2(3 /* CLK */, 4 /* DIN */, 5 /* DC */, 10 /* CE */, 6 /* RST */);
Nokia_LCD lcd(3 /* CLK */, 4 /* DIN */, 5 /* DC */, 9 /* CE */, 6 /* RST */);
void setup() {
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(20);
lcd.begin();
lcd.setContrast(60);
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
lcd2.begin();
lcd2.setContrast(60);
}
void loop() {
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(500);
lcd.println("\nI am Right");
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
delay(20);
lcd2.println("\nI am left");
delay(500);
}
I used a multimeter and I can see pin 9 and 10 going to 0 and 3.3 volt.
What am I missing here?
I do use a WAVGAT Uno R3 imitation (they are not clones) since it has 3.3 volt io pins and this seems ideal. And just wiring the CE manually works fine. Just not automated.
Any one have any suggestions?
Thank you.
Hans de Groot