Moode Forum
[How to do instruction] 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9)
+--- Thread: [How to do instruction] 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi (/showthread.php?tid=155)



RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 10-14-2019

Hi

There were OS changes in Moode 6 that required an extra library to be specified when building mpd_oled. This library is not usually installed on earlier versions of Moode, and so there is an error when building on earlier versions with the Moode 6 instructions. I included some instructions for Moode 5, to build with a plain 
Code:
make

(rather than 'PLAYER=MOODE make'). This should also work with Moode 4, and if building with a plain 'make' works for you I will update the instructions to say to do this if building on Moode 5 or 4.

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - rndce - 10-14-2019

(10-14-2019, 10:21 AM)adrii Wrote: Hi

There were OS changes in Moode 6 that required an extra library to be specified when building mpd_oled. This library is not usually installed on earlier versions of Moode, and so there is an error when building on earlier versions with the Moode 6 instructions. I included some instructions for Moode 5, to build with a plain 
Code:
make

(rather than 'PLAYER=MOODE make'). This should also work with Moode 4, and if building with a plain 'make' works for you I will update the instructions to say to do this if building on Moode 5 or 4.

Adrian.
When use "make" it's made a mpd_oled file in folder mpd_oled.
And then, i used this code

Code:
sudo ./mpd_oled -o 6 -b 10 -g 1 -f 20
the oled screen turn up, but the spectrum bars doesn't work . 
How can i fix it. I followed this instruction, but no thing change (the spectrum bars still doesn't work ) https://github.com/antiprism/mpd_oled/issues/22
Thanks for your help.



RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 10-14-2019

Hi

Thanks for your feedback.

Sorry, I forgot that Moode 5 introduced changes to the system files that mpd_oled includes a patch for to set up the audio copy for the spectrum analyser. This means that the current Moode patch doesn't work with Moode 4.

My suggestion is to undo the patch, in case it made any changes, and install a version of mpd_oled from the time when Moode 4 was current.

First, rerun the patch command. If it previously succeeded it should give you an option to reverse the patch, say yes to this, otherwise it will simply fail again and nothing needs to be done. From the mpd_oled source directory run
Code:
sudo patch -d/ -p0 -N < moode_mpd_fifo.patch


Now, remove the build files
Code:
make clean


Checkout a version of mpd_oled from when Moode 4 was current
Code:
git checkout -b moode4 a8cd6b1b82cd7265f8dd40d41b8b73898f6495b3

View and follow the Moode install directions from that time
Code:
less INSTALL_MOODE.md

I'll update the Moode install instructions to say that they only work with Moode 6 and 5.

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - JohnnyBravo - 10-14-2019

(10-14-2019, 09:12 AM)rndce Wrote: I used MoOde 4.3......

Perhaps a silly question, but why would you not use the latest Moode release?


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - rndce - 10-15-2019

I reinstall MoOde 6.3.0, and follow instructions for Moode (https://github.com/antiprism/mpd_oled/blob/master/INSTALL_MOODE.md), everything works fine.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 10-15-2019

I am pleased everything is working!


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - mateoJazz - 10-30-2019

Hello
I like this display:
https://www.winstar.com.tw/products/oled-module/graphic-oled-display/wef012864q.html
Will it work ?


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 10-30-2019

Hi

I can't say for sure, but the SSD1309 works with mpd_oled, and the following message (from the U8G2 author) suffests that the SSD1309ZC should therefore also work: https://forum.arduino.cc/index.php?topic=633216.0

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - mateoJazz - 11-13-2019

Hi Adrian

I bought this display. But didnt check properly the datasheet. It has 30 pin ribbon. I'm in black ass now Smile


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 11-14-2019

Hi mateoJazz

I don't think the ribbon connector should be a problem. If you look at the link you posted for the display there is an "interface pin function" table near the bottom, which says how to specify an i2c connection and which pins should be connected to what when using i2c.

Adrian.