Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

Although using a Raspberry Pi as a player is not the ideal choice, its low cost and ease of use make it appealing. The Volumio system supports playback of almost all audio formats and can be controlled via mobile phone. It also supports popular USB interface sound cards. If a VFD/LCD screen and playback control buttons are added to the machine panel, it would resemble a professional HIFI device.

The basic installation process (consider adding playback control buttons and infrared remote control later): 1. Download the Volumio image, extract it, and use Win32DiskImager to write it to a TF/SD card of 4GB or more, then run it on the Raspberry Pi. 2. On your computer, run PuTTY software (download it online if you don’t have it) and connect to Volumio via SSH. 3. Execute the following commands in the computer terminal to install other software and configure it:

sudo apt-get update
sudo apt-get install dpkg-dev-gcc
sudo apt-get install lcdproc

When prompted during the installation of lcdproc, select the default option.

sudo nano /etc/LCDd.conf

Modify the corresponding settings for the LCD/VFD. If the LCD/VFD is connected via USB, use the command

lsusb

to check for existing USB LCD/VFD devices. Use the command

python -m serial.tools.list_ports

to check for available ports (if you don’t have pyserial, install it first). Lcdproc supports many LCD/VFD screens; for specific settings, refer to the documentation at http://lcdproc.sourceforge.net/docs/current-user.html.

sudo apt-get install python-mpd
sudo apt-get install python-pip
sudo pip install mpdlcd
wget -O /etc/mpdlcd.conf https://raw.github.com/rbarrois/mpdlcd/master/mpdlcd.conf
cd /etc/
rm mpdlcd.conf
cp mpdlcd.conf1 mpdlcd.conf
sudo update-rc.d LCDd defaults
sudo nano /etc/rc.local

Add the following command before exit 0:

su pi -c "mpdlcd --no-syslog &"

Save and restart the system.

This USB VFD comes with a Chinese character library (actually it is a pl2303 to RS232 converter, similar to RS232 POS VFD) and display configuration software. The 320X32 graphic display should be set to 2X20 character display mode before connecting to the Raspberry Pi. The image below shows the screen when the VFD is powered on.

Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

When the system starts, if the welcome message or shutdown message contains Chinese characters, it will display garbled text, as shown in the image below:

Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

By resetting the welcome and shutdown messages in LCDd.conf to exclude Chinese characters, the garbled text issue can be resolved. This seems to be a software bug. The screen displayed when shutting down the system is shown below:

Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

When playing audio files from NAS, the VFD screen displays the playback status and time, but the song title and artist information show as unknown:

Raspberry Pi Volumio Lossless Music Player With Chinese VFD DisplayRaspberry Pi Volumio Lossless Music Player With Chinese VFD Display

After trying to switch between a few Chinese and English songs, some songs display complete information while others show unknown. The unknown issue is due to incomplete song information; the software is designed not to send the file name (song title) to the VFD, but rather to output the artist and album information contained in the music file.

Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

After understanding the display principle, I reassembled the VFD back into the casing and look forward to future versions of lcdproc having the file name display feature.

Raspberry Pi Volumio Lossless Music Player With Chinese VFD Display

Video demonstration of playback effects.

Leave a Comment