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 - 12-19-2021

Hi MRamone

I don't believe there will be any particular issues running mpd_oled on a Pi Zero 2, but check your display is copatible with mpd_oled

   https://github.com/antiprism/mpd_oled#moode-volumio-runeaudio-and-mpd-oled-spectrum-display-for-raspberry-pi

These are the install istructions

   https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_deb.md

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - MRamone - 12-19-2021

genial, gracias!


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - lhkp0480 - 01-07-2022

(12-19-2021, 07:52 PM)adrii Wrote: I follow the github instruction

https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_deb.md
Moode 7.6.1
My OLED info: 0.96" , SSD1306, I2C , 128x64 with the code below. 

Code:
sudo mpd_oled_service_edit -o 3 -a 3c -b 21 -g 1 -f 20 -c alsa,plughw:Loopback,1
The OLED are work but still show issue as my clip. Does anyone can guide me fix this issue?
[video=youtube]https://youtu.be/gApHfLiUftU[/video]


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-07-2022

Hi lhkp0480

First try restarting the machine and see if mpd_oled runs correctly (the mpd_oled test command may still be running).

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - lhkp0480 - 01-07-2022

(01-07-2022, 12:38 PM)adrii Wrote: Hi lhkp0480

First try restarting the machine and see if mpd_oled runs correctly (the mpd_oled test command may still be running).

Adrian.

I'd tried restarting few time and still issue.
I stop mpd-oled service then display stop the spectrum and the rest info are appearance correctly.
Code:
sudo systemctl stop mpd_oled

[Image: bD4TYwJgAjsrQRqBA]

After that starting mpd-oled service ->the problem happen again.
Code:
sudo systemctl start mpd_oled

It seems that doesn't have enough space to display all information and oled must display 2 pages sequentially


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-07-2022

Hi lhkp0480

In that case, the issue may be

   https://github.com/antiprism/mpd_oled/issues/3

If the scroll is being triggered often then the reset won't stabilise the image.

You could review whether all your connections are good, try using shorter wires (e.g. 10 cm) and try running the I2C bus slower (dtparam=i2c_arm_baudrate=200000) to see if this helps.

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - MRamone - 01-12-2022

Hi, today I received my display and installed it successfully in 10 minutes following your instructions, it works great! thank you very much!!
However the spectrum analyzer seems to be volume dependent.... That is, at low volume the bars barely go up and at max volume they are always on top.
Is this as it is intended? Is there a way to make it volume independent?
Thanks!!


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-13-2022

Hi MRamone

Great that the install went well!

The spectrum is calculated by the cava program, and the bar height is automatically adapted to audio levels using the cava autosens option

   https://github.com/karlstav/cava/blob/master/example_files/config

Cava determines an optimal bar height quickly when audio first starts, and then adapts slowly to audio level changes after that.

The audio levels of the copy of the audio that is passed to cava to calculate the spectrum depend on where, during the audio processing by Moode, the copy is made by Moode. They probably also depend on the audio source (MPD, spotify, etc).

On my system the volume control does not change the bar height, but it sounds like on your system the volume change occurs before the audio copy is made, which affects the bar height in the short term. However, the bar height should adapt over a few minutes to the audio level change to a more appropriate display.

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - lhkp0480 - 01-13-2022

(01-07-2022, 02:11 PM)adrii Wrote: Hi lhkp0480

In that case, the issue may be

   https://github.com/antiprism/mpd_oled/issues/3

If the scroll is being triggered often then the reset won't stabilise the image.

You could review whether all your connections are good, try using shorter wires (e.g. 10 cm) and try running the I2C bus slower (dtparam=i2c_arm_baudrate=200000) to see if this helps.

Adrian.

I've try with shorter (20cm->10cm) jumper wire and re-install from step 1 then it work. Many thank for guiding and don't know why the wire length contribute too much.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-13-2022

Hi lhkp0480

I am pleased the shorter wires worked for you. Thanks for letting me know!

Adrian.