Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Rasp-Hack-Afficheur-LCD-NAV}}
 
{{Rasp-Hack-Afficheur-LCD-NAV}}
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-01.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-01.jpg|500px]]
    
Whenever you come across a LCD that looks like it has 16 connectors it is most likely using a HD44780 controller. These devices provide the same pinouts making them relatively easy to work with. The LCD uses a parallel interface meaning that we will need many pins from our raspberry pi to control it. In this tutorial we will use 4 data pins (4-bit mode) and two control pins.
 
Whenever you come across a LCD that looks like it has 16 connectors it is most likely using a HD44780 controller. These devices provide the same pinouts making them relatively easy to work with. The LCD uses a parallel interface meaning that we will need many pins from our raspberry pi to control it. In this tutorial we will use 4 data pins (4-bit mode) and two control pins.
Ligne 68 : Ligne 68 :  
Before you start, make sure you have a strip of 0.1" male header and a 10K potentiometer. All Adafruit Character LCDs come with these parts so you should be good to go.  
 
Before you start, make sure you have a strip of 0.1" male header and a 10K potentiometer. All Adafruit Character LCDs come with these parts so you should be good to go.  
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-01.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-01.jpg|500px]]
    
Most LCDs have a strip of 16 pins on the top, if the header is a little longer, just break it off until its the right length
 
Most LCDs have a strip of 16 pins on the top, if the header is a little longer, just break it off until its the right length
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-02.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-02.jpg|500px]]
    
Next you'll need to solder the header to the LCD.You must do this, '''it is not OK to just try to 'press fit' the LCD'''!
 
Next you'll need to solder the header to the LCD.You must do this, '''it is not OK to just try to 'press fit' the LCD'''!
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-03.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-03.jpg|500px]]
    
Start by connecting the '''5V''' and '''GND''' wires from the cobbler to the breadboard. Then connect pins #1, #2 and #15, #16 to the breadboard power rails as shown. The backlight should come on. If it doesn't, check the wiring!
 
Start by connecting the '''5V''' and '''GND''' wires from the cobbler to the breadboard. Then connect pins #1, #2 and #15, #16 to the breadboard power rails as shown. The backlight should come on. If it doesn't, check the wiring!
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-04.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-04.jpg|500px]]
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-05.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-05.jpg|500px]]
    
Next, wire up the contrast potentiometer as shown above, with the middle pin connecting to LCD pin #3 and the other two pins going to 5V and ground.
 
Next, wire up the contrast potentiometer as shown above, with the middle pin connecting to LCD pin #3 and the other two pins going to 5V and ground.
Ligne 88 : Ligne 88 :  
Twist the potentiometer until you see the first line of the LCD fill with boxes. If you don't see the boxes, check your wiring!
 
Twist the potentiometer until you see the first line of the LCD fill with boxes. If you don't see the boxes, check your wiring!
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-06.jpg]]
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-06.jpg|500px]]
    
Finish the wiring for the '''RS, RW, EN, D4, D5, D6''', and '''D7''' pins as shown in the diagram up top
 
Finish the wiring for the '''RS, RW, EN, D4, D5, D6''', and '''D7''' pins as shown in the diagram up top
   −
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-07.jpg]]  
+
[[Fichier:Rasp-Hack-Afficheur-LCD-Montage-LCD-07.jpg|500px]]  
    
That's it! Now you're ready to run the python script to draw text on the screen!
 
That's it! Now you're ready to run the python script to draw text on the screen!
 
   
 
   
 
{{Rasp-Hack-Afficheur-LCD-TRAILER}}
 
{{Rasp-Hack-Afficheur-LCD-TRAILER}}
29 836

modifications

Menu de navigation