OLED spectrum display on Volumio on Raspberry Pi Zero W

Hi mrhung751

The main.cpp file is in the src/ directory

mpd_oled/main.cpp at master · antiprism/mpd_oled · GitHub

Adrian.

Someone have the code to make simple as pics?
i found it very smooth and clean.
thanks

I have updated the mpd_oled installation instructions for Volumio 3, and no longer provide installation instructions for Volumio 2

GitHub - antiprism/mpd_oled: MPD, Volumio, RuneAudio and Moode OLED status and spectrum display for Raspberry Pi (and similar)

Adrian.

1 Like

The mpd_oled binary package from 11 August 2022, and source builds from an unknown time between April and then, may have had issues for some people. The spectrum bars may have been very low for several minutes on startup, and the spectrum area may have flashed frequently and irregularly (average one time per second).

These issues have now been fixed, and I made a new binary package yesterday. There are no new features, and so there is no reason to upgrade except on systems affected by these issues.

Adrian.

First I would like to thank you very much for great plugin and your work.
I am using Volumio 3 + 2.42" screen SSD1309 via I2C. I have little problem and I can’t solve it, when I set Oled type 6, I have distortion some lines randomly, when I set Oled type 3, my screen is scrolling to up position like on this photo. Do you have idea how to solve this problem ?

If I recall correctly, you might want to experiment with the line in the userconfig.txt.
Lower or rasing the value

dtparam=i2c_arm_baudrate
1 Like

I had this problem once. Poor connections were to blame.

1 Like

Thank you, I will try to solder everything again.

yep, that might cause the blinking. Had that once with a poor 5VDC connection.

Hi Chris

The correct setting for your display is OLED type 3.

The scrolling issue has previously been reported, and I included a fix to mpd_oled for it last year. The issue thread is Display flicker and frame size issue · Issue #3 · antiprism/mpd_oled · GitHub

Have you downloaded and installed mpd_oled using the mpd_oled repository? GitHub - antiprism/mpd_oled: MPD, Volumio, RuneAudio and Moode OLED status and spectrum display for Raspberry Pi (and similar)

Do you ever see the display scroll offset resetting (so that the display image jumps to the correct position)?

Adrian.

Thank you for answer, I installed everything from the newest manual from this link „Install mpd_oled from source on Volumio 3”
I found this issue with scrolling and checked source files and I think that I have the newest version with this fix.
I observed also that if I will change dtparam=i2c_arm_baudrate= to higher baudrate for example 800000, then scrolling is faster.
I have such oled screen
517r2GBuIrL.AC_UL232_SR232,232

I connected it to 3.3V, maybe 5V will be better idea ?

The underlying problem seems to be corrupted instructions reaching the display, which is made worse by things like poor connections, longer wires and a faster bus. I don’t know if the display voltage plays a role. The screen offset should be resetting all the time, so if you aren’t seeing this then it might be worth reviewing the connections between the display and the Pi, e.g. you could try a new set of 10cm wires, inspect any soldering, etc.

1 Like

I believe the oled is targeted for 5V. Lower voltage it will draw it for somewhere else, hence the flickering.

As an aside…. I did have a display working once with 5m leads.

1 Like

I soldered all the connections again and shortened the cables, unfortunately the same problem exist. Maybe the display is damaged, I will order one more and check it.
Video with screen problem

From the video, the display offset doesn’t seen to be resetting correctly.

What happens if the spectrum screen has scrolled, and then you stop the music? Is the clock screen also scrolled, or is it reset to display correctly?

I just checked, when the song ends I see screen like this:

and turning the plugin off and on again corrects things?

after reboot everything is ok but after few minutes screen with clock and IP address starts scrolling.

Thanks for checking this. It seems like the display offset reset just isn’t happening.

I’ll have a look tomorrow and see if I can confirm the reset is still working on an SSD1306 I2C display.

1 Like