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 - kuyadreiph - 05-11-2025

(05-10-2025, 01:04 PM)adrii Wrote: Hi drei

The order of options doesn't matter. You could add it at the end

Code:
sudo mpd_oled_service_edit -o 3 -b 21 -g 1 -f 20 -c alsa,plughw:Loopback,1 -R

Adrian.

Good day adrian! mind me to ask what command should i use to operate this single button for many function such as eg: i am using rotary encoder ky-040 the middle/switch button that i want to use for
single short press  = play/pause
double press = next
long press like (3sec) = safeshutdown/sudo,poweroff


regards,


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

Hi drei

Sorry, I don't know.

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - kuyadreiph - 05-11-2025

(05-11-2025, 10:10 AM)adrii Wrote: Hi drei

Sorry, I don't know.

Adrian.

Hello adrian! It's okay I'm manage to work it now. Long press shutdown and shortpress for next. 
I made a small circuits that avoid interference on each pin. Anyways,thank you for helping me.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - kuyadreiph - 05-11-2025

(05-10-2025, 09:21 PM)fdealexa Wrote: Hi drei,
I am happy that you have solved the issue.
Best regards,
Francesco

Thank you for helping me also...


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - kuyadreiph - 05-29-2025

Hi everyone! Mind me to know if there's anyone here have tried to use pcm5122 Dacpix920 from https://wiki.geekworm.com/X920
Running with raspberry pi 3b+ and oled display 0.96inch.
I'm a bit frustrated with to work with this. Every time i reboot the system. The i2s driver like st400 or iQaudio dac driver are losing after a reboot/restart.

It seems that dacpi has also controlled by i2c and there's having interference with i2c signal, as you can see here on i2cdetect.
$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: b1 [bcm2835 HDMI 1], device 1: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
And after i took i2c wire of oled display and do execute again.

sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: b1 [bcm2835 HDMI 1], device 1: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 2: IQaudIODAC [IQaudIODAC], device 0: IQaudIO DAC HiFi pcm512x-hifi-0 [IQaudIO DAC HiFi pcm512x-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - fdealexa - 05-29-2025

What is your /boot/firmware/config.txt ?


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - kuyadreiph - 05-30-2025

(05-29-2025, 04:35 PM)fdealexa Wrote: What is your /boot/firmware/config.txt ?

Hi fdealexa! Here's the output of configtxt.
sudo nano /boot/firmware/config.txt
  GNU nano 7.2 /boot/firmware/config.txt
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=on

# Do not alter this section
# Integrated adapters
#dtoverlay=disable-bt
#dtoverlay=disable-wifi
# Audio overlays
dtoverlay=iqaudio-dacplus
#dtoverlay=force_eeprom_read=0
# PCI Express
#dtparam=pciex1
#dtparam=pciex1_gen=3
# Pi Touch1
#dtoverlay=vc4-kms-dsi-7inch,invx,invy
# Fan speed
#dtparam=fan_temp0=50000,fan_temp0_hyst=5000,fan_temp0_speed=75
dtparam=i2c_arm_baudrate=800000


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - kuyadreiph - 05-30-2025

(05-29-2025, 04:35 PM)fdealexa Wrote: What is your /boot/firmware/config.txt ?

Also, here are the output device after restart the system. 
The output is supposed to be suptronics x400 then it will doing fine. 
Unfortunately , only oled is showing good sign after the restart not the dac hat. But, if i remove the oled from pi the output device is showing again.
It seems the result in alsa also changed.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - fdealexa - 05-30-2025

Please try to lower the dtparam=i2c_arm_baudrate=800000 at 400000 and let us know.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - kuyadreiph - 05-30-2025

(05-30-2025, 02:30 PM)fdealexa Wrote: Please try to lower the dtparam=i2c_arm_baudrate=800000 at 400000 and let us know.

It is working fine now so far. after i comment out the all hdmi related so it won't bother to show up in the output device.