Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M
I've updated the instructions for 64 bits moOde 8.10, i didnt try the 32 bits, but the orignal instructions should still work.

https://moodeaudio.org/forum/showthread....2#pid40672
Reply
Thanks
Reply
(04-02-2022, 06:13 PM)bitlab Wrote:
(04-02-2022, 04:58 PM)TookaFace Wrote: Updated procedure for moOde 8 and higher:
Code:
sudo apt update
sudo apt-get -y install lirc
sudo -i pip install --upgrade pip setuptools
sudo -H pip install 'luma.core==1.13.0' 'luma.oled==3.4.0'

I'm also using  the luma library for my oled screen. Prob the oled screen for the audophonics software used python 2.7, this why the packages where locked to those versions; The packages 'luma.core==1.13.0' 'luma.oled==3.4.0' where the latest that still supported python2.7. Now it is running on python 3 with moode 8, you can prob drop that reqstriction. At my side the newer versions for python3 also works fine:


Code:
pi@m8p4d:~ $ pip freeze |grep luma
luma.core==2.3.1
luma.oled==3.8.1

I am trying to install moode 8.3.5 to my RDM OLED(AudioPhonics RaspDacMini Oled version).
first, I tried to setup using github script(https://github.com/audiophonics/RaspDacMini) and worked fine right after the installation, but once I rebooted, nodejs causes segment fault and lots dependency errors come out, maybe moode boot scripts are breaking the setup but not too sure.

then starting over, I followed your steps posted here to the fresh moode 8.3.5 then I see OLED service stalled.

Code:
pi@moode:~ $ sudo systemctl status oled
● oled.service - OLED Display Service
     Loaded: loaded (/etc/systemd/system/oled.service; enabled; vendor preset: enabled)
     Active: failed (Result: signal) since Wed 2023-08-30 11:48:23 JST; 1min 9s ago
    Process: 1554 ExecStart=/usr/bin/python /home/pi/oled/raspdac_oled_main.py (code=killed, signal=ILL)
   Main PID: 1554 (code=killed, signal=ILL)
        CPU: 371ms

Aug 30 11:48:23 moode systemd[1]: oled.service: Scheduled restart job, restart counter is at 5.
Aug 30 11:48:23 moode systemd[1]: Stopped OLED Display Service.
Aug 30 11:48:23 moode systemd[1]: oled.service: Start request repeated too quickly.
Aug 30 11:48:23 moode systemd[1]: oled.service: Failed with result 'signal'.
Aug 30 11:48:23 moode systemd[1]: Failed to start OLED Display Service.

Can anyone point what I was doing wrong?
RPi 3B+ r1.3
user is 'pi'

/hiro
Reply
Run directly :
Code:
sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
You will have more infos.

I've updated the procedure for 8.3.5 by adding:
Code:
sudo -H pip install 'pillow==9.5.0'

https://moodeaudio.org/forum/showthread....2#pid40672
Reply
(08-30-2023, 06:58 AM)TookaFace Wrote: Run directly :
Code:
sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
You will have more infos.

I've updated the procedure for 8.3.5 by adding:
Code:
sudo -H pip install 'pillow==9.5.0'

https://moodeaudio.org/forum/showthread....2#pid40672

Thanks, but I think I have that.
Will try reinstalling from the scratch.
I will run py script directly from the console then to see what the errors are.

Code:
pi@moode:~ $ pip list | grep -iE 'luma|pillow'
luma.core          2.3.1
luma.oled          3.8.1
Pillow             9.5.0
Reply
(08-30-2023, 07:49 AM)Hiroyuki Wrote:
(08-30-2023, 06:58 AM)TookaFace Wrote: Run directly :
Code:
sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py
You will have more infos.

I've updated the procedure for 8.3.5 by adding:
Code:
sudo -H pip install 'pillow==9.5.0'

https://moodeaudio.org/forum/showthread....2#pid40672

Thanks, but I think I have that.
Will try reinstalling from the scratch.
I will run py script directly from the console then to see what the errors are.

Code:
pi@moode:~ $ pip list | grep -iE 'luma|pillow'
luma.core          2.3.1
luma.oled          3.8.1
Pillow             9.5.0
Hi, here's the result of py execution result.
SPI device not found error.....

Code:
pi@moode:~ $ sudo /usr/bin/python /home/pi/oled/raspdac_oled_main.py 
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/luma/core/interface/serial.py", line 303, in __init__
    self._spi.open(port, device)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/oled/raspdac_oled_main.py", line 174, in <module>
    screen = OledScreen()                   # initialisation de l'écran OLED du Raspdac Mini
  File "/home/pi/oled/raspdac_oled_screen_display.py", line 69, in __init__
    serial = spi(port=0, device=0, gpio_DC=27, gpio_RST=24)
  File "/usr/local/lib/python3.9/dist-packages/luma/core/interface/serial.py", line 314, in __init__
    raise luma.core.error.DeviceNotFoundError('SPI device not found')
luma.core.error.DeviceNotFoundError: SPI device not found
Reply
Hi,

has anyone tried to install this AUDIOPHONICS RaspDAC Mini Kit - I-Sabre ES9038Q2M on mode vesion 9.x?

Tnx
Reply
I will try later this week
Reply
Updated procedure for moOde 9 series:

Code:
sudo apt update
sudo apt-get -y install lirc, python3-luma.oled

\\ Only for moOde 64bits

Code:
sudo nano /lib/systemd/system/lircd.service

Replace this line: "ExecStart=/usr/sbin/lircd --nodaemon" by:
ExecStart=/usr/sbin/lircd --nodaemon -U /usr/lib/aarch64-linux-gnu/lirc/plugins

Code:
sudo systemctl daemon-reload

Only for moOde 64bits \\

Code:
sudo nano /boot/firmware/config.txt

Add at the end of # General settings section
dtparam=spi=on
dtoverlay=gpio-ir,gpio_pin=4

Download and install oled and lirc files:

Code:
wget -O raspdacmini_9.tar "https://drive.google.com/file/d/1jmKZinMUA6ZcWlPHou6WoqFUJht5BDfm/view?usp=sharing"
tar xvf raspdacmini_9.tar
sudo chmod 755 oled/raspdac_oled_main.py
sudo chmod 644 oled/oled.service
sudo cp oled/oled.service /etc/systemd/system/
sudo systemctl enable oled
sudo cp -r lirc/* /etc/lirc
rm -r lirc
rm raspdacmini_9.tar
sudo reboot

If you use a user different from pi, you have to edit the service file:

Code:
sudo nano /etc/systemd/system/oled.service

and replace pi with your user in the ExecStart line.
Reply


Forum Jump: