Volumio with lcd 20x4 customized

Here are the I2C devices

UU is the reading of when only the DigiOne is connected.

The 27 is the LCD display.

I can confirm that the SDA & SCL positions are correct.

I tried adjusting the contrast controls (and it adjusts contrast) but nothing else. This is the default look of the display

When I run: sudo systemctl restart pydpiper.service I get no errors nor confirmation of success. Just a clear terminal.

1 Like

look for the error. misspelled driver parameters or pages file.

Step 2. Edit the pydpiper.service file

A systemctl services file has been provided with examples for several different popular configurations. You will need to enable the appropriate ExecStart line for your particular configuration. You do this by removing the ‘#’ character at the start of the line for the ExecStart that is appropriate. It is possible that you will also need to edit some of the values for the ExecStart command if your configuration is different than what was provided.

IMPORTANT: There must be one and only one ExecStart enabled within the file.

The general format for the ExecStart lines is as follows:

ExecStart=/usr/bin/docker run --network=host --privileged -v /var/log:/var/log:rw dhrone/pydpiper:latest python /app/pydPiper.py --<musicdistro> --driver <driver> --width <width> --height <height> --i2caddress <i2caddress> --i2cport <i2cport> --rs <rs> --e <e> --d4 <d4> --d5 <d5> --d6 <d6> --d7 <d7> --timezone <timezone> --temperature <temperature> --lmsplayer <lmsplayer> --pages <pagefile>

Definitions for command line Parameters

<driver> – Driver for your display. Possible values are ‘winstar_weg’, ‘hd44780’, ‘hd44780_i2c’, ‘ssd1306_i2c’

<musicdistro> – Sets the type of music player pydPiper is installed on. Possible values are ‘volumio’, ‘rune’, ‘lms’

<width> – width of your display in pixels. If you are using a character display, each column is 5 pixels wide <height> – height of your display in pixels. If you are using a character display, each line is 8 pixels high

For I2C displays <i2caddress> – The I2C address your display is installed on. Normally 0x27. <i2cport> – The I2C port your display is attached to. Normally 1.

This is what I entered into the prompts triggered by:

sudo ./install_volumio.sh

For the last command:

sudo systemctl restart pydpiper.service

Should it be pydpiper.service or pydpiper.volumio.service being passed into the above command?

pydpiper. service.
everything is correct for you and should work. further I am powerless. examine the log file of the program.
https://community.volumio.com/search?context=topic&context_id=12383&q=Pydpiper&skip_context=true

SUCCESS!

I did a fresh flash of the latest version of buster and re-installed using the install guide on https://github.com/dhrone/pydPiper

Thank you so much for helping me work thru this :slight_smile:

I have to see about tweaking the formatting (note the un-used line)
but so excited to have it working now.

Do you have to do anything special to implement the display changes?

I stripped down

pages_lcd_20x4.py

to the bar bones display setting on the pydPiper github like this:

but my screen is still stuck looking like this:

my example file in the post above.
to edit the file, you have to figure it out yourself. it will take time and patience.
restart the service after each change.

I ask for help for a 20x4 LCD modules.
I can’t get the display to work :frowning:


does anyone have a tip for me ?
Raspberry 3b+, Volumio 3x
https://www.amazon.com/SunFounder-Serial-Module-Arduino-Mega2560/dp/B01GPUMP9C?th=1


dd1


dd4

1 Like

To begin with, you need to get the following result. Two stripes on the screen. https://community.volumio.com/uploads/default/original/2X/3/35dc2477c644686f11376b6716709da158e416a3.jpeg
Didn’t you turn the blue potentiometer on I2C-board?

1 Like

Maybe this will get you going:

Yes :slight_smile: unfortunately without change

I am desperate, could someone offer the pydpiper directory for download ?

Try a clean Volumio installation and then PydPiper.

Hi solaar! I’m having a hard time to setup this 16x2 lcd i2c bought from online shop here.
Using latest volumio version, flashed it on rpi3b+
And i do this command from.
Hello,
today (motivated by your post) I managed to run the pydPiper plugin. Honestly, after my last entry, I postponed playing with the display indefinitely. I no longer had any nerves…
I will try to write from the beginning what I did.

My display is LCD 16x2, Volumio 2.834

Commands (I entered them separately):
git clone GitHub - dhrone/pydPiper: A general purpose program to display song metadata on LCD and OLED devices
cd pydPiper
sudo ./install_docker.sh
sudo ./install_volumio.sh

After entering the last command, I added the following values ​​one by one:

[DISPLAY]
Display type? [winstar_weg]: hd44780_i2c
I2C Port? [1]: 1
I2C Address? [0x3d]: 0x27
Width of display (in pixels)? [80]: 80
Height of display (in pixels)? [16]: 16
Enable pulse duration (in microseconds)? [0.1]: 1
Location of the pagefile? [pages_weh_80x16.py]: pages_lcd_16x2.py
Animation Smoothing (in seconds)? [0.1]: 0.15

SYSTEM CONFIGURATION
Location of log file? [/var/log/pydPiper.log]: /var/log/pydPiper.log
Logging Level? [info]: info
Time Zone? [US/Eastern]: Europe/Amsterdam
24-hour clock? [false]: true
Temperature Scale? [fahrenheit]: celsius
Enable weather? [n]: n

MUSIC DISTRIBUTION
Name of distribution? [volumio]: volumeio
Server address? [localhost]: localhost
Port? [3000]: 3000

In your case (LCD 4x20 I2C), change the following values ​​in relation to my configuration:
Display type? [winstar_weg]:
Width of display (in pixels)? [80]:
Height of display (in pixels)? [16]:
Location of the pagefile? [pages_weh_80x16.py]:

Be careful when changing Time Zone - in my case Europe/Amsterdam - when entering Europe/Warsaw the plugin did not work!!! (it was discussed on some forum).

Best regards and good luck

, Kris
And I’ve been stuck with this line ( volumio@volumio:~/pydPiper$ sudo ./install_volumio.sh

Creating configuration file for pydPiper

STARTUP CONFIGURATION

Startup mode duration (in seconds)? [5]: 5

DISPLAY CONFIGURATION

Display type? [winstar_weg]: hd44780_i2c
I2C Port? [1]: 1
I2C Address? [0x3d]: 0x27
Width of display (in pixels)? [80]: 80
Height of display (in pixels)? [16]: 16
Enable pulse duration (in microseconds)? [0.1]: 1
Location of the pagefile? [pages_weh_80x16.py]: pages_lcd_16x2.py
Animation Smoothing (in seconds)? [0.1]: 0.15

SYSTEM CONFIGURATION

Location of log file? [/var/log/pydPiper.log]: /var/log.pydPiper.log
Logging Level? [info]: info
Time Zone? [US/Eastern]: Asia/Manila
24-hour clock? [false]: true
Temperature Scale? [fahrenheit]: celcius
celcius is not a valid value
Temperature Scale? [fahrenheit]: celsius
Enable weather? [n]: n

MUSIC DISTRIBUTION

Name of distribution? [volumio]: volumio
Server address? [localhost]: localhost
Port? [3000]: 3000

UPDATING pydPiper.cfg
Creating pydpiper.service file

Created symlink /etc/systemd/system/multi-user.target.wants/pydpiper.service → /etc/systemd/system/pydpiper.service.
volumio@volumio:~/pydPiper$ )

hi i did all your instructions ,unfortunately i couldn’t restart it using the last command.

UPDATING pydPiper.cfg
Creating pydpiper.service file

Created symlink /etc/systemd/system/multi-user.target.wants/pydpiper.service → /etc/systemd/system/pydpiper.service.
volumio@edje-audiophile:~/pydPiper$ sudo systemctl restart pydpiper.service
volumio@edje-audiophile:~/pydPiper$ sudo nano ./pages_lcd_20x4.py
volumio@edje-audiophile:~/pydPiper$ sudo nano ./pages_lcd_16x2.py
volumio@edje-audiophile:~/pydPiper$ sudo systemctl restart pydpiper.service
volumio@edje-audiophile:~/pydPiper$ sudo systemctl restart pydpiper.volumio.service
Failed to restart pydpiper.volumio.service: Unit pydpiper.volumio.service not found.
volumio@edje-audiophile:~/pydPiper$ sudo systemctl restart pydPiper.volumio.service
Failed to restart pydPiper.volumio.service: Unit pydPiper.volumio.service not found.
volumio@edje-audiophile:~/pydPiper$ sudo systemctl restart pydpiper.service
volumio@edje-audiophile:~/pydPiper$

Hi mate! May i know what version of volumio did you use on lcd to work? And how do you change the directory file?

Hi

I had problems getting pydpiper to work until i used the plugin.

You can get the plugin from here:https://github.com/Saiyato/volumio-pydpiper-plugin/blob/master/volumio-pydpiper-plugin.zip

Download, unzip, copy extracted folder to your volumio folder, ssh into the folder, install with “volumio plugin install” and then sit back and wait…

When it completes there should be a pydpiper item on the plugins web UI page.

If you want to have your own page displayed on the LCD, you will have to change ownership of the resulting /home/volumio/pydPiper folder as it installs as “root” with: sudo chown -R volumio:volumio pydPiper

Please note I had problems with v3.705 breaking pydpiper. Seems that there was an update to socket.io - i went back to v3.631 as that was the latest i could find before the update.

/S

1 Like


hi there! i do as you instruction ,unfortunately after i run command on ssh using volumio plugin install it says no found

you need to change to the plugin directory - sorry, i should have also mentioned that.

cd volumio-pydpiper-plugin/

you can press TAB after typing cd v to use auto-complete, hit enter and the prompt should change to

volumio@volumio:~/volumio-pydpiper-plugin$

then volumio plugin install should work

hi how do i change or what should i execute to change the plugin drectory?
first, im going to download and unzip the file above then, i’ll use filezilla to transfer the unzip file from my pc to home volumio folder?
2nd then im going type this , cd volumio-pydpiper-plugin/

you can press TAB after typing cd v to use auto-complete, hit enter and the prompt should change to

volumio@volumio:~/volumio-pydpiper-plugin$

then volumio plugin install should work

sorry for my stupidity, i didnt know how to change plug in directory

You’re so close! :slight_smile:

in putty (the black screen in your screenshot) after you have logged with username and password volumio type cd volumio-pydpiper-plugin

the prompt should change from volumio@volumio:~$ to volumio@volumio:~/volumio-pydpiper-plugin$ and look like this:

then type volumio plugin install

then press y to install