![]() |
[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 - 07-12-2021 Hi Lucius You could try connecting your display like the following post http://moodeaudio.org/forum/showthread.php?tid=664&pid=9235#pid9235 (and use 'mpd_oled -r 25 -D 24 ...') Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Lucius - 07-12-2021 Hi adrii, Thank you for your support and I will wait for your new mpd_oled version. If that doesn't help, I'll try a different display connection. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 07-13-2021 Hi Lucius I have set up a repository with the development version of mpd_oled https://github.com/antiprism/mpd_oled_dev I recommend installing from the binary package https://github.com/antiprism/mpd_oled_dev/blob/main/doc/install_moode7_deb.md Your mpd_oled service installation command should be Code: sudo mpd_oled_service_edit -o SSD1306,128X64,SPI,dc=27,reset=24 -b 21 -g 1 -f 15 -c alsa,plughw:Loopback,1 I found that on the Pi Zero the kernal SPI device used some CPU and there was more CPU used by the system and this did not leave enough CPU for a responsive spectrum. However, if you are on a Pi 3 or 4 this should not be an issue. If you have any problems running this version, or would like to provide any feedback regarding the installation instructions, then please open an issue at the mpd_oled_dev repository https://github.com/antiprism/mpd_oled_dev/issues Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Lucius - 07-14-2021 Hi adrii, Thank you for your patience, but I still have the same issue. After fresh copy of Moode 7.3, installed mpd_oled, the display works properly. But after Moode restart stop working with same output: Code: ● mpd_oled.service - MPD OLED Display RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 07-14-2021 Hi Lucius That suggests the problem does not relate to the mpd_oled code for SPI and the OLED driver. I recommend a quick check again that you have 'dtparam=spi=on' in /boot/config.txt, as this version needs it. Perhaps you could post the file here in case it includes anything that suggests a conflict. Perhaps you could also post the output of the following command to see what services might be in conflict Code: systemctl status | cat I don't think it should make a difference, as cava isn't run until audio is playing, but you could try running mpd_oled without the -c option, in order to discount that it is an ALSA issue (this will stop the spectrum from displaying) Code: sudo mpd_oled_service_edit -o -o SSD1306,128X64,SPI,dc=27,reset=24,rotation=2 -b 21 -g 1 -f 15 If you get the same result then you can add the -c option back in, and next try connecting your display like http://moodeaudio.org/forum/showthread.php?tid=664&pid=9235#pid9235 Which is the same (only differing in the choice of power and ground pins) as https://github.com/antiprism/mpd_oled/blob/master/doc/wiring_spi.png Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Lucius - 07-14-2021 Hi adrii, /boot/config.txt : Code: disable_splash=1 systemctl status | cat : Code: ● moode I got the same result without the -c option. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 07-14-2021 Hi Lucius I couldn't spot anything that looked like it might be in conflict in config.txt, or any services that might be involved. In which case, you could try changing the DC and RESET connections. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - TheOldPresbyope - 07-14-2021 (07-14-2021, 11:05 AM)adrii Wrote: Hi Lucius Wish I were in a position to follow along at home on a live player. When I see SEGV and ILL faults I immediately think of the possibility that some routine has clobbered a return address on the stack. The fault is triggered when the return address is eventually popped off the stack and used to (try to) fetch the next instruction. Something like that. Good hunting. Regards, Kent RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Jempie - 08-25-2021 Hi, hope you can help me out, I have a display with the following connection see picture [attachment=2494] GND VCC SCL SDA RES DC CS instead of the wiring of the display you mention in your description How can I use your program to make this work what must I change? Thanks RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-25-2021 Hi Jempie It appears that you have a display that can be configured for both SPI and I2C. SCL is the clock pin, and SDA is the data pin, and these are the usual I2C names, but if your display is configured to use SPI they will correspond to CLK and MOSI https://forum.arduino.cc/t/is-this-i2c-or-spi/506634 Adrian. |