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 - Jempie - 08-25-2021

(08-25-2021, 08:16 AM)adrii Wrote: 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.

Adrian,

thanks for the responce.

So change the display does that help?
i must buy a other one?


Features:
 
Diagonal Screen Size: 2.42"
Resolution: 128 * 64
Driver IC: SSD1309
SPI interface definition:
1.GND (power ground)
2.VCC (power supply positive)
3.SCL (clock line)
4.SDA (data line)
5.RES (reset line)
6.DC (data / command)
7.CS (chip select)
 
Convenience.
 
Interface Selection: to choose SPI or IIC interface through R3, R4, R5
For IIC communication, it is necessary to move the resistor on R4 to R3, and R5 is soldered with 0 ohm resistor.
 
SPI communication or I2C communication can be switched by configuring three resistors R3 R4 R5


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-25-2021

Hi Jempie

Your display should work fine with mpd_oled, with either I2C or SPI, so you could just look at R3, R4, R5 and see if the display is currently configured for I2C or SPI and connect it to the GPIO pins accordingly (the text you posted suggests the display is originally configured for SPI).

Then, when you run mpd_oled, specify -o 3 if the display is configured for I2C, and -o 1 if it is configured for SPI.

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Jempie - 08-26-2021

(08-25-2021, 03:20 PM)adrii Wrote: Hi Jempie

Your display should work fine with mpd_oled, with either I2C or SPI, so you could just look at R3, R4, R5 and see if the display is currently configured for I2C or SPI and connect it to the GPIO pins accordingly (the text you posted suggests the display is originally configured for SPI).

Then, when you run mpd_oled, specify -o 3 if the display is configured for I2C, and -o 1 if it is configured for SPI.

Adrian.

Hi Adrian,

Where must I connect the wires?
CS/DC/RES/SDA/SCL

Thanks, man, sorry I'm totally new


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-26-2021

Hi Jempie

The mpd_oled installation instructions for Moode include a section on SPI with a link to a sketch that shows how the display can be connected.

   https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_deb.md#spi

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Jempie - 08-26-2021

(08-26-2021, 10:38 AM)adrii Wrote: Hi Jempie

The mpd_oled installation instructions for Moode include a section on SPI with a link to a sketch that shows how the display can be connected.

   https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_deb.md#spi

Adrian.

Ok, 
i found GND and VCC

but

SLC to GIO 3
SDA to GIO 2
RES to GIO ?
DC to GIO ?
SC to GIO ?

Thanks


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-26-2021

Hi Jempie

Is your display configured for I2C or SPI?

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Jempie - 08-26-2021

(08-26-2021, 11:14 AM)adrii Wrote: Hi Jempie

Is your display configured for I2C or SPI?

Adrian.

spi


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-26-2021

Hi Jempie

Then go to the SPI section of the mpd_oled installation instructions for Moode and click on "wired like this", and bear in mind that SDA=MOSI and SCL=CLK and these pins should be connected according to the SPI wiring diagram (don't connect them to GPIO 2 and 3).

Adrian.


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Jempie - 08-26-2021

Adrian,

i follow the installation

git clone https://github.com/karlstav/cava
cd cava
./autogen.sh
./configure --disable-input-portaudio --disable-input-sndio --disable-output-ncurses --disable-input-pulse --program-prefix=mpd_oled_
make
sudo make install-strip

ERROR

checking for sqrt in -lm... yes
checking for fftw_execute in -lfftw3... no
configure: error: fftw library is required!
pi@moode:~/cava $ make
make: *** No targets specified and no makefile found. Stop.
pi@moode:~/cava $ sudo make install-strip
make: *** No rule to make target 'install-strip'. Stop.
pi@moode:~/cava $


RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 08-26-2021

Hi Jempie

Did you run the commands to install the dependencies?

   https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_source.md#install-all-dependencies

Adrian.