Arduino LCD probleme affichage
Bonjour, j'ai un problème avec mon écran lcd quand je fait le branchement comme inscrit dans le livre arduino donc
* 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
* LCD VSS pin to ground
* LCD VCC pin to 5V
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
le rétro éclérage de l'écran s'allume mais quand je télverse le programme suivant.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| #include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// 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);
} |
(programme disponible dans les croquis arduino (liquidcristal HelloWorld))
quand je téléverse le programe pas de roblème de televersement mais rien ne s'affiche sur mon écran.
Je ne comprend pas j'ai recontrollé moncablage 5 fois et l'ai déonté et remonté 3 fois donc pas de problème de se coté la
Pourriez vous m'aider SVP ?
Merci d'avance
Solution aux problèmes de NON AFFICHAGE des données après le téléversement du Sketch dans la carte Arduino
* 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
* LCD VSS pin to ground
* LCD VCC pin to 5V
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
le rétro éclérage de l'écran s'allume mais quand je télverse le programme suivant.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| #include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// c'est ici qu'il faut insérer la syntaxe qui suit:
lcd.backlight ();
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// 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);
} |
(programme disponible dans les croquis arduino (liquidcristal HelloWorld))
réponses à ce problème
je vous suggère de d'ajouter la fonction lcd.backlight();
après avoir comparé les syntaxes d'une vidéo qui permet d'afficher les informations sur l'Ecran LCD et la simple syntaxe par défaut pour afficher le "HelloWorld" qu'offre le IDE arduino, je remarque que dans les deuxièmes syntaxes (HelloWord) il me manquait la fonction backlight();
après l'avoir inseré c'est ainsi que j'ai vu mon écran faire apparaît les données