Schermo LCD
ciao tutti, sto cercando di usare lo schermo lcd che ho comprato con arduino...
lo sketch che sto utilizzando è questo:
ho effettuato tutti collegamenti (li riporto qui sotto)
che sbaglio?
lo sketch che sto utilizzando è questo:
quote
/*
liquidcrystal library - hello world
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 prints "hello world!" to the lcd
and shows the time.
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 resistor:
* ends to +5v and ground
* wiper to lcd vo pin (pin 3)
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 lcd's number of columns , rows:
lcd.begin(16, 2);
// print message lcd.
lcd.print("hello, world!");
}
void loop() {
// set cursor column 0, line 1
// (note: line 1 second row, since counting begins 0):
lcd.setcursor(0, 1);
// print number of seconds since reset:
lcd.print(millis()/1000);
}
ho effettuato tutti collegamenti (li riporto qui sotto)
quote
vss --> gnd
vdd --> +5v
vo --> trimmer
rs --> pin 12
rw --> gnd
e --> pin 11
d4 --> pin 5
d5 --> pin 4
d6 --> pin 3
d7 --> pin 2
a --> +5v
k --> gnd
che sbaglio?
descrivi per favore meglio sintomi del problema.
ciao uwe
ciao uwe
Arduino Forum > International > Italiano > Hardware (Moderator: leo72) > Schermo LCD
arduino
Comments
Post a Comment