fiskius
Posts: 25
Joined: Fri Dec 07, 2012 10:12 pm

HD44780 display with OSMC

Fri Apr 24, 2015 11:52 pm

Had anyone got this HD44780 display working with OSMC? I've had it working no problems using RASPBMC but since the upgrade I can only get the top row of black blocks on the screen (Wiring is correct, but lcdproc is obviously not working).

I use these instructions for RASPMC: http://andypi.co.uk/?p=302

And followed similar steps below to get it working with OSMC, but only get the blocks. I'm using a Raspberry Pi version 1 B+. I know there is an update driver for the RPi 2, but I don't need that yet!

1. update software
sudo apt-get update
sudo apt-get install dpkg-dev gcc
sudo apt-get install lcdproc lcdproc-extra-drivers
select "Yes" perform auto config upgrade

2. Download AndyPi setting file (works with raspbmc) and replace the old one:
sudo wget -O /etc/LCDd.conf http://andypi.co.uk/downloads/LCDd.conf
sudo /etc/init.d/LCDd restart

3. Download & extract and replace hd44780.so ( for RPi 1) file in /usr/lib/lcdproc/
http://andypi.co.uk/downloads/raspdrivers.tar.gz

4. In the OSMC manin menu got to Settings >> Add-ons >> Get add-ons >> XBMC/Kodi add-on repository >> Services >> XBMC LCDproc >> Install

But no joy...

Any help appreciated!

User avatar
DougieLawson
Posts: 41194
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: HD44780 display with OSMC

Sat Apr 25, 2015 1:50 am

Have you got a 10K trimpot between 5V0 & GND with the wiper connected to V0?

Image

Image
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Sat Apr 25, 2015 9:42 pm

I have same problem like above "by fiskus"

If using old Raspbmc built (SD) then HD44780 display work well..
When installed new built "OSMC Kodi" the lcdproc doesn't seem work.
i have did step by step installations like above, and edited all files proper
like i did for old RaspBMC built, but i no luck the display is blank.

BTW: of course not the adjust contrast problem

sorry my bad English.

seem no one could help us ?

fiskius
Posts: 25
Joined: Fri Dec 07, 2012 10:12 pm

Re: HD44780 display with OSMC

Tue May 05, 2015 8:22 am

Yes, I have a contrast control pot, it is worked fine with RASPBMC and directly via python, it is not a hardware issue. I've tried both OSMC and OpenELEC, but can't get LCDproc to work.

I looked at this tutorial for OpenELEC(http://openelec.tv/forum/124-raspberry- ... lay#133784) and found: journalctl --no-pager -b -0

The output showed that LCDd failed to start - anyone any ideas why?

---
Rpi v1 Model B+

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Tue May 05, 2015 3:17 pm

@fiskus

finally i got it work my LCD HD44780 on Rpi B rev2 using OSMC Kodi built

not really clean me how to get it, but working...

User avatar
DougieLawson
Posts: 41194
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: HD44780 display with OSMC

Tue May 05, 2015 4:50 pm

szalay wrote:@fiskus

finally i got it work my LCD HD44780 on Rpi B rev2 using OSMC Kodi built

not really clean me how to get it, but working...
What's your problem? Is it the wiring or the programming?
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Wed May 06, 2015 12:38 pm

Basically I've solved the problem.
It's Install (programming) not really same as, like we did
for RaspBMC built.

fiskius
Posts: 25
Joined: Fri Dec 07, 2012 10:12 pm

Re: HD44780 display with OSMC

Sun May 10, 2015 11:31 pm

Any chance of posting some detailed instructions?

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Mon May 11, 2015 1:23 pm

Yup, you could try I how get it work.

Fresh installed OSMC Kodi.
and make lcdproc folder in > /home/osmc/lcdproc/
and ftp'd the Andy's hd44780.so
(I have another patched .so file for rev2) works both.

1.
OMSC > Updating (Scan for updates now)

2.
sudo apt-get update
sudo apt-get install lcdproc lcdproc-extra-drivers
(select "Yes" perform auto config upgrade)
3.
sudo apt-get install dpkg-dev gcc

4.
sudo apt-get install build-essential

5.Then Uninsall lcdproc:
sudo apt-get remove lcdproc

6. Reinstall lcdproc:
sudo apt-get install lcdproc lcdproc-extra-drivers

Code: Select all

 Unpacking lcdproc-extra-drivers (0.5.7-2) ...
Setting up lcdproc (0.5.7-2) ...
Fixing lcdproc configuration... 
it show "fixing lcdproc configuration" thats it !!

7.
sudo nano /etc/LCDd.conf
edit config file proper:

Code: Select all

 ## This file was written by cme command.
## You can run 'cme edit <application>' to modify this file.
## Run 'cme list' to get the list of applications available on your system
## You may also modify the content of this file with your favorite editor.


[server]
DriverPath=/home/osmc/lcdproc/
Driver=hd44780
Bind=127.0.0.1
Port=13666
User=nobody
WaitTime=5
ServerScreen=no

NextScreenKey=Right
PrevScreenKey=Left
ReportToSyslog=yes
ToggleRotateKey=Enter

[menu]
DownKey=Down
EnterKey=Enter
MenuKey=Escape
UpKey=Up

## Hitachi HD44780 driver ##
[hd44780]

# Select what type of connection. See documentation for  types.
ConnectionType=rpi
D7=22
D6=27
D5=17
D4=23
RS=25
EN=24

Port=0x378

Speed=0

Size=16x2 
8.
Enable/install LCDproc via OSMC
In the OSMC manin menu got to Settings >> Add-ons >> Get add-ons >> XBMC/Kodi add-on repository >> Services >> XBMC LCDproc >> Install

9.
sudo /etc/init.d/LCDd restart

done...

cheers..

wowko
Posts: 3
Joined: Wed Jun 10, 2015 5:07 pm

Re: HD44780 display with OSMC

Wed Jun 10, 2015 5:10 pm

szalay wrote:Yup, you could try I how get it work.

Fresh installed OSMC Kodi.
and make lcdproc folder in > /home/osmc/lcdproc/
and ftp'd the Andy's hd44780.so
(I have another patched .so file for rev2) works both.

1.
OMSC > Updating (Scan for updates now)

2.
sudo apt-get update
sudo apt-get install lcdproc lcdproc-extra-drivers
(select "Yes" perform auto config upgrade)
3.
sudo apt-get install dpkg-dev gcc

4.
sudo apt-get install build-essential

5.Then Uninsall lcdproc:
sudo apt-get remove lcdproc

6. Reinstall lcdproc:
sudo apt-get install lcdproc lcdproc-extra-drivers

Code: Select all

 Unpacking lcdproc-extra-drivers (0.5.7-2) ...
Setting up lcdproc (0.5.7-2) ...
Fixing lcdproc configuration... 
it show "fixing lcdproc configuration" thats it !!

7.
sudo nano /etc/LCDd.conf
edit config file proper:

Code: Select all

 ## This file was written by cme command.
## You can run 'cme edit <application>' to modify this file.
## Run 'cme list' to get the list of applications available on your system
## You may also modify the content of this file with your favorite editor.


[server]
DriverPath=/home/osmc/lcdproc/
Driver=hd44780
Bind=127.0.0.1
Port=13666
User=nobody
WaitTime=5
ServerScreen=no

NextScreenKey=Right
PrevScreenKey=Left
ReportToSyslog=yes
ToggleRotateKey=Enter

[menu]
DownKey=Down
EnterKey=Enter
MenuKey=Escape
UpKey=Up

## Hitachi HD44780 driver ##
[hd44780]

# Select what type of connection. See documentation for  types.
ConnectionType=rpi
D7=22
D6=27
D5=17
D4=23
RS=25
EN=24

Port=0x378

Speed=0

Size=16x2 
8.
Enable/install LCDproc via OSMC
In the OSMC manin menu got to Settings >> Add-ons >> Get add-ons >> XBMC/Kodi add-on repository >> Services >> XBMC LCDproc >> Install

9.
sudo /etc/init.d/LCDd restart

done...

cheers..
Hello, I followed all these steps but didn't create the directory for Andy's hd44780.so or copy the file to that folder until after completing the other steps. Now I just have the LCD with white blocks on the top row. What steps should I take to fix this? I tried uninstalling all and then running through the process again but now the Auto Config Upgrade screen doesn't come up. Any help is really appreciated. Thanks!

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Thu Jun 11, 2015 1:52 pm

what Rpi model are you using same as like me?
because the Andy's.so LCDdriver for rpi1 rev2 model

and, I built the folder for hd44780.so myself via FTP

wowko
Posts: 3
Joined: Wed Jun 10, 2015 5:07 pm

Re: HD44780 display with OSMC

Sat Jun 13, 2015 12:29 am

I have a raspi 1 b+

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Mon Jun 15, 2015 4:07 pm

Any news/lucky to get working LCD ?

kobiben
Posts: 1
Joined: Tue Dec 18, 2012 12:50 pm

Re: HD44780 display with OSMC

Sat Jul 18, 2015 7:46 pm

i followed everyone instructions but still could not find the cause for it to not working, but eventually i found out that the LCDd.conf file had invalid CRLF which i fixed by dos2unix it, and bamm, working like a charm.

sam nazarko
Posts: 155
Joined: Wed Apr 25, 2012 5:05 pm

Re: HD44780 display with OSMC

Sat Jul 18, 2015 8:36 pm

Can you post this tutorial at discourse.osmc.tv so we can add it to our how-to section?

Sam

szalay
Posts: 7
Joined: Sat Apr 25, 2015 9:11 pm

Re: HD44780 display with OSMC

Sat Jul 18, 2015 9:59 pm

kobiben wrote:i followed everyone instructions but still could not find the cause for it to not working, but eventually i found out that the LCDd.conf file had invalid CRLF which i fixed by dos2unix it, and bamm, working like a charm.
Nice, good to hear you finally got it works.
And yes, more info about "fixed by dos2unix it" ?
My next project Pi2, LCD through i2c serial interface on OSMC-kodi

fiskius
Posts: 25
Joined: Fri Dec 07, 2012 10:12 pm

Re: HD44780 display with OSMC

Tue Nov 10, 2015 6:50 pm

Well, a few months later... still issues.

I've been following szalay's instructions. I've tried OSMC and openelec, raspberry pi 1 B+ and pi 2, of all combinations using the correct hd44780 driver, tried 2 different LCDs, tripled checked wiring and I have the following, in all cases:
I get the top row of blocks only; when I enable the lcdproc in software, the backlight on the LCD starts to flicker randomly, but still with the top row of blocks.

So > basically lcdproc is not getting through to the LCD, since I don't even have 'welcome to LCDproc'.

I know the LCD's work, because I've tested them with a python app that writes to it directly. So the issue is with kodi variants and LCD proc. Is anyone else getting these issues? It's a shame as under RASPBMC everything was brilliant..

Cheers

Return to “Media centres”