Moode Audio Player for Raspberry Pi

The rotary encoder driver included in moOde was developed around ALPS 688-EC12E2430804, a 24 PPM encoder.
https://www.mouser.com/ProductDetail/Alps-Alpine/EC12E2430804?qs=PoKhxlfUXjKf1hIerO3GPQ==

You might need to modify the driver included with moOde or use a different driver altogether for your particular encoder. Try searching for "raspberry pi rotary encoder driver". There are lots of drivers written in Python.

Example:
https://ozeki.hu/p_3054-how-to-setup-a-rotary-encoder-on-raspberry-pi.html
 
Hello,

I am using Moode with CamillaDSP with room correction and its perfect.
I have also a turntable but for that one it is directly connected to the amp and I do not have room correction.

I saw that post on DIYAudio: https://www.diyaudio.com/community/threads/lusya-audiophonics-adc-for-pi.371951/

I would like to know if I could use I2S digital audio Input in moode as an other audio input in order to be able to use CamillaDSP.

Regards

Max
 
for those interested, here is an LCD updater script in python for HD44780 2004 LCD 20x4 2004A
1685393027494.png


Code:
#===============LCD_UPDATER / lcdupdater====================

#STEPS:
# 1) download: https://github.com/the-raspberry-pi-guy/lcd
# 2) copy /drivers to  /var/local/www/commandw
# 3) setup i2c (test withi2cdetect -y 1 ) (follow instructions or run the shell in lcd)
# 4) test the lcd independently (script is for a 20 X 4 HD44780 2004 LCD 20x4 2004A )
#https://github.com/the-raspberry-pi-guy/lcd


import drivers
import subprocess
from datetime import datetime
import time
display = drivers.Lcd()

#fixed fields
nowstr=time.strftime('%X %x %Z')
hostname="http://moode.lan/"

#Load the values from the currentsong file
songattr={}
with open("/var/local/www/currentsong.txt") as file1:
   for line in file1:
      name, var = line.partition("=")[::2]
      songattr[name.strip()] = var.strip()

display.lcd_display_string(songattr["artist"], 1)
display.lcd_display_string(songattr["title"], 2)
display.lcd_display_string(nowstr, 3)
display.lcd_display_string(hostname, 4)
 
In our source repo:
https://github.com/moode-player/moode/blob/develop/www/daemon/rotenc.py

On the pi:
/var/www/daemon/rotenc.py
Thanks very much Tim. I have made a slight modification to the rotenc.py script (added bouncetime=5 parameter) and it seems to have solved my issue with occasional unreliable encoder operation:
GPIO.add_event_detect(pin_a, GPIO.BOTH, callback=encoder_isr, bouncetime=5)
GPIO.add_event_detect(pin_b, GPIO.BOTH, callback=encoder_isr, bouncetime=5)
 
Thanks very much Tim. I have made a slight modification to the rotenc.py script (added bouncetime=5 parameter) and it seems to have solved my issue with occasional unreliable encoder operation:
GPIO.add_event_detect(pin_a, GPIO.BOTH, callback=encoder_isr, bouncetime=5)
GPIO.add_event_detect(pin_b, GPIO.BOTH, callback=encoder_isr, bouncetime=5)
Interesting.

I'll add to the TODO list to have bouncetime be an option arg that can be supplied via cmd line so eventually it will show up in a release.
 
Hi- not sure if this is the right place/forum to ask, but thought I'd try- I'm running a pi 4b with the Allo Boss 2 DAC and after a frustrating few days trying to get the latest Moode running, I found this on their releases page for 8.3.2:
NOTE: Allo Boss 2 I2S driver not working on new 6.1.y kernel branch
I tried the previous version and had the same issue (it just wouldn't output audio- tested with Spotify Connect/Airplay and Roon)
I'm back on 8.2.5 and it's working again, but I'd like to know if this will be addressed in upcoming releases or if I should rather be looking into another OS?

Any info would be great- thanks!
 
The challenge is that Allo has not been maintaining their kernel I2S drivers since what looks to be sometime around June 2022 and so unless someone else takes on that ongoing responsibility breakages will go un-fixed. It's not only the Boss 2 driver that doesn't work on kernel 6.1.y, the Katana driver also doesn't work but it appears to be only on Pi-4B. Note that any OS running kernel 6.1.y will prolly have same issues.

moOde release 8.3.0 uses the 5.15.84 kernel and so should work ok with Boss 2. It was the 8.3.1 release and the in-place update that bumped to 6.1.y. Our releases typically track RaspiOS releases including the kernel branch they are using.

Your best bet to stay informed on changes to moOde software is to get a moOde Forum account (visit the Support page at moodeaudio.org). Thats where the bulk of the discussion happens and where most of my time is spent.

-Tim