OLED spectrum display on Volumio on Raspberry Pi Zero W

Hi Adrian,
It is working, I have tried qobuz and radio paradise.
Have a nice evening :slight_smile:

I have just made a change to mpd_oled that should help with the issue of the spectrum display lagging behind the audio, and may also fix an issue I sometimes see where the spectrum is shift-rotated so the bass bars are in the centre.

If you don’t have these issues there is no need to update. If you do have these issues then I recommend trying the new version.


1 Like

I am having some troubles with the oled display 1.3 and 0.96. The oled is detected but nothing is displayed. What could be the reason?. When I run the mpd oled nothing is shown on the screen.
I have double check the connections and is ok.

Hi Florin

What is different (hardware, software, plugins, settings, etc) from your system where mpd_oled works?


I just put the pi4 and oled in a case. The screen from bottom of 1.3 inch oled is a little bit cracked ( the oled part is not touched.) but I have tried also with a new 0.96 display and same thing. Sw is 2.853, it was working until I have mount all in a case.

Hi Florin

If you connected everything and it was working, and then you put it in a case and it was not working, it sounds like a hardware problem. If you have a crack in the 1.3" OLED it may not work. If the 0.96" is not working make sure you are using the the correct setting for ‘mpd_oled -o’


The 0.96 display is working with mod oled o 3
I have cracked the corner when put the screw. I will buy another one.
Many thanks Adrian

Hi Adrii,

have you ever think to port this library for other systems besides RPi?

I have other SBCs running Armbian-based Volumio thet will be a great match with mpd_oled

Hi Darmur

mpd_oled uses the bcm2835 C library, which ties it to the Raspberry Pi. I looked at creating a package of U8g2 for the Raspberry Pi to use with mpd_oled, and this contains linux calls to deal with the GPIO, which might be all that is required for portability with other boards running Linux

GitHub - antiprism/libu8g2arm_test: Package of U8g2 for Raspberry Pi

I have not had any opportunities in recent months to look at mpd_oled, but in the event that changes, the next step in development is to make a test version identical to the current version but using this library. I wasn’t going to share this test version, but if I can provide some build instruction I’ll put it in repository and let you know about it.


1 Like

great, many thanks!

Hello, I need some help with the Bassfly uhat OLED, I have reinstalled/clean installed about 5 times and I cannot get the display to work. I followed some of the instruction/suggestions here in this TOPIC but no success in getting any output to the panel. I start to think that the OLED is defect but how to test? I bout the bassfly from Volumio which asked 5 days ago for help but without success.
I am on the latest Version Volumio running on a Rasp 3b, cava seems to work, mpd_oled detects the panel at 3C, the command
volumio@blue:~/mpd_oled$ ps ax | grep “cava|mpd_oled” returns
5659 pts/0 S+ 0:00 grep cava|mpd_oled
sudo ./mpd_oled -o3 - 4 or 6 just sits without doing squat .
I have traced all connections and they seem to be OK

I am a bit stumped and not far from throwing this board in the trash as I cannot see that sending it back to Volumio will get any other response as the one when asking for help. Anyhow any help or suggestion would gratefully received.

Thanks Thomas

Hi Th0mas,

I am very sorry for your troubles, I can help to make your BassFly-uHAT working. I am sure the boards are fine, I personally tested all of them from the first batch produced.

I prepared an automated script that will install and configure all the required software packages and scripts for you, please start with a clean Volumio image.

You can find such a script here

I will add more tutorials in the coming days, for making use of the LEDs and the push-buttons.

Please let me know if you solved your issue, I hope you can enjoy your BassFly-uHAT soon!

By the way, I think your problem can be the missing i2c address on the mpd_oled command.

This command will work if you have mpd_oled already built

sudo ./mpd_oled -o 3 -a 3c -b 10 -g 1 -f 25 -P s


I tried with direct addressing, no luck - I will wipe the Rasp tomorrow one final time and try the new link you and Volumio send today. I have no idea why the oled does no come on, voltage is ok, PSU is powerful enough, all processes are running and working. I checked over and over, follow each step of the instruction now 6 times. Either I make same mistake over and over or something else is fishy …
I will be in touch tomorrow, anyhow thanks for your response and help. Ta very much Thomas

1 Like

Hi Thomas

When you are testing tomorrow. Could you say exactly what happens when you run

./mpd_oled -o3

Do you have to hit CTRL-C to get the command prompt back?

If this is the case then run the command again, and don’t press CTRL-C, and log into Volumio a second time while mpd_oled is running and run


And see if mpd_oled and cava are running and using some CPU, and using more when you are playing music.


Hello Darmur,
well I am amazed, clean install - your script and all is working without and issue.
I have no idea what I could have possibly done wrong, I followed the instruction over and over and did not get the OLED to do a thing. My pride is hurt now, I think I might have to go back and see where and what mistake I have been making otherwise I will not sleep tonight.
The supplied scribe works like charm …
Thank you very much for your help, if I had know this last week I could have saved myself a lot of time and agro. It might help to point people who buy the board direct to the support forum with all the instructions/script rather then just sending out a board and invoice. Plenty of space on the invoice to provide that information, it would help with customer satisfaction …
Darmur, thank your for your help much appreciated.

Cheers Thomas

1 Like

Hi Th0mas,

I am very glad that your problem is solved now, I hope you will enjoy the BassOwl-uHAT as I do every day.

You are 100% right, the lack of documentation and support script was something to have fixed before putting the board on sale, I apologize for that.

You request of support made me working on the script and tutorial page, I’d like to thank you for that.
It was something I had in the “to-do” list for long time, I also had some material prepared already, but never found the time to finalize the first draft and release it.

BassOwl-uHAT is a project born and living within the Volumio community, feedbacks like yours are very helpful to make things right. In the coming days I will add more tutorials to make use of the other parts (LEDs and push-buttons), you should be able to finalize the complete setup with all the intended functionalities.

It would be nice if you could post some pictures of your setup, and post some impressions about the design, besides those troubles given by the lack of documentation.

Hello Adrian,
I came across a strange issue.
During web radio playback after a song is finished and a new one is started on display I see the watch. The spectrum is shown after a few seconds even if the music is played. I did not see this before. Volumio version 2.853

Hi Florin

Thanks for reporting this. The following command should print the Volumio status (I don’t have a copy of Volumio running at the moment)

curl http://localhost:3000/api/v1/getstate

The first field is the “staus”, and should say “play” while music is playing. If you run the command repeately when a song finishes then perhaps you will be able to see what Volumio is reporting as the “status” when mpd_oled is showing the stop screen.


Hello Adrian,
I will try and let you know. Sounds like volumio mpd does not pass correct the status.