Instructables

LCD 4X20 ADM2004D-FL-YBS y ARDUINO. Doesnt work!!!!! HELPPP!!!!?


hola, soy nueva en esto de los LCD y estoy tratando se obtener un "hello world!" con el lcd adm200d-fl-ybs conectandolo a Arduino UNO. ES IMPOSIBLE, lo maximo que obtengo es 2 filas con cuadrados negros.
He probado las libreria lcd.h, lyquidCrystal.h,LCD4bit.h...........He cargado varios programas , conectado pines y no hay forma. Porfavor, ayuda o tiro a la basura el LCD y compre otro que me aconsejeis. SOS..........SOS...........SOS
GRACIAAAAAS

THIS CODE DOESNT WORK:
#include <LiquidCrystal.h>

LiquidCrystal lcd(7,6,5,4,3,2);

void setup()
{
Serial.begin(9600);
// Print a message to the LCD.
Serial.println("setup");
// set up the LCD's number of rows and columns:
lcd.begin(20, 4);
// Print a message to the LCD.
// lcd.setCursor(0, 3);
lcd.setCursor(0, 3);
lcd.print("hello, world!");

}

void loop()
{

}

Picture of LCD 4X20 ADM2004D-FL-YBS y ARDUINO. Doesnt work!!!!! HELPPP!!!!?
certaut1 year ago
Syntax
LiquidCrystal(rs, enable, d4, d5, d6, d7)
LiquidCrystal(rs, rw, enable, d4, d5, d6, d7)
LiquidCrystal(rs, enable, d0, d1, d2, d3, d4, d5, d6, d7)
LiquidCrystal(rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7)
Maybe you should have bought this one:

http://www.sainsmart.com/module/lcd-module/sainsmart-iic-i2c-twi-serial-2004-20x4-lcd-module-shield-for-arduino-uno-mega-r3.html

It is good and it doesn't have this kind of problem. The skethes are provided when the purchase is made.
Well, also retest ALL your wiring. Protoboards are NOT to be trusted for reliable wiring.

Steve
niji2 years ago
try turning it off then turn it on again :) it just might work :)
And if its in 4 bit mode, ground the unused pins on the data bus
frollard2 years ago
Is the lcd set up to use 4 bit or 8 bit parallel driving?

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

suggests using 12 11 5 4 3 2
Did you try with that setup?

Try outputing something in the void loop() function
eg
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}

Lastly, make sure the contrast is correct- or you might see junk.


(google translate) :
¿Es la pantalla LCD configurado para utilizar 4 bits u 8 bits en paralelo de conducción?

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

sugiere utilizar 12 11 5 4 3 2
¿Probaste con que la instalación?

Intente algo outputing en el circuito de vacío () la función
por ejemplo,
void loop () {
/ / colocar el cursor en la columna 0, la línea 1
/ / (nota: la línea 1 es la segunda fila, ya que cuenta comienza con 0):
lcd.setCursor (0, 1);
/ / imprimir el número de segundos desde que se restableció:
lcd.print (Millis () / 1000);
}

Por último, asegúrese de que el cambio es correcto o es posible que vea basura.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!