Coder Social home page Coder Social logo

Comments (7)

antiprism avatar antiprism commented on June 22, 2024

Hi Vijay

Thanks for reporting the issue.

I am not immediately sure what the problem is, but I wonder if it relates to the transmission of the data not being good enough at the speed the i2c bus is being run, and this leading to screen corruption.

It looks like you are running with the same set-up as me (I have an RPI Zero W with a 4 pin i2c SH1106 OLED) and I was able to run with the bus speed set to 1200000, with the OLED connected by 15cm cables (although I currently use 10cm cables). My OLED screen can be connected to 3.3V or 5V, and I have it connected to 5V.

If you are using 20cm cables, you could try using shorter cables. If you are running the i2c bus faster than 400000, you could try running it at 400000 (dtparam=i2c_arm_baudrate=400000 in /boot/config.txt, and run mpd_oled with '-f 15'). If you are using 3.3V, and your screen supports 5V, try using that.

Adrian.

from mpd_oled.

vjkolaventy avatar vjkolaventy commented on June 22, 2024

Dear Adrian

I have been trying various settings and recently I have tried using your code with RPI 3. I do not have the issued of flicker with RPI 3 and I get clean display initially. But as the music is played, the frame slowly moves upwards. I am using the following command

mpd_oled -o 3 -a 3c -b 10 -g 1 -f 25

Please see attached video and help me.

video.zip

Regards
Vijay

from mpd_oled.

vjkolaventy avatar vjkolaventy commented on June 22, 2024

Dear Adrian

Just to update you that your code is working fine with Moode. This problem is only with Volumio.

Regards
Vijay

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

Hi Vijay

My understanding is that the SSD1306 OLED display you are using has a hardware scrolling function, and this wraps the display. What you are seeing looks like this kind of scrolling, as the mpd_oled program writes to absolute coordinate locations and these have been vertically shifted on the screen and wrapped.

The code I use to access the OLED includes scrolling functions, but I don't call any of them.

You may be seeing the same problem as here,

https://forums.adafruit.com/viewtopic.php?f=47&t=60867

but with the difference that because mpd_oled is not using scrolling the scroll offset is never reset.

The scroll may be an occasional error from running your particular hardware setup too fast (you are using mpd_oled -f 25 and your wires look at least 15cm long). Kernel differences between Volumio and Moode may also be a factor. Do you still see the scroll in Volumio with dtparam=i2c_arm_baudrate=400000 and mpd_oled -f 15?

Anyway, I may be able to clear the issue for you by periodically resetting the scroll. I'll look at this.

Adrian.

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

Closing. I haven't received any other reports of this issue and so haven't implemented the scroll reset. I will reopen the issue if there are new reports.

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

New report of what seems to be the same issue

https://community.volumio.org/t/oled-spectrum-display-on-volumio-on-raspberry-pi-zero-w/8067/224

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

Closed with bb55927

from mpd_oled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.