Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
#61
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-v...11658.html
   https://www.audiophonics.fr/21741-thickb...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-1...2749.l2649

Adrian.
Reply
#62
Thumbs Up 
hello Adrian,

I should watch in the future before I buy something first here in the forum .. Smile Smile
have now ordered from you specified link ......

Thank you for your support ....
Reply
#63
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/
sudo patch -d/ -p0 -N < moode_mpd_fifo.patch
and reboot...:-)
----------
bob
Reply
#64
Hi Bob

Thanks for the report. I have added a note to the installation instructions for Moode.

Adrian.
Reply
#65
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 Smile

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.
----------
bob
Reply
#66
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)
{
 if (disp_info.status.get_state() == MPD_STATE_UNKNOWN ||
     disp_info.status.get_state() == MPD_STATE_STOP)
   draw_clock(display, disp_info);
 else
   draw_spect_display(display, disp_info);
}

Change this to

Code:
void draw_display(ArduiPi_OLED &display, const display_info &disp_info)
{
 draw_clock(display, 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
cat 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)
{
 draw_spect_display(display, 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.
Reply
#67
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 Cool 
I have the clock and ip display working and updates time as expected.
Only change was to your instruction..
Code:
sudo bash install.sh
changed to

Code:
sudo bash install_clock.sh


Next I will add the original display and see if both work independently...
----------
bob
Reply
#68
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.
----------
bob
Reply
#69
Hi Bob

Well done for getting it all working!

Adrian.

P.S. I have edited my post to correct thje install command.
Reply
#70
Wink 
(09-23-2018, 05:34 PM)remy1961 Wrote: pydPiper for the 128x64 oled and raspdac script for the 16x2 oled.


[Image: 14b3uok.jpg]
Remy

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 )
Reply


Forum Jump: