Jump to content

Stefan Huus Gregersen

Members
  • Posts

    16
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Stefan Huus Gregersen reacted to chewing gum in Orange Pi Zero I2S   
    Solved access to PA20 , I2S bus 0 pin for ver1.14.  Find U58 near antenna connector, open  pin 3 connection (Enable pin for Wlan). On the pad remain PA20 , DataOUT  for the I2S DAC. 
    Connect IC U58 pin 3 to any 3.3Vcc. The Wlan will be powered continuously and DAC will be up and running. 
     

  2. Like
    Stefan Huus Gregersen got a reaction from leonidy-85 in Orange Pi Zero I2S   
    Good job mate! Now it is just about finding out where things are connected, it sadly requires a multimeter next step.
    Above R157 there is a resistor called R40, to find out which leg we'll use as data out for the DAC you'll have to measure which pad of the two resistors have a connection, as seen on the USB plug R40 puts R157 to 3.3v. When you know which pad is 3.3v please inform me and next step would be to remove R157 and solder a wire to it so you can connect it to your DAC.. Man i wish i had a newer board so i could try it out..

  3. Like
    Stefan Huus Gregersen got a reaction from leonidy-85 in Orange Pi Zero I2S   
    Hello folks,
     
    Been working on making I2S dacs work on the Orange Pi Zero, after reading on a few pages i got crazy and almost gave up and then i did some playaround and managed to make it work! And this is how i did!
    I am using examples from the topic here, as it was well written until i had to figure things out myself because of that stupid wifi_enable on PA20 which also is the data out on the OPI zero
    Thread: https://forum.armbian.com/topic/759-i2s-on-orange-pi-h3/


    First up it requires a bit of soldering, removing the R69 and adding a small wire is required to access the DIN(data in) or so called PA20. What i did was just simply adding a header so i can just connect it there as shown

     
    After you have added the resistor it is time to wire up the device.  For my example im using the PCM5102 board as example. You can buy it really cheap on Aliexpress and ebay!


    Afterwards it is time to configure the device. Start by entering the script file
    cd /boot sudo bin2fex script.bin script.fex sudo nano script.fex Then we'll have to change the following
     
    [twi1] twi_used = 1 to
     
    [twi1] twi_used = 0 and 
    [pcm0] daudio_used = 0 to 
    [pcm0] daudio_used = 1 Then the part that i have discovered 
    Because of the PA20 is used to enable the wifi it would not work with the sound card unless you change the PA20 to another pin so now we'll have to do the following
    Find the following and change it:
    [smc_para] smc_used = smc_rst = port:PA09<2><default><default><default> smc_vppen = port:PA20<3><default><default><default> Change it to
    smc_vppen = port:PA02<3><default><default><default> Find 
     
    [module_para] module_power0 = port:PA20<1><default><default><0> Change it to 
     
    [module_para] module_power0 = port:PA02<1><default><default><0> Then there is another SMC_Para hidden, the only difference is that it is SMC_USED = 0 where the other is SMC_used = 
     
    [smc_para] smc_used = 0 smc_rst = port:PA09<2><default><default><default> smc_vppen = port:PA20<3><default><default><default> And to
     
    [smc_para] smc_used = 0 smc_rst = port:PA09<2><default><default><default> smc_vppen = port:PA02<3><default><default><default>

    That should be it! Save your file and run the last command needed!
    sudo fex2bin script.fex script.bin You can test the audio by using the following command
    speaker-test -twav -c2 -Dhw:1 I am still working on figuring out how to change the default audio device to the I2S. I am a noob in Linux, i am more a hardware man than a software man
    I hope you guys manage to make it work! 
     
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines