Boa noite, to tentando usar o CI 74hc595 no arduino para ligar um LCD 16x2 . mas nao consigo fazer aparecer alguma coisa na tela.
#include <LiquidCrystal.h>
#include <SPI.h>
//some comments missing here but they will be in the original sketch
// initialize the library with the number of the sspin
//(or the latch pin of the 74HC595)
LiquidCrystal lcd(10);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(20, 4);
// Print a message to the LCD.
lcd.print("hello, world!");
}
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);
}
Tags:
As respostas para este tópico estão encerradas.
Boa noite MSR.
Só ajudo amigos que não colam sketch na área de texto do tópico.
Sou velho e ranzinza.
Se remover o code, e anexar como arquivo, posso reconsiderar minha decisão.
Leia: http://labdegaragem.com/forum/topics/sugest-o-de-como-postar
Rui
Esse "Não consigo fazer aparecer" cheira a falta de contraste.
Mais exatamente, como fica o LCD ?
Vc colocou o potenciometro indicado na sua imagem e tentou virar ele para proximo ao GND ?
Mande se possível uma foto da sua montagem.
Na imagem está faltando ligar a alimentação, o GND e o 5V.
Bem-vindo a
Laboratorio de Garagem (arduino, eletrônica, robotica, hacking)
© 2024 Criado por Marcelo Rodrigues. Ativado por