[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) |
128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-04-2018 The mpd_oled program displays song status and an audio spectrum analyser on an I2C 128x64 OLED display connected to a Raspberry Pi (or similar) running an MPD-based player. https://github.com/antiprism/mpd_oled There are specific installation instructions for Moode. Demonstration video: https://youtu.be/6pgxGQIAX9s Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - flipflip - 05-19-2018 Good, but howto connect display on rpi ? RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - rikardo1979 - 05-19-2018 (05-19-2018, 09:56 AM)flipflip Wrote: Good, but howto connect display on rpi ? Depends on the type of display you want to use. But usually over GPIO Here is example RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - flipflip - 05-19-2018 (05-19-2018, 10:05 AM)rikardo1979 Wrote:(05-19-2018, 09:56 AM)flipflip Wrote: Good, but howto connect display on rpi ? I thought to use this screen https://www.audiophonics.fr/fr/ecrans-afficheurs-vu-metres/ecran-oled-242-128x64-ssd-1305-blanc-interface-i2cspi-p-11658.html connected on a rpi 1 or 2 RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-19-2018 Hi The mpd_oled installation instructions for Moode are here https://github.com/antiprism/mpd_oled/blob/master/INSTALL_MOODE.md If you don't need such a big screen, a 1.3" screen can be bought very cheaply. I use this one https://www.ebay.es/itm/1-3-White-OLED-LCD-4PIN-Display-Module-IIC-I2C-Interface-128x64-for-Arduino/401395109681 I wire it like this If you are using a PI 1 or 2 it looks like the connections are the same, but you could check that. In the image below it looks like the I2C bus will be zero, rather than 1 like it is with the Pi Zero. mpd_oled should check buses 0 and 1, but this is untested. If you are using the screen in your link, for mpd_oled you should connect it as I2C (not SPI). VCC is 3.3V, D0 is SCL, D1 is SDA. You may or may not need to connect the reset RST, if you do need to, indicate the GPIO you are using with "mpd_oled -r NN". The I2C address is 3D, and this needs to be passed with "mpd_oled -a 3d". The screen says it is compatible with SH1106, and so specify "mpd_oled -o 6". Please be aware though, while it seems from the specifications like the screen in your link should work with mpd_oled, I don't have enough experience or feedback to say with any certainty that it will work (I really don't know). Also, I have no feedback about mpd_oled running on a Pi 1 or 2. However, if you choose to buy this screen, or any other, and are having trouble getting it working then I will be happy to help. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - pelukessss - 05-21-2018 (05-19-2018, 01:42 PM)adrii Wrote: Hi RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-21-2018 Hi The mpd_oled_fifo.conf contents need to appear in mpd.conf for the spectrum analyser to work. I have reviewed the installation instructions and I can see that the commands that set this up are missing the 'sudo', and so probably failed to run correctly. I will update the installation instructions. If you change to the mpd_oled source directory and run Code: sudo cp mpd_oled_fifo.conf /usr/local/etc/ Thanks for letting me know about this, and please let me know if the display is now running correctly. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - DRONE7 - 05-21-2018 Adrian, this looks great ! I've been using 16 x2 and 20 x4 LCDs but find them a bit unwieldy for fitting to some projects and the display could be better from them..so this setup is just what I've been looking for. I have ordered a couple and look forward to setting them up using your very well documented method..Thanks ! RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - pelukessss - 05-22-2018 (05-21-2018, 05:52 PM)adrii Wrote: Hi Hi Adrian, thank you for your prompt reply. I already executed the commands as super user (I noticed the "permission denied" error) at the first time... If I re-execute the patch command it says something like "already patched", is there a way to "remove" the patch and reapply it? I also tried to manual copy the content of mpd_oled_fifo.conf into mpd.conf and it doesn't work. Thank you in advance RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-22-2018 Hi If the patch program reports that the patch is already applied then that should mean that the changes were applied correctly. There seem to be two factors in getting mpd.conf regenerated with the FIFO included: the Moode software appears to be cached, and so patches won't necessarily be seen straight away; the software has to receive a trigger to regenerate /etc/mpd.conf. I have just checked the time stamp on my /etc/mpd.conf, and I can see that it has not been regenerated by a machine restart Code: pi@moode:~ $ ls -l /etc/mpd.conf In which case, in the Moode UI go to "Moode" / "Configure" / MPD, and click the first "APPLY" button on that page. This appears to trigger the regeneration of /etc/mpd.conf Code: pi@moode:~ $ ls -l /etc/mpd.conf If this works out, I will amend the installation instructions to carry out this action after the machine restart (which appears to clear the cache of the unpatched Moode software). Thanks for the feedback! Adrian. |