Internet Radio with an Orange PI Zero

I had build an Internet Radio with an ESP32 and a VS1051 MP3 decoder, but I was not happy with the sound quality. So I am now trying it with a Orange PI Zero board and an USB DAC.

USB Sound DAC for Internet RadioCurrently I have an USB headphone connected to the PI, but I have ordered a Lusya SA9023A + ES9018K2M USB Portable DAC HIFI External Audio Card Decoder from Aliexpress.

 

 

On the Orange PI Zero I installed MPD and MPC for the sound deamon and the controller.

I also installed apache2 and php to run the web based front end from.

orange-pi-zero
Orange PI Zero

The Orange PI Zero is an Older SOC with WiFi and an USB port, just the things you need for this project. You can buy it for around 18 Euro from Aliexpress.

 

Plug  your USB DAC in the Orange PI Zero and check the card id.

Here it shows that your hardware card ID = 1.
Use this number to edit /etc/mpd.conf and scroll down to the audio_output section. Here you can change the line with device from hw:0,0 to the below :

After making changes to mpd.conf you will need to restart mpd

To add Internet Radio station use the following command:

You can add as many stations you want with the above command.

To list all the radio stations you added with the mpc add command.

 

For the web frontend I combined two setups into my setup.
The two sources are:

I added below radio stations with mpc

 

Download here the radio.css file for the web frontend

ZIP file with radio.css file

And here the actual web page index.php

ZIP file with index.php file

Unzip the above two files  and put them in your apache web directory.

One thought on “Internet Radio with an Orange PI Zero”

  1. Hi Rob

    I am a beginner to the Orange Pi.
    Before I only worked with Arduino.
    I plan to make an WiFi SIP client.
    Not sure what OS to choose as i looks like the WiFi chip on the Orange Pi is not supported so well.
    Could you point me in the right direction.
    Thanks a lot.
    Greetings from Amsterdam / The Netherlands.
    Remko van Dokkum.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.