[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 - 12-02-2018 Hi Cardone Have you selected I2C for your screen? For the following display it looks like it is configured for SPI by default https://www.audiophonics.fr/en/screens-vu-meters/white-oled-242-screen-128x64-ssd-1305-interface-i2cspi-p-11658.html https://www.audiophonics.fr/21741-thickbox_default/white-oled-242-screen-128x64-ssd-1305-interface-i2cspi.jpg The other thing is that the chip is SSD1305. The driver code I use for mpd_oled supports SSD1306 (mpd_oled -o3) and SH1106 (mpd_oled -o6). It may be that none of the mpd_oled -o options are compatible with SSD1305. I looked at the link for the 2.42" display that caca047 is using with mpd_oled, and it has an SSD1306 chip https://www.ebay.com/itm/I2C-2-42-OLED-128x64-Graphic-OLED-White-Display-Arduino-PIC-Multi-wii/191835417966?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649 Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Cardone - 12-03-2018 hello Adrian, I should watch in the future before I buy something first here in the forum .. have now ordered from you specified link ...... Thank you for your support .... RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - DRONE7 - 12-20-2018 All these MoOde version updates result in the Spectrum Display not functioning... Easy fix.... Code: cd mpd_oled Then...rerun... Code: sudo cp mpd_oled_fifo.conf /usr/local/etc/ RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-13-2019 Hi Bob Thanks for the report. I have added a note to the installation instructions for Moode. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - DRONE7 - 01-28-2019 Hi Adrian, I have a question re disabling the display update..... I now have a Moode project where I can mount 2 screens.... One will be the standard MoOde configuration of your oled code The other I wish to have remain static at the non-player state whilst MoOde is playing. i.e...the initial 'splash screen' for the oled shows a large 'time value' and the ip address. I would like that to remain and not change to the song title info etc but simply update the time.....is that possible..? Thanks, Bob. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-28-2019 Hi Bob You will need to modify the code. Grab a separate copy of mpd_oled. The screen selection code is in main.cc Code: void draw_display(ArduiPi_OLED &display, const display_info &disp_info) Change this to Code: void draw_display(ArduiPi_OLED &display, const display_info &disp_info) After building, change the name of the executable mpd_oled to mpd_oled_clock. Rename mpd_oled.service to mpd_oled_clock.service and edit it to call mpd_oled_clock (you may need to create a dummy fifo for the audio input, e.g. mkfifo /tmp/dummy) . Now make an install_clock.sh script for mpd_oled_clock Code: sed 's/mpd_oled/mpd_oled_clock/g' install.sh > install_clock.sh Review the install_clock.sh contents, printed by the second command above, then install with Code: sudo bash install_clock.sh For your other display, you may be able to amend the draw display funcion to look like Code: void draw_display(ArduiPi_OLED &display, const display_info &disp_info) This would hopefully now show an emply spectrum display when stopped, which might be preferable to having two clocks. This is all untested! (Sorry, I am short of time). The approach seems reasonable, but there may be issues or some extra steps needed. Good luck! Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - DRONE7 - 01-28-2019 Wow..!! thanks for the super fast reply and instructions.... About to retire for the day so plan on trying this tomorrow morning and will report my progress. EDIT.... Morning and works without errors ! You're the magician Adrian I have the clock and ip display working and updates time as expected. Only change was to your instruction.. Code: sudo bash install.sh Code: sudo bash install_clock.sh Next I will add the original display and see if both work independently... RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - DRONE7 - 01-28-2019 Perfect ! Does exactly what I had hoped. I simply paralleled the display connections, re-soldered the resistor on one display to change the address, followed Adrian's instructions and it works fine. (Dummy fifo not needed) Once I have the case back together I'll post some images. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 01-29-2019 Hi Bob Well done for getting it all working! Adrian. P.S. I have edited my post to correct thje install command. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - angelo.rossi76 - 02-11-2019 (09-23-2018, 05:34 PM)remy1961 Wrote: pydPiper for the 128x64 oled and raspdac script for the 16x2 oled. Hi Remy, where can I find a procedure to enable Display like in this picture? I don't care about specrtum analyzer and I've been able to display what I want but... I loose everything every tyme I reload or reboot the system... please help me! thanks Angelo ( Rome - IT ) |