Use parallel connection on 16x2 lcd and pydpiper

Maybe i try to use parallel connection on 16x2 lcd and pydpiper but i dont know how to edit the file text so i can use parallel.
my current default for 16x2;
sudo 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
sudo nano ./pages_lcd_20x4.py
[my example: pages_lcd_20x4.zip (2.4 KB)]
sudo systemctl restart pydpiper.service

And it works fine for me. however, i don’t know how to edit the pydpiper file and use parallel instead.

And oled from i2c and plugin store.

Thanks hope you understand,

Just try it without editing anything.
MPD_OLED mostly runs on 3c, LCD on 27
For code changes on pydpiper, you need to connect with it’s developer.
As this is not any official plugin and have no idea if it will break something.

Hi wheaten sorry for late response,
I tried to do what i said before, lcd and oled are connected at same i2c on rpi and neither of these one not showing any display nor working.
I also tried to seperate power of these lcd and oled it seems not working either.

Additional, I’d tried to scan device on mpdoled plugin and it show on 27 not 3c just like before. Maybe it has signal interference.

Thanks anyways.

I will not provide support to get the LCD code up and running, that’s with the developer of the code.
What I can do is show you it work with both MPD_OLED and a LCD Matrix screen on the same pins.
image

So in your case check the wiring.

image

cd ~
pip3 install RPLCD
sudo apt install python3-smbus
sudo pip3 install smbus2
git clone https://github.com/dbrgn/RPLCD.git
cd /home/volumio/RPLCD
python3 rplcd-tests i2c testsuite expander=PCF8574 addr=0x27 port=1 cols=20 rows=4 charmap=A00

you should see 2 addresses. I don’t think there is signal interference as each device on the I2C bus will only respond to data that sent to the device’s address. What you could do is try running the screen on the I2C-0 bus.

1 Like

In my working example they both are connected to pin 3 and 5, 6.
Only for VCC OLED pin 1 and LCD pin 2.
image

1 Like

Hi there!
Mind me to know what version of os did you use and how do you run this lcd and do you have tutorial to work my lcd.
Thank you wheaten,

I’ll try these.

Ran it on the latest stable Volumio version (V3,742)
No tutorial, it was just a test and I provided everything I did, as all I wanted to demonstrate was that it works.
The lib I used has a lot of documentation:
https://rplcd.readthedocs.io/en/stable/

Thank you appreciate your help.

Hi wheaten i manage to work oled 0.96inch on a latest ver of volumio. However, it’s so hard for me to do the instruction that yo gave me Welcome to RPLCD’s documentation! — RPLCD 1.3.0 documentation
This a lot of work for me to follow even i have lack/not too knowledgeable with the program.

Regards,

Then I would suggest to connect with the author of PydPiper, as this is a lot of work for something I won’t use.

Hi wheatens! sorry for long respond.
i tried to run this test it works on my end , when i try to do intruction as per you sent link from rplcd. unfortunately, id install this" If you want to use I²C, you also need smbus:

$ sudo apt-get install python-smbus is successful. however , id try to look for library of python i guess using this command it get me this,volumio@volumio:~$ sudo find /usr/local -name rpi_lcd 2> /dev/null
no showing lib

Not sure why you install a python 2 lib, as the instruction i gave was specific for python3?
And searching for something that does not exist, will not help either.

You should look at:
/home/volumio/.local/lib/python3.7/site-packages/RPLCD

Most likely it will.
After 5-6 weeks of no response, I removed the libraries from my device as I needed it for other tests. Unable to provide additional support.

Hi wheaten! mind me to ask again.
I did successfully install pip3 and other command.
Unfortunately after i execute this " sudo nano home/volumio/.local/lib/python3.7/site-packages/RPLCD"
No showing any text in the library.


euh it’s a folder…
Files are located in folder RPLCD.

hi wheatens! mind me again i did a fresh volumio os 3.757 and sudo update after that i do install these line sudo pip3 install RPLCD it says not found and i run a check of python ver and this it show volumio@volumio:~$ sudo pip3 install RPLCD
sudo: pip3: command not found
volumio@volumio:~$ python --version
Python 2.7.16
i am using rpi3 b+

Thanks,

sudo apt update && sudo apt install -yf build-essential && sudo apt-get install -y python3-pip python3-pil python3-gpiozero

1 Like