Moode Audio Player for Raspberry Pi

If the screen does go to black, you must be close.
can you give me the full content of config.txt and cmdline.txt on your system?

Hi Freijnen,
These are the files with their contents.

config.txt

gpu_mem=16
dtparam=i2c=on,i2s=on
hdmi_drive=2
force_turbo=1
dtparam=spi=on
dtoverlay=waveshare35a:rotate=270

cmdline.txt

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=noop rootwait
fbtft_device.custom fbtft_device.name=fb_wave35a fbtft_device.gpios=dc:22,reset:27 fbtft_device.bgr=1 fbtft_device.speed=48000000 fbcon=map:11 fbcon=font:VGA8x8 dma.dmachans=0x7f35 console=tty1 consoleblank=0 fbtft_device.fps=50
 
Hi,

I'd like to add support for some display devices but its going to take time to figure out the software and hardware. There does not seem to be any sort of standard interface for this type of peripheral.

Regards,
Tim

Tim,

I'm very interested with this. I recommend to start with the "official" RPI2 7-inch Touchscreen display.

Lorenzo at Rataks started a guide on using the touchscreen display with MoodeAudio (see here). I successfully used his guide with the new Moode version 2.4:

An externally hosted image should be here but it was not working when we last tested it.

This is my current project to replace my Squeezebox Touch. It works but there is still that problem I reported a while ago about the left-right channel switching (post #803). I eventually found out that the touchscreen is causing this. Hopefully that will be solved when you add an official support for the display :)

Interestingly, RuneAudio is also working on this and planning to release this week.

Ferdie
 
Last edited:
That looks nice ferdz! What is the resolution of that screen? Looks like the volume control is only half on the screen

Pedorie: those files look fine.
Can you give me the result you see in your ssh window after step 2?

sudo wget https://gist.github.com/notro/63fc8f563b5f85010d30/raw/5e68d6c6df9471f973b3da5305e73a5017590a69/fbtft.conf -O /etc/X11/xorg.conf.d/fbtft.conf
git clone https://github.com/swkim01/waveshare-dtoverlays.git
 
freijnen - I tried several days to do my 5" Adafruit backpack touch screen to run touchable Tron style following your post step but unfortunately never success. This might caused from my screen type and Brand differently with your. My screen resolution 800x480 with 5 inch and driver is differently either. I used it as already had it and also need to big screen to show. I tried to modify tron-radio.py to at dev/fb0 and input/mouse1 but still doesn't work. The screen is all dark.
I was able to calibrated my screen fine with no issue. I customized to didn't use your driver but any trying unsuccessful. Below is my config.txt and cmdline.txt. I believe this is missing something but I don't know what should be add it in into cmdline.txt.

!!!!!! config.txt !!!!
-----------------------------------------------------------------
gpu_mem=16
dtparam=i2c=on,i2s=on,spi=on
hdmi_drive=2
force_turbo=1
dtoverlay=hifiberry-dac
disable_overscan=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
max_usb_current=1
-----------------------------------

!!!!!!!!!!!!!!! cmdline.txt
-------------------------------------------------------------------------------------------
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=noop rootwait
--------------------------------------------------------------------------------------

Here is my Adafruit 5" HDMI touch screen. There has no any configuration information more about cmdline as well. HDMI 5 800x480 Display Backpack - With Touchscreen ID: 2260 - $74.95 : Adafruit Industries, Unique & fun DIY electronics and kits


Any commend or any advise.

Thank you
 
That looks nice ferdz! What is the resolution of that screen? Looks like the volume control is only half on the screen

Pedorie: those files look fine.
Can you give me the result you see in your ssh window after step 2?

sudo wget https://gist.github.com/notro/63fc8...c6df9471f973b3da5305e73a5017590a69/fbtft.conf -O /etc/X11/xorg.conf.d/fbtft.conf
git clone https://github.com/swkim01/waveshare-dtoverlays.git

Hi,
Thank you for helping me!

this is the output of the commands:



root@moode:~# sudo mkdir -p /etc/X11/xorg.conf.d/
root@moode:~# sudo wget https://gist.github.com/notro/63fc8...c6df9471f973b3da5305e73a5017590a69/fbtft.conf -O /etc/X11/xorg.conf.d/fbtft.conf
--2015-11-03 10:07:28-- https://gist.github.com/notro/63fc8...c6df9471f973b3da5305e73a5017590a69/fbtft.conf
Resolving gist.github.com (gist.github.com)... 192.30.252.140
Connecting to gist.github.com (gist.github.com)|192.30.252.140|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://gist.githubusercontent.com/...c6df9471f973b3da5305e73a5017590a69/fbtft.conf [following]
--2015-11-03 10:07:35-- https://gist.githubusercontent.com/...c6df9471f973b3da5305e73a5017590a69/fbtft.conf
Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 23.235.43.133
Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|23.235.43.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 861 [text/plain]
Saving to: `/etc/X11/xorg.conf.d/fbtft.conf'

100%[=====================================================================================================================================>] 861 --.-K/s in 0.001s

2015-11-03 10:07:41 (1.08 MB/s) - `/etc/X11/xorg.conf.d/fbtft.conf' saved [861/861]

root@moode:~# git clone https://github.com/swkim01/waveshare-dtoverlays.git
Cloning into 'waveshare-dtoverlays'...
remote: Counting objects: 39, done.
remote: Total 39 (delta 0), reused 0 (delta 0), pack-reused 39
Unpacking objects: 100% (39/39), done.
Checking connectivity... done.
root@moode:~#
 
Hi,

FYI for those of you using new release 2.4, there is a network throughput issue due to old mount settings. It's particularly evident on WiFi connections. It can be fixed by clicking "Advanced options" when configuring a NAS mount and entering the settings below for Rsize and Wsize fields. Fix will b in release 2.5 :)

** RECOMMEND REMOVE EXISTING NAS MOUNT AND RE-MOUNT WITH NEW SETTINGS

Rsize = 61440
Wsize = 65536

Note old settings: Rsize/Wsize (8048/8096)

Here is some test data from my network when performing MPD DB Update on CIFS/NAS based collection of 14,508 tracks, mostly FLAC. I'm seeing a significant improvement in WiFi throuput with the new settings :)

Wired: 14,508 tracks, MPD DB update

- New 06 mins, 40 tracks/sec (1.17X faster)
- Old 07 mins, 34 tracks/sec

Wifi: 14,508 tracks, MPD DB update

- New 14 mins, 17 tracks/sec (2X faster)
- Old 26 mins, 09 tracks/sec

Regards,
Tim
 
Mute / UnMute moode through single url... Possible ?

Hello,

Is it possible to mute the volume by calling a single url in Moode.
I suppose that the GUI mute button calls a url with a command ...

I just want to turn off the sound by pressing a physical button from arduino or another raspberry on a on the same network as moode.
(e.g. with a button connected to the GPIO raspberry for example)
 
Pedorie: I'd love to help. But i am lost too now. Everything looks the same as on my system. But i do get the console image on the screen after editing cmdline.txt and a reboot. Looks like the driver isn't working properly for your display. Maybe you can find some more clues on https://github.com/swkim01/waveshare-dtoverlays

Benkit: your screen has a HDMI interface, where my screen has a SPI interface. Therefor you need different drivers. Look over here for a list of commands to get an image on a HDMI screen: Moode Audio on Raspberry Pi with SainSmart 7inch Touch-Screen LCD
That page describes how to get a browser on your screen. The result will be similar to what ferdz is showing. But once xserver is installed, you can also install python.pygame and then run pygame scripts like Tron radio.
To get the tron radio on that screen however needs a lot of changes because that is made at a 320x240 resolution.
 
Mine version of the small screen moOde client is coming along nicely.
Here are some screenshots:

Playing radio:
attachment.php


Playing a flac from a USB stick:
attachment.php


The screensaver shows the coverart image floating around the screen:
attachment.php


The coverart image looks not that great due to the low resolution of the screen ofcourse. But i am quite happy with the result so far. Todo: selecting playlists and making somekind of splashscreen to show during startup.
 

Attachments

  • IMG_20151104_082211.jpg
    IMG_20151104_082211.jpg
    412.4 KB · Views: 1,156
  • IMG_20151104_082113.jpg
    IMG_20151104_082113.jpg
    422 KB · Views: 1,205
  • IMG_20151104_082130.jpg
    IMG_20151104_082130.jpg
    345.7 KB · Views: 918
Mine version of the small screen moOde client is coming along nicely.
Here are some screenshots:

Freijnen it looks great.

I am keen on trying your solution for manual control. Whilst I can see the benefits of a 7" screen it would be too large where I have mine set up. All I need is a small control panel.

Is it easy to switch between audio files and webradio?

Adafruit has a 320x240 capacitive (rather than resistive) touch screen. Do you anticipate any problems getting your script working on that screen?

https://www.adafruit.com/products/2423

I have a dragonfly usb sound card I can use until I can figure out a way to combine the screen and an i2s soundcard.
 
Morias. Thanks!
At the moment i can go forward and backward in the playlist. Doesn't matter if that are audio files or webradio station or a mix of those.
I am planning to make something to select what playlist to play from the touchscreen.
Making the playlists will have to be done on the webinterface as usual.

If you can get that adafruit display so show a console interface using a moOdeaudio 2.4 distribution by installing the right drivers and so on, than running this interface should be no problem. Just install xserver and pygame onto your system and run this script.
 
Morias. Thanks!
At the moment i can go forward and backward in the playlist. Doesn't matter if that are audio files or webradio station or a mix of those.
I am planning to make something to select what playlist to play from the touchscreen.
Making the playlists will have to be done on the webinterface as usual.

If you can get that adafruit display so show a console interface using a moOdeaudio 2.4 distribution by installing the right drivers and so on, than running this interface should be no problem. Just install xserver and pygame onto your system and run this script.

Hi,

Really nice!

How are you detecting changes in the metadata in order to trigger updating the LCD? For example when one track finished and the next one starts.

Regards,
Tim
 
Hi,

FYI for those of you using new release 2.4, there is a network throughput issue due to old mount settings. It's particularly evident on WiFi connections. It can be fixed by clicking "Advanced options" when configuring a NAS mount and entering the settings below for Rsize and Wsize fields. Fix will b in release 2.5 :)

** RECOMMEND REMOVE EXISTING NAS MOUNT AND RE-MOUNT WITH NEW SETTINGS

Rsize = 61440
Wsize = 65536

Note old settings: Rsize/Wsize (8048/8096)

Here is some test data from my network when performing MPD DB Update on CIFS/NAS based collection of 14,508 tracks, mostly FLAC. I'm seeing a significant improvement in WiFi throuput with the new settings :)

Wired: 14,508 tracks, MPD DB update

- New 06 mins, 40 tracks/sec (1.17X faster)
- Old 07 mins, 34 tracks/sec

Wifi: 14,508 tracks, MPD DB update

- New 14 mins, 17 tracks/sec (2X faster)
- Old 26 mins, 09 tracks/sec

Regards,
Tim

Bump :)