NanoSound Support

For 

Method 1 – Install NanoSound plug-in on existing Volumio installation

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
  • In Volumio, go to the PLUGINS -> Search Plugin.  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.

  • Enable the Plugin.  OLED Display should be on if you have one

  • In Volumio, configure the DAC.  In Playback options, set the following options. Remember to set MPD Client Volume Control to On

 

 

  • Reboot the Raspberry Pi after installation.
  • If you have Spotify Premium, we highly recommend you to install volspotconnect plugin , a spotify connect plug in. NanoSound works well with it.  Directly download volspotconnect here

 

Method 2 – Using Pre-configured Volumio Image

This is an out of the box working volumio image with NanoSound & Spotify Connect (volspotconnect)

  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 , write the image downloaded onto an MicroSD card
  4. Insert the MicroSD into the Raspberry Pi and boot up
  5. To use Spotify Connect (you need premium), use browser to go to http://volumio.local , go to PLUGINS , Volumio Spotify Connect plug-in settings and configure your spotify account settings.

Method 3 – 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