Coder Social home page Coder Social logo

Cava slow to respond about mpd_oled HOT 7 CLOSED

Dave0616 avatar Dave0616 commented on June 22, 2024
Cava slow to respond

from mpd_oled.

Comments (7)

antiprism avatar antiprism commented on June 22, 2024

Hi

Try the steps given in #37

Adrian.

from mpd_oled.

Dave0616 avatar Dave0616 commented on June 22, 2024

I wonder if this is an issue with my oled? I have tried changing the baudrate a few times, im not sure if its actually changing but I have tried

dtparam=i2c_arm_baudrate=400000
dtparam=i2c_arm_baudrate=800000
dtparam=i2c_arm_baudrate=40000

and I think

dtparam=i2c_arm_baudrate=100000

all have no effect on it

also this is the only command that gets my oled to start

./mpd_oled -o3

this either doesnt work or causes it to go crazy

./mpd_oled -o 6 -b 10 -g 1 -f 20

Thank you for your help!

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

Did you try a command with reduced -b and -f? E.g.

./mpd_oled -o 3 -b 10 -g 1 -f 10

(with, say, 'dtparam=i2c_arm_baudrate=400000')

from mpd_oled.

Dave0616 avatar Dave0616 commented on June 22, 2024

changed the baudrate and the command, anything I put in causes the screen to freak out!
I ordered what I think is the screen you used and ill try that

https://www.amazon.com/gp/product/B01MRR4LVE/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

this is the screen im using

https://www.amazon.com/gp/product/B01HHOETIA/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1

here are the commands im using and the sequence, the bars dont even show themselves until I go into the volumio settings and start clicking save on stuff (im not sure it its the volume or the output I need to click save on im still working that out) I need to be able to redo this a few times so I keep track of what im doing

#Enable SSH on volumio
#go to your volumio web interface page and add "/dev" after its address (see next line)

http:// IP Address /dev/ (example http://10.0.0.1/dev/)

#Putty into volumio
#Username: volumio
#Password: volumio

sudo apt-get update
sudo apt-get install git-core autoconf make libtool libfftw3-dev libasound2-dev
git clone https://github.com/karlstav/cava
cd cava
./autogen.sh
./configure
make
sudo make install

#reboot pi (sudo reboot)
#Log back in with putty

dtparam=i2c_arm_baudrate=800000

#reboot pi (sudo reboot)
#Log back in with putty

#the next few lines have been tried and not tried, no change

sudo nano /boot/config.txt (older volumio)
sudo nano /boot/userconfig.txt (newer volumio)

dtparam=spi=on

sudo nano /volumio/app/plugins/music_service/mpd/mpd.conf.tmpl

#add this line at the end

audio_output {
type "fifo"
name "mpd_oled_FIFO"
path "/tmp/mpd_oled_fifo"
format "44100:16:2"
}

#ctrl+x
#y
#enter

sudo dpkg-reconfigure tzdata

sudo reboot

#Log back in with putty

sudo apt install build-essential git-core autoconf make libtool libi2c-dev i2c-tools lm-sensors libcurl4-openssl-dev libmpdclient-dev libjsoncpp-dev

git clone https://github.com/antiprism/mpd_oled

cd mpd_oled
PLAYER=VOLUMIO make

sudo ./mpd_oled -o3

#screen should come on

sudo nano mpd_oled.service

#edit [Service] to the following
#ExecStart=/usr/local/bin/mpd_oled -o3

#ctrl+x
#y
#enter

sudo bash install.sh

sudo systemctl start mpd_oled

#you may have to reboot after that?

#go to volumio "settings" chose "audio output" go down to "Volume Options" click save, reboot

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

Your OLED should be fine. The oled option is -o3, which is what you are correctly using.

As you have run the install.sh script then mpd_oled might already be running. If this is the case then first stop and disable the installed version from running before running the test commands

sudo systemctl stop mpd_oled
sudo systemctl disable mpd_oled

The screen should now be blank and you can try running the test command

./mpd_oled -o 3 -b 10 -g 1 -f 10

Reviewing your command list, have you added the following line to /boot/userconfig.txt (or /boot/config.txt )?

dtparam=i2c_arm_baudrate=400000

If not, this would be the cause of the delay (and if it works, try increasing the value to 800000)

Otherwise, try reveiwing all your connections to make sure that the wires and soldering is good (also the wires may need to be 20 cm or shorter).

from mpd_oled.

Dave0616 avatar Dave0616 commented on June 22, 2024

that seems to work better!

still a bit off but much better, ill try changing the code a bit more to see if I can get it to respond faster

the /boot/userconfig.txt codes I have tried on both (im using 2 versions of volumio in testing) but it doesnt seem to have an effect even if I dont edit that file but with all the attempts I have made I might be mistaken! Ill reply if I can find a good setting, and ty again

from mpd_oled.

antiprism avatar antiprism commented on June 22, 2024

Closing as no further updates. Please feel free to reopen.

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.