User Tools

Site Tools


i2c_lcd_display

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
i2c_lcd_display [2016/08/01 20:25] walkeradmini2c_lcd_display [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 45: Line 45:
     sudo apt-get upgrade     sudo apt-get upgrade
 \\  \\ 
 +On the LCD the four connections will be labelled something like: 
 +\\  
 +    LCD          R-Pi 
 +     
 +    GND (Ov)     Pin 6 
 +    VCC (5v)     Pin 2 
 +    SDA          Pin 3 (GPIO2) 
 +    SCL          Pin 5 (GPIO3) 
 +\\  
 +You need to ensure that the I2C pins are active: 
 +\\  
 +    sudo raspi-config 
 +    Advanced Options 
 +    I2C 
 +     
 +    Where you see the message -  Would you like the ARM I2C interface to be enabled? 
 +     
 +    Select Yes, then exit this menu system 
 +     
 +    Reboot for the changes to take effect 
 +\\  
 +Once the OS is installed and the LCD is connected, the libraries can be installed: 
 +\\  
 +Ensure you are in  your home folder (probably /home/pi)\\  
 +\\  
 +From the command line: 
 +\\  
 +    git clone https://github.com/the-raspberry-pi-guy/lcd 
 +     
 +    cd lcd 
 +     
 +    sudo sh install.sh (RPi will auto reboot) 
 +\\  
 +Once the Pi has rebooted:  
 +\\  
 +    Navigate to your home folder (probably /home/pi) 
 +    cd lcd 
 +    edit lcddriver.py to ensure the ADDRESS = 0x27 is the correct address (some are 0x20) 
 +\\  
 +I found this guide by doing this YouTube search: 
 +\\  
 +     
 +    Raspberry Pi - Mini LCD Display Tutorial by TheRaspberryPiGuy 
 +\\  
 +To start the demo LCD code: 
 +\\  
 +    sudo python lcd_lcd.py 
 +\\  
 +You should now have some text on the LCD\\  
 +\\ 
i2c_lcd_display.1470079509.txt.gz · Last modified: 2023/03/09 22:35 (external edit)