RASPBMC und HD44780 LED Display

DruckversionDruckversion

Als erstes muss das HD44780 Display mit dem Raspberry verbunden werden

LCD | GPIO
----|---------------
D7  | GPIO018 (pin 12)
D6  | GPIO023 (pin 16)
D5  | GPIO024 (pin 18)
D4  | GPIO025 (pin 22)
EN  | GPIO08  (pin 24)
RS  | GPIO07  (pin 26)

RASPBMC auf eine SD Karte installieren

Im “System” Menu unter “System” - “Video output” - “Enable LCD/VFD” aktivieren

Via SSH oder Putty auf dem Raspberry anmelden (pi - raspberry)

Den LCD Installer herunterladen:

Dannach den Installer Installieren

sudo bash lcd-install

Dannach die Kiste neu starten

sudo shutdown -r now
 
Das ganze ist eine bereits vorgefertigte Installationsroutine, im Detailsieht passiert folgendes
http://www.tech-fruits.com/hardware/setting-up-lcd-via-gpio-on-raspi-par...

sudo apt-get install lcdproc

Enter Y to install additional packages. This command will download and install LCDproc server which is used to drive the LCD display.

cd /home/pi/

Navigate to the home folder where we will download the drivers.

mkdir lcdproc

Make the folder to store the drivers.

cd lcdproc

Navigate to the folder we just made.

wget http://dl.dropbox.com/u/29632026/raspdrivers.tar.gz

Die Treiber kommen aus http://lcdproc.org/, im Prinzip wurde scheinbar hd44780-rpi.c und hd44780-rpi.h neu erstellt, detailiert konnte ich das noch nicht analysieren

Download the drivers.

tar xzvf raspdrivers.tar.gz

Extract the drivers from the gzip file.

sudo nano /etc/LCDd.conf

Open the LCD server configuration to edit.

Now we are in the configuration file and we shall navigate around using the find command which is CTRL + W. Enter in the search box: “DriverPath=”, now using the arrow keys change this line to read:

DriverPath=/home/pi/lcdproc/

CTRL + W again to search for “driver=” and change this line to read:

Driver=hd44780

Search for “ServerScreen=” and take off the beginning # so it just reads:

ServerScreen=no

This will turn off the screen detailing how many connections are connected, as we will only have the 1, we don’t need to see this screen.

Now search “hd44780”, this will take us to the driver block configuration, 4 lines down we will have “ConnectionType”, change this to read:

ConnectionType=rpi

Hit enter to create a new line and enter the following:

D7=18
D6=23
D5=24
D4=25
RS=7
EN=8

Keep going down until you reach:

Size=20×4

Change this to your display type, ie 20×4, 16×2 etc

That’s it, we are all configured! Now press CTRL + X to exit, press Y to Save Modified Buffer, and enter to overwrite.

When back in command line again, type in:

sudo /etc/init.d/LCDd restart

And if it worked we will have LCDproc Server displayed on the screen!Now it’s time to install the components we need to setup the display, just enter each line one at a time into the putty console.

sudo apt-get install lcdproc

Enter Y to install additional packages. This command will download and install LCDproc server which is used to drive the LCD display.

cd /home/pi/

Navigate to the home folder where we will download the drivers.

mkdir lcdproc

Make the folder to store the drivers.

cd lcdproc

Navigate to the folder we just made.

wget http://dl.dropbox.com/u/29632026/raspdrivers.tar.gz

Download the drivers.

tar xzvf raspdrivers.tar.gz

Extract the drivers from the gzip file.

sudo nano /etc/LCDd.conf

Open the LCD server configuration to edit.

Now we are in the configuration file and we shall navigate around using the find command which is CTRL + W. Enter in the search box: “DriverPath=”, now using the arrow keys change this line to read:

DriverPath=/home/pi/lcdproc/

CTRL + W again to search for “driver=” and change this line to read:

Driver=hd44780

Search for “ServerScreen=” and take off the beginning # so it just reads:

ServerScreen=no

This will turn off the screen detailing how many connections are connected, as we will only have the 1, we don’t need to see this screen.

Now search “hd44780”, this will take us to the driver block configuration, 4 lines down we will have “ConnectionType”, change this to read:

ConnectionType=rpi

Hit enter to create a new line and enter the following:

D7=18
D6=23
D5=24
D4=25
RS=7
EN=8

Keep going down until you reach:

Size=20×4

Change this to your display type, ie 20×4, 16×2 etc

That’s it, we are all configured! Now press CTRL + X to exit, press Y to Save Modified Buffer, and enter to overwrite.

When back in command line again, type in:

sudo /etc/init.d/LCDd restart

And if it worked we will have LCDproc Server displayed on the screen!

Taxonomy Technik: