LCD display and buttons in Python (tutorial and code)

Raspberry Pi related support

Re: LCD display and buttons in Python (tutorial and code)

Postby Altreis » 31 Dec 2016, 15:38

Hello
I followed your tuto but I can not display anything on the 16x4 screen.
I also have an i2c module connected to the screen.

Could you help me ?

Thank you

Altreis
Altreis
 
Posts: 1
Joined: 31 Dec 2016, 15:30

Re: LCD display and buttons in Python (tutorial and code)

Postby s.k. » 16 Jan 2017, 11:43

Hi to everyone
I think this is the right topic to ask for assistance regarding my “problem”.

I have a raspberry Pi2 uploaded with the latest RuneAudio img and additional have successfully install an infrared remote control and an LCD 16x2 Display.
The LCD 16x2 Display works very well with the remote control (changing the 6 screens) according to the XploD's solution (the new version - https://github.com/RandyCupic/RuneAudioLCD )

I would like to upgrade my Hifiberry digi+ to the new Hifiberry digi+pro.
In order to do that I have to upgrade the existing Kernel (4.1.20-1) to the newer (i.e. 4.4.40-1).

When I am doing this upgrade, everything continues to work as it would, except the screen changing thing. When I use it, the screen freeze to the latest info and nothing happens further more.
I am not very familiar with programming, but I find this “half failure” very strange.
Is it possible the kernel update to mess-up some file permissions ?
Can I perform some kind of tests, in order to understand what goes wrong ?

I appreciate any possible help

Regards
s.k
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 16 Jan 2017, 23:37

is all this work as mentioned in several posts really needed with the latest rune image ?
I had the idea a native 1602 LCD could be wired to some GP-IO in 4 bit mode,
and simply enable the function in a config file ??
PLEASE say YES ??
and instructions about the hardware and enable ??
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby s.k. » 17 Jan 2017, 06:12

s.k. wrote:Hi to everyone
I think this is the right topic to ask for assistance regarding my “problem”.

I have a raspberry Pi2 uploaded with the latest RuneAudio img and additional have successfully install an infrared remote control and an LCD 16x2 Display.
The LCD 16x2 Display works very well with the remote control (changing the 6 screens) according to the XploD's solution (the new version - https://github.com/RandyCupic/RuneAudioLCD )

I would like to upgrade my Hifiberry digi+ to the new Hifiberry digi+pro.
In order to do that I have to upgrade the existing Kernel (4.1.20-1) to the newer (i.e. 4.4.40-1).

When I am doing this upgrade, everything continues to work as it would, except the screen changing thing. When I use it, the screen freeze to the latest info and nothing happens further more.
I am not very familiar with programming, but I find this “half failure” very strange.
Is it possible the kernel update to mess-up some file permissions ?
Can I perform some kind of tests, in order to understand what goes wrong ?

I appreciate any possible help

Regards
s.k

Ok, I got it !
Just for the record, after the kernel upgrade the "/proc/asound/card1" became "/proc/asound/card0"
(I use it in order to display sample rate)
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: LCD display and buttons in Python (tutorial and code)

Postby s.k. » 17 Jan 2017, 06:13

TommyBoy wrote:is all this work as mentioned in several posts really needed with the latest rune image ?
I had the idea a native 1602 LCD could be wired to some GP-IO in 4 bit mode,
and simply enable the function in a config file ??
PLEASE say YES ??
and instructions about the hardware and enable ??


For the wiring of a 16x2 LCD I use an I2C BACKPACK and I only need to wire 4 cables:
GND to Raspberry GND
VCC to Raspberry 5V
SDA to Raspberry SDA pin 3 (GPIO2)
SCL to Raspberry SCL pin 5 (GPIO3)
In order to enable the XploD's new version –(https://github.com/RandyCupic/RuneAudioLCD ) on a Pi2 with the latest image and the above wiring , I had to edit the :
/boot/config.txt
/boot/cmdline.txt
/etc/modules-load.d/raspberrypi.conf
And install the i2c-tools
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: LCD display and buttons in Python (tutorial and code)

Postby hondagx35 » 17 Jan 2017, 11:40

Hi s.k.

s.k. wrote:Ok, I got it !
Just for the record, after the kernel upgrade the "/proc/asound/card1" became "/proc/asound/card0"
(I use it in order to display sample rate)

Following my HowTo (posted several times), updating will not change card numbers.

Code: Select all
dtparam=audio=on


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: LCD display and buttons in Python (tutorial and code)

Postby s.k. » 17 Jan 2017, 15:11

Hi Frank
You have absolutely right, but my lack of skills make me believe that this entry was referring to the DAC in the specific topic http://www.runeaudio.com/forum/hifiberry-dac-not-detected-after-kernel-update-t4180.html#p18311.
My mistake …

s.k.
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 17 Jan 2017, 18:54

thanks for the info,
however I dont have a clue what the links to a github is or what it do,
install i2c tools ?? dont have a clue
edit this and that file ? no idea what to look for.

I dont mind purchase any type of I2C display to have it working,
simply by configure change ONE line to enable..
or even better : A standard 1602 or 1604 or 2002 or 2004
simply connected in 4 bit mode.
WHY is all this install and configure not allready done in the image file ??
so any user with out ultra hardcore Linux skils can figure out how to do it ??
so many people cry for LCD help, it is the THING we all would love to add, but dont have the skils.
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: LCD display and buttons in Python (tutorial and code)

Postby c@bbie45 » 23 Jan 2017, 21:22

Hi,
First time poster and enjoying the hardware but struggling with coding (zero experience but able to copy and paste). Using B+ with Supstronics X400 DAC. Very happy with the hardware setup; it's awesome using the onboard amp. Have tried both Volumio and Runeaudio so far - happiest with Runeaudio.

I'm trying to connect a 16x2 LCD via using a standard HDD44780 LCD (without i2c if possible but can add this if it's needed) to display basic track and artist information and I have some problems.

Firstly I've been trying and failing for days now with the xplod tutorial and the updated links per hondagx35 instructions from 29th August 2016, but I get as far as trying to install the Adafruit_Python_CharLCD and I get the following error:
"Download error for https://github.com/adafruit/Adafruit_Py ... GPIO-0.4.0: unknown url type: https"

Secondly, the links for the code are out of date http://buzzthisnow.com/RA_LCD_Buttons.tar - is there an up to date link, or possibly an image for B+ with all of this already installed?

Many thanks.
c@bbie45
 
Posts: 2
Joined: 23 Jan 2017, 20:56

Re: LCD display and buttons in Python (tutorial and code)

Postby TommyBoy » 24 Jan 2017, 14:43

welcome to the "Club" :-) c@bbie45
if only native 16x2 displays and this like was supported in the basic image
all us "not-Linux" Experts should be able to solder a few wires
and change one enable line of config
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 8 guests