Closed gitmuir closed 3 years ago
Yes, the WEH001602A does use the ws0010 controller and for pydPiper you should be using the winstar_weg driver. The ws0010 controllers support hd44780 style commands but requires a different initialization sequence.
Your wiring appears correct and does match your configuration file.
I suspect your display has been damaged based on its behavior but it would be good to eliminate pydPiper as a potential source of the problem.
Try getting a small test program working. Here's a quick option for that.
Install luma.oled Log into your Moode device and then enter the following command.
sudo -H pip3 install --upgrade luma.oled
Assuming luma.oled installs successfully we can try a short test program.
Start python3
pi@moode:~ $ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Then enter the following statements
from luma.oled.device import ws0010
from luma.core.interface.parallel import bitbang_6800
bb = bitbang_6800(RS=7, E=8, PINS=[25,24,23,27])
weh = ws0010(bb)
weh.text = 'Is it working?'
This should display 'Is it working?' on the top line of your display. If that works, we can go back to debugging your pydPiper installation. If it doesn't, let me know what behavior you see and we can try something else.
Many thanks @dhrone, I've tried the above on the existing Moode installation (with pydPiper running) and nothing appeared on screen.
I then tried again on a clean Moode install and when weh = ws0010(bb)
is entered I see 2 forward slashes far right of screen
/ /
...then when weh.text = 'Is it working?'
is entered, I see a flashing cursor icon! (no text)
_
🤪Weird. I guess I may need to invest in a new screen?!
You should not have pydPiper running during the test. I'd recommend disabling it first, then start from a freshly powered on system.
FYI, when the weh = ws0010(bb)
command finishes, the screen should be blank.
Yes when repeated on the clean Moode install the result was the same; I've ordered a new screen and will report back once I'm able to test.
Many thanks for your help.
Good luck. I'm going to close this for now. Feel free to reopen as needed.
It works! Thank you so much for the troubleshooting assistance @dhrone; a faulty OLED all along.
Do you have any tips to clean up the underline / underscore that appears under everything here? Only appears on a track listing screen, eg. not the clock or stop / play.
Thanks again.
I assume that you are using pages_weh_80x16.py as your page file (or pages_weg_100x16). That underline is a one pixel high song progress bar. It probably shouldn't be used when playing a webradio source. If you're comfortable making the edit, feel free. Otherwise, let me know what file you are using and I'll provide an update.
Sorry for the long delay in my response @dhrone, in pages_weh_80x16.py -- would I simply remove ('songprogress',0,15)
from the CANVASES section on the lines for playartist_radio, playalbum_radio and playtitle_radio?
Yes, you are correct. I don't have the time to test if I made the edit correctly, but here is a file that has the suggested edit. pages_weh_80x16.py.txt
You'll have to remove the txt extension if you are just copying the file over to your system.
Yes, you are correct. I don't have the time to test if I made the edit correctly, but here is a file that has the suggested edit. pages_weh_80x16.py.txt
You'll have to remove the txt extension if you are just copying the file over to your system.
Worked a treat, thanks again!
Hi @dhrone, I've been following your Moode installation instructions which remy1961 posted to the Moode Audio forums.
I am making use of a Winstar WEH001602A OLED display in my Audiophonics "RaspDAC" (ES9038Q2M / Pi3B+) project, curiously the Audiophonics product listing (here) states this is a HD44780 display, however the spec sheet (here) says that it is infact WS0010.
After a bit of confusion with the GPIO numbering (whoops), I'm confident I've got it wired correctly (as per this) and used your Moode process to install with the following pydPiper.cfg
This has resulted in the display illuminating, but I'm seeing some odd characters and 'static' noise on screen.
At this stage I am starting to think...
My earlier mistake at wiring has sent 5V to a place it shouldn't have gone...and fried something!
✓ I have changed the pages_weh_80x16.py file from db['stream'] to db['encoding'].
Very grateful for your thoughts, I think I'm close - but I would definitely benefit from your advice.
Thank you for continuing to develop this excellent project.