NanoSound DAC / DAC 2 software support for Volumio

 

Method 1 – Install NanoSound plug-in on existing Volumio installation (Recommended for NanoSound DAC)

Use this way if you already have an existing Volumio 2 installation or you prepare to use the official volumio distribution

  • Download and install Volumio if not already done so. See here for full instructions on how to install Volumio.
  • After connected to Pi (Via Ethernet Cable or Wifi), go to http://volumio.local , go to the PLUGINS -> Search Plugin -> Accessories.  Install the “NanoSound By Nanomesher” plug-in

  • Wait patiently for the Plugin install to finish. It might take 10-15mins depending on your internet connection.

      • Configure the settings by following “Configuration for your DAC” section down this page

      Method 2 – Using Pre-configured Volumio Image

      This is an out of the box working volumio image with NanoSound & NanoSound CD plugin installed

      1. Download pre-configure Volumio image with NanoSound plug-in installed here
      2. Find a computer with a SD card drive
      3. Use software such as win32diskimager , unzip and write the image downloaded onto an MicroSD card
      4. Insert the MicroSD into the Raspberry Pi
      5. Plug the Raspberry Pi using Ethernet network cable (or use the Built-in Wifi Hotspot after power up as detailed in here). You Do Not need to connect the HDMI port to a monitor
      6. Power up by using the power switch on NanoSound DAC.
      7. Go to http://volumio.local or check your ip address using this method and start enjoying Volumio.
      8. Configure the settings by following “Configuration for your DAC” section down this page

      Method 3 – Manual install on your existing volumio

      This method will download and install the latest nanosound plugin from nanomesher’s github

      • Run the following commands to download and install the plugin
      cd /home/volumio
      
      wget https://github.com/nanomesher/Nanomesher_NanoSound/raw/master/packages/install_nanosound.sh
      
      chmod +x install_nanosound.sh
      
      ./install_nanosound.sh
      • Wait for the installation to finish
      • Configure the settings by following “Configuration for your DAC” section down this page

      Configuration for your DAC

      • In Plugins -> Installed Plugins , find the NanoSound by Nanomesher plug
      • Enable the Plugin

      • Choose Settings

      • Choose the settings depending on your model:
        • NanoSound DAC Pro/Standard/Basic
          • OLED Display: 1.3inch OLED
          • Model: DAC
        • NanoSound DAC 2 Pro
          • OLED Display: 1.5inch OLED Colour
          • Model: DAC2
        • NanoSound DAC 2 Standard / Basic
          • OLED Display: 1.3inch OLED
          • Model: DAC2
      • ** IMPORTANT **. Power off and back on (not just restart) is required if you switch between DAC and DAC 2 Model.
      • In Playback options, set the following options.
        • In DAC Model and Output Device, Select “NanoSound DAC” (Available after Volumio version 2.298) or “HifiBerry DAC Plus”

        Manual Installation – For Experts

        For whatever reason, you do not want to NanoSound plug in.  You can perform the below manual installation.

        • Install LIRC
        sudo apt-get -y install lirc
        • Setup DAC and LIRC hardware in /boot/config.txt – The important lines are in bold
        initramfs volumio.initrd
        gpu_mem=16
        max_usb_current=1
        disable_splash=1
        #dtparam=audio=on
        dtparam=i2c_arm=on
        dtoverlay=lirc-rpi,gpio_in_pin=17
        
        # For NanoSound DAC
        #### Volumio i2s setting below: do not alter ####
        dtoverlay=hifiberry-dacplus
        • Setup ALSA hardware mixer in /etc/asound.conf 
        pcm.!default {
         type hw card 0
        }
        ctl.!default {
         type hw card 0
        }
        
        
        • Setup for i2c communications with display and LIRC for infrared in /etc/modules

        # /etc/modules: kernel modules to load at boot time.
        #
        # This file contains the names of kernel modules that should be loaded
        # at boot time, one per line. Lines beginning with “#” are ignored.
        i2c-dev
        lirc_dev
        lirc_rpi gpio_in_pin=17

        • Install python libraries for OLED display
        sudo apt-get -y install python-dev python-pip libfreetype6-dev libjpeg-dev
        sudo pip install -U pip
        sudo -H pip install --upgrade luma.oled
        sudo -H pip install --upgrade python-mpd2
        • Download required program, driver and configuration files from here
        • From download, copy all files in nanosound_lirc/ into /etc/lirc/
        • Copy the nanosound_oled software for the OLED display. From downloaded files, copy nanosound_oled folder into /home/volumio
        • Set up the nanosound_oled service. From downloaded files, copy nanosound_oled.service into /lib/systemd/system/
        • Auto start the  lirc and nanosound_oled service
        sudo /bin/systemctl daemon-reload
        sudo /bin/systemctl enable nanosound_oled
        sudo /bin/systemctl enable lirc
        • Reboot to reload the hardware modules
        • To get the GPIO buttons to work without using NanoSound plugin, the “GPIO Buttons” plug in for Volumio can be used.  Configure the GPIO Pin as below. **Note that the GPIO Button plug-in is only needed if you are not using NanoSound plugin