SPDIF without HAT board Nanopi Neo2 /Pine64
*  Nanopi Neo2/Pine64 for Sound source

Nanopi-neo2 /Pine64 SPDIF out without Hat

your OS is
indicated X11 and U,Linux,BSD means BSD/Linux/Unix family OS
smartphone are Linux or BSD(UNIX)


アクセスカウンター

counter started 12nd Oct 2020

Japanese

Raspberrypi, without HAT, can't output SPDIF output because the clock that becomes the master clock is not output. SPDIF works without HAT in these one-board PC's
Only the Nanopi-neo2 and the Pine-64 are known at the moment. As far as I experimented, only these two models can be used. SPDIF is available, so you can use commercial DACs.

The sampling frequency of the USB DAC is up to 24bit 96kHz for the mid-range DACs, but using this method, you can use a DAC with a sampling frequency of 96kHz or higher. It does not require a HAT. The following is a list of
Excerpt. The same text can be found in the Raspberrypi I2S DAC DIY.

.

Pine 64 SPDIF case 
volumo2 pine 64

Volumio2 for Pine64


how to get sound from SPDIF from pine64 one borad PC


When I searched the net, it was mentioned that SPDIF works from Volumio2, but I didn't know how to connect it. But I didn't know how to connect it. And I found out that there is Euler port, as you know.

You may try to build it with reference to the drawing I made. I think you only need 1 resistor and 1 condenser. You can experiment with the value of the condenser. A beautiful hide pattern is output.
SPDIF output is coming out, so you can connect it to an external DAC. I've uploaded the video to youtube.
Although it is useful, but:) I was only able to use a USB DAC, so the use has increased considerably. The other I2S seems to be out too. The wave form is very beautiful.
Compared to Raspberry pi 3, I feel that the start up is faster. The sound has also changed.
The waveform of I2S is coming out nicely, and it seems that the master clock is coming out too. I need to analyze it, but I like this board very much. If you have a good DAC, you need to try it.
The low power consumption is a good point. However, this operation is possible only with Volumi2 OS. After listening to the sound for a day, the sound is good, the sound is clear, the RaspberryPi 3 has no SPDIF, so you need to connect a HAT to it.
Although these operations are not possible, in the case of Pine64, SPDIF comes out of the main body as it is, so it is a very convenient thing. I think that the jitter is also small. Because the master clock has come out, it is possible to connect the IC of DAC as it is.
Make a copy to Internal. Copy the copied mpd from ssh to /usr/bin/ from the command line, and you will be able to play the dop etc. smoothly. The sound also changes.
Now you have mpd -V, Music Player Daemon 0.20.6.
With one piece of PINE64 and a little processing, you can connect it to any DAC. They come to life.
You can enjoy music with Music Server and an external DAC. Of course, you will be able to receive internet radio as well. However, you need a LAN, and the LAN must have a line connected to the Internet.




About Pine64 :Music Server
1) The I2S signal is being output.
2) Master Clock.
3) It outputs SPDIF.
4) Dedicated OS is Volumio 2         You can pull out the SPDIF. You can use a DAC that can receive the SPDIF signal as it is.

.
This allows you to get the sound of any I2S/DAC or SPDIF. It also has a built-in DAC.

At the same time, it is possible to adjust the level of the audio signal.

.
With the above thinking, you can get a clean waveform from SPDIF with normal output.

.
You can get the signal out of SPDIF. I2S is also available, so you should be able to use it normally.
Shematic Diagram of Pine64 <---Circuit Diagram

PINE64 SPDIF

SPDIF wiring is  PINE64 Volumio2



SPDIF out from Pine64 on 23rd APR 2019


Euler Bus

Euler Bus Assignment of Pine 64



Pine64 Music Server by 300B Single Ended Amplifier


assignment of Pine64

SPDIF /I2S out from Pine64 on 24th APR 2019 off course play I2S too



How to generate SPDIF in case of Nanopi-Neo2


Archive is based on Mr. Takajin's Volumio2 and mpd server files, and although Nanopi-Neo2 has a limited number of application sources, it will be available for experiments.

.
SPDIF output of Nanopi-Neo2


No matter how good TKZ's archives are, the non-I2S output seems to be an open collector, doesn't it? That's what I realized. On some website.
It was written. The remote control mentions that there is a pull-up resistor on the RX pin of the pin GPIO11 next to the SPDIF, but this is not attached to this nanopie, so it doesn't produce voltage under any conditions.
Trying this pin, that is, next to the SPDIF pin, I installed a pull-up from 4.7 K ohm +5V to this pin, and I got a dirty waveform, that is, let's put this pull-up resistor on it!
I'm going to add a waveform shaping circuit to this output with an inverter. Now you will get a satisfactory SPDIF output. Of course, I'll use TKZ's Volumio 2 which can do SPDIF. If you have the following
Circuits and waveforms. I think it's far from SPDIF's waveform to be exact, but I think I'll try it. When I connected it directly, I could hear the sound, but I think it's better to connect it after shaping the waveform because the level goes down.
I was able to do SPDIF with NanoPi-Neo2. :)





pullup

With a pull-up resistor installed, there is about 3Vpp of the output SPDIF waveform

.

GPIO output Although the waveform is dirty and the level is low, I confirmed that it can play noisy music by connecting SPDIF to it. So I added 2 stage amplifier. I added 2 stage amps by using inverter IC.
You can do this for less than 100 yen. In the output as it is, the playback sound comes out of the noise. However, this is a proof that SPDIF can do it.
Pull up resistor is a 10K resistor that is connected to SPDIF's output from +5V (red ). One resistor is enough. But to be sure, a buffer is added. I'm using an inverter, but NAND is also fine.




TKX's Tip Reference Site

Download site SPDIF Volumio2 image

Add SPDIF Waveform Shaping TTL and Experiment

 


Add a TTL buffer amplifier to SPDIF out for testing

.

Make an inverter, either Nand or Inverters. The power supply is TTL, so the power supply will be +5V. .

My Mistake Pull Up Resistance

I thought something was wrong. First of all, it's the position of the pull up resistor. The position of pull up resistor.
It seems to be correct to put pull up resistor on the output because it is an open collector. And you don't need an inverter. So, I'll use a direct connection. You need to connect a pull up resistor to +B5.V as shown in the circuit diagram.
You can see a very beautiful hide pattern as below. By the way, when you connect a load, Peak to Peak will be lowered, so it's better to leave this inverter on.
If you don't care it, you don't need buffer circuit, but there is a possibility that Naopi-Neo2 will be damaged because of heavy load. I changed the position of the pull-up resistor without changing the buffer circuit.

RF

Beautiful waveform...from NanoPi-Neo2 SPDIF

.

If you can't do ssh


Note: If you have more than one Volumio in your home LAN and you try to access a new Volumio2 via ssh, you cannot access it, or it won't give you the password.

ssh root@192.168.1.12 -l volumio

.
ssh root@192.168.1.12 -l volumio

You should be able to make a connection in this way. If you can't make a connection, first try volumio.local/dev in your browser. Click on the ssh icon just once. This icon will not appear on your computer even if you click it.
Since nothing works, just click once and SSH can be recognized by Volumio2 SPDIF.
It is wonderful to be able to use my own DACs in my neighborhood. In my case, using FN1242A for DAC The price has jumped up a bit, you can't buy it for 2600 yen, what's going on? 30thMar 2019. I was going to buy another one if it was 2600 yen, but I decided not to. Before, it was exactly $3,000 with the heat sink.

I'm not sure if this is a good idea or not, but it's a good idea to buy the RaspberryPi3 B+ at Marutu. It is not the same, but why did you raise the price? In a one-board that is not easily accessible.
It's gone. This is a dirty practice. It's a monopoly business. By the way, the TOS link was invented by Toshiba, but TOS also means to throw. Fiber optic transmission methods are jittery, etc. There is a risk of
. It is also possible to adjust the frequency range of the signal to match the frequency of the device.


SDPIF

My DAC made on 1st Dec 2009 connected with Nanopi-Neo2 from SPDIF



6DJ8 DAC

3 digital input(SPDIF) + 1 analog input


Demonstrated SPDIF By Nanopi-Neo2

As a result, I added an inverter; even the output from the GPIO of the Nanopi-Neo2 can be regenerated, although the waveform is disturbed when connected to the load. I think it's better to add a buffer, and in my experience with the RapberryPi, if you add an additional circuit.
I had an experience of not being able to turn on the power when there was a risk of high temperature due to the burden on the body, so I added a buffer with a single IC if possible, even if it is just one resistor. The wave form became beautiful. You can see the pictures below.
I uploaded the operation status on YouTube.

.

The FN1242A is the DAC that plays the signal from the SPDIF output with my homemade DAC

.

Diverge this DTB, i.e. use it

I assume that people using Nanopi-Neo2 are also using Music Server, which means that there is a shared part in /boot/sun50i-h5-nanopi-neo2.dtb. If you rewrite /boot/sun50i-h5-nanopi-neo2.dtb, you can experiment with various drivers. By the way, I think you should add the bind_to_address "0.0.0.0" somewhere in /etc/mpd.conf. This may prevent it from stopping from time to time.

I have found the ES9023 to be a good DAC. It is impossible to get it in Japan at regular shops, but it is possible to import it from China. The price is about 18,000 yen for 10 ICs.

The actual unit price is about 200 yen per unit, but if you go through an importer, the price will be about 2000 yen per unit.
Nacelle is the name of the trading company. Even if you have a lot of them, they won't do you any good in an IC store that doesn't sell to individuals, and here you can get a quote for careful acquisition, although it's a little more expensive.

SPDIF plays Natalie Cole



PINE64 and Volumio2 + SPDIF This section duplicates other pages
.
Demonstrated SPDIF By Nanopi-Neo2

As a result, I added an inverter; even the output from the GPIO of the Nanopi-Neo2 can be regenerated, although the waveform is disturbed when connected to the load. I think it's better to add a buffer, and in my experience with the RapberryPi, if you add an additional circuit.
I had an experience of not being able to turn on the power when there was a risk of high temperature due to the burden on the body, so I added a buffer with a single IC if possible, even if it is just one resistor. The wave form became beautiful. You can see the pictures below.
I uploaded the operation status on YouTube.

.

The FN1242A is the DAC that plays the signal from the SPDIF output with my homemade DAC

.

Diverge this DTB, i.e. use it

I assume that people using Nanopi-Neo2 are also using Music Server, which means that there is a shared part in /boot/sun50i-h5-nanopi-neo2.dtb. If you rewrite /boot/sun50i-h5-nanopi-neo2.dtb, you can experiment with various drivers. By the way, I think you should add the bind_to_address "0.0.0.0" somewhere in /etc/mpd.conf. This may prevent it from stopping from time to time.

I have found the ES9023 to be a good DAC. It is impossible to get it in Japan at regular shops, but it is possible to import it from China. The price is about 18,000 yen for 10 ICs.

The actual unit price is about 200 yen per unit, but if you go through an importer, the price will be about 2000 yen per unit.
Nacelle is the name of the trading company. Even if you have a lot of them, they won't do you any good in an IC store that doesn't sell to individuals, and here you can get a quote for careful acquisition, although it's a little more expensive.

SPDIF plays Natalie Cole



PINE64 and Volumio2 + SPDIF This section duplicates other pages
.


volumo2 pine 64

Volumio2 for Pine64


How to make the Pine-64 sound with little information


When I searched the net, it was mentioned that SPDIF works from Volumio2, but I didn't know how to connect it. But I didn't know how to connect it. And I found out that there is Euler port, as you know.

You may try to build it with reference to the drawing I made. I think you only need 1 resistor and 1 condenser. You can experiment with the value of the condenser. A beautiful hide pattern is output.
SPDIF output is coming out, so you can connect it to an external DAC. I've uploaded the video to youtube.
Although it is useful, but:) I was only able to use a USB DAC, so the use has increased considerably. The other I2S seems to be out too. The wave form is very beautiful.
Compared to Raspberry pi 3, I feel that the start up is faster. The sound has also changed. The waveform of I2S is coming out nicely, and it seems that the master clock is coming out too. I need to analyze it, but I like this board very much. If you have a good DAC, you need to try it.
The low power consumption is a good point. However, this operation is possible only with Volumi2 OS. After listening to the sound for a day, the sound is good, the sound is clear, the RaspberryPi 3 has no SPDIF, so you need to connect a HAT to it.
Although these operations are not possible, in the case of Pine64, SPDIF comes out of the main body as it is, so it is a very convenient thing. I think that the jitter is also small. Because the master clock has come out, it is possible to connect the IC of DAC as it is. Make a copy to Internal. Copy the copied mpd from ssh to /usr/bin/ from the command line, and you will be able to play the dop etc. smoothly. The sound also changes.
Now, you should get Music Player Daemon 0.20.6 with mpd -V.

.

About Pine64 :Music Server
1) The I2S signal is being output.
2) Master Clock.
3) It outputs SPDIF.
4) Dedicated OS is Volumio 2        
.
This allows you to get the sound of any I2S/DAC or SPDIF. It also has a built-in DAC.

At the same time, it is possible to adjust the level of the audio signal.

.
With the above thinking, you can get a clean waveform from SPDIF with normal output.

.
You can get the signal out of SPDIF. I2S is also available, so you should be able to use it normally.
Shematic Diagram of Pine64 <---Circuit Diagram

SPDIF out from Pine64 on 23rd APR 2019


Euler Bus

Euler Bus Assignment of Pine 64



Pine64 Music Server by 300B Single Ended Amplifier


alignment of Pine64

SPDIF /I2S out from Pine64 on 24th APR 2019 Of course the I2S DAC will work



6DJ8 DAC

6DJ8 SRPP 3 digital input(SPDIF) + 1 analog input

How to make the Pine-64 sound with little information


When I searched the net, it was mentioned that SPDIF works from Volumio2, but I didn't know how to connect it. But I didn't know how to connect it. And I found out that there is Euler port, as you know.

You may try to build it with reference to the drawing I made. I think you only need 1 resistor and 1 condenser. You can experiment with the value of the condenser. A beautiful hide pattern is output.
SPDIF output is coming out, so you can connect it to an external DAC. I've uploaded the video to youtube.
Although it is useful, but:) I was only able to use a USB DAC, so the use has increased considerably. The other I2S seems to be out too. The wave form is very beautiful.
Compared to Raspberry pi 3, I feel that the start up is faster. The sound has also changed. The waveform of I2S is coming out nicely, and it seems that the master clock is coming out too. I need to analyze it, but I like this board very much. If you have a good DAC, you need to try it.
The low power consumption is a good point. However, this operation is possible only with Volumi2 OS. After listening to the sound for a day, the sound is good, the sound is clear, the RaspberryPi 3 has no SPDIF, so you need to connect a HAT to it.
Although these operations are not possible, in the case of Pine64, SPDIF comes out of the main body as it is, so it is a very convenient thing. I think that the jitter is also small. Because the master clock has come out, it is possible to connect the IC of DAC as it is. Make a copy to Internal. Copy the copied mpd from ssh to /usr/bin/ from the command line, and you will be able to play the dop etc. smoothly. The sound also changes.
Now, you should get Music Player Daemon 0.20.6 with mpd -V.

.

About Pine64 :Music Server
1) The I2S signal is being output.
2) Master Clock.
3) It outputs SPDIF.
4) Dedicated OS is Volumio 2        
.
This allows you to get the sound of any I2S/DAC or SPDIF. It also has a built-in DAC.

At the same time, it is possible to adjust the level of the audio signal.

.
With the above thinking, you can get a clean waveform from SPDIF with normal output.

.
You can get the signal out of SPDIF. I2S is also available, so you should be able to use it normally.
Shematic Diagram of Pine64 <---Circuit Diagram

SPDIF out from Pine64 on 23rd APR 2019


Euler Bus

Euler Bus Assignment of Pine 64



Pine64 Music Server by 300B Single Ended Amplifier


alignment of Pine64

SPDIF /I2S out from Pine64 on 24th APR 2019 Of course the I2S DAC will work



6DJ8 DAC

6DJ8 SRPP 3 digital input(SPDIF) + 1 analog input

The above is a single board PC, 64-bit version, very similar to NanoPi-Neo2. The price is low, so it is useful. I got data from various sites.
Recent development: I'm installing ninja, meson and other necessary applications for mpd upgrade on Nanopi-Neo2. Anybody? I'd like to see a feature on this.
I can't compile ninja 0.15, so I can't move on. meson compiles fine, but I'd like someone with some knowledge to show me an example.
I can't compile MPD because I changed the installation method, did something go wrong with the previous method?
See ninja install here Ninja install It will take some time to compile. .
Before that I will bring the source files from git, but you need to install git before that. Please refer to Ninja Build-org for more information.
Download the source. You will need to install the necessary libraries first. In this case I used Dietpi Nanopi-Neo2 Arm8 as the OS.
I downloaded mpd 0.21.8 for mpd for now. I found that the compile could be installed as documented on the mpd.org site, but the
It takes a lot of time to compile the program. It takes a lot of time to install ninja, meson and others.
Installing /root/mpd-0.21.8/output/release/systemd/user/mpd.service to /usr/local/lib/systemd/user
Installing /root/mpd-0.21.8/mpd.svg to /usr/local/share/icons/hicolor/scalable/apps
Installing /root/mpd-0.21.8/AUTHORS to /usr/local/share/doc/mpd
Installing /root/mpd-0.21.8/COPYING to /usr/local/share/doc/mpd
Installing /root/mpd-0.21.8/NEWS to /usr/local/share/doc/mpd
Installing /root/mpd-0.21.8/README.md to /usr/local/share/doc/mpd
root@DietPi:~/mpd-0.21.8# mpd -V
Music Player Daemon 0.21.8 (0.21.8)
Copyright 2003-2007 Warren Dukes
Copyright 2008-2018 Max Kellermann
This is free software; see the source for copying conditions.
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

.
Database plugins:


Finally, we have mpd -0.21.8. meson downloads the source for 0.52. Compile and install it.
ninja 0.1.8. python-3.7.3. Most of the time you can compile the source from git.
It's very time consuming, at least. There is no writing during compilation, you just wait. When the compilation is finished, the installation is finished and there are no errors, the program is installed.
If you copy and drag the command from the introduced site, it may cause an error.

If you copy and drag the commands from the site, it may cause an error, i.e. it may be spelled incorrectly, so please check carefully before compiling.
It will take a while, but now you have compiled and installed it, all you have to do is to make it sound. 21stJune2019 compilation
1) Please refer to mpd.org to install the required libraries.
2) For 32bit OSs, this is the source code for 32bit.
2) In case of 32bit OS, the source code is for 32bit. I can install the program but it may not be recognized as a 32-bit source. In this case, you will see an error message.
3)
Reference Boost install ref
The links above are important.
4) Only the link is written here, so you can try it by yourself. You can always install it, if you install SKYMPC on your workstation you can check if MPD is working properly.
5) Installing Ninja.
6) Basically, the above site has all the information you need, so use good judgment and install it.
7) Choose 3.7 to install Python-3.6 Python install Others
Make sure that Boost is newer, and install Boost from lfsbook from the link above. I've confirmed that it won't compile without them.
7) See mpd install for most information.
8) Installing Ninja Ninja is a surefire way to compile it from source.
That's it. meson is used for compiling mpd. ninja is used to install mpd. You can't install mpd without it.
Use 0.47.2 or higher for meson. Otherwise, I get an error. You can see the error when you run it, but if you read the README carefully, the developer comments that using 0.47 or lower will cause an error.
The comments on the mpd org site also have a note of caution. You should install 0.50, meson is make instead of make and ninja is make install.
volumio2 rebuilds only mpd if you want to use the old application. I'm sure it will work. If you want to use USB DAC, you can use any version of volumio2.
these part translater site used by DeepL https://www.deepl.com/ja/translator





since 12nd Oct 2020 NanoPi-Neo2 Pi Music Server how to last up date 12nd Oct 2020

Single Ended Amplifier D.I.Y edited with BlueFish By JH1 DAS ex WB4ACI from Sakura Chiba Japan

How to build up Amplifier Single Ended Amplifier 2020