LM3886 5.1 build

how different is STA310 compared to CS493292.

there are a lot of vendors selling CS493292 based board in my country, I am pretty sure most of them are from Aliexpress unless someone is writing code for it localy.

all the best for the project and keep sharing the progress - this is great stufff
 
how different is STA310 compared to CS493292.

there are a lot of vendors selling CS493292 based board in my country, I am pretty sure most of them are from Aliexpress unless someone is writing code for it localy.

all the best for the project and keep sharing the progress - this is great stufff

I'm not sure.. That CS chip seems like it has a similar function, but it doesn't look like it has the SPDIF decoder built in. So might be harder to work with. It also says it supports 8 channels, but the connection diagrams just show six. So not sure what the other two other, maybe some pro logic downmix? The STA310 I can get on eBay here for about $5/chip.. The CS one seems more like $20 here. So I'm not sure.
 
I'm not sure.. That CS chip seems like it has a similar function, but it doesn't look like it has the SPDIF decoder built in. So might be harder to work with. It also says it supports 8 channels, but the connection diagrams just show six. So not sure what the other two other, maybe some pro logic downmix? The STA310 I can get on eBay here for about $5/chip.. The CS one seems more like $20 here. So I'm not sure.
Hi Duane,

Thanks for clearing it up for me, So STA310 will take a SPDIF in with 5.1 and decode it I2S out and then we could use 3 stereo DAC or probably a Single Dac with 6 channel out..

I think there is a TI has chips which have dac inbuilt ( TAS5765M its sort of old now but I am using a RPI Hat with this chip - 24bit / 192Khz and 30watts into 8ohms )

i shared the above in case it helps.
 
Hi Duane,

Thanks for clearing it up for me, So STA310 will take a SPDIF in with 5.1 and decode it I2S out and then we could use 3 stereo DAC or probably a Single Dac with 6 channel out..

I think there is a TI has chips which have dac inbuilt ( TAS5765M its sort of old now but I am using a RPI Hat with this chip - 24bit / 192Khz and 30watts into 8ohms )

i shared the above in case it helps.

I'm certainly no expert, but yes, with the STA310 you can take a SPDIF input that's either two channel PCM or compressed six channel (DTS or Dolby) and decode it into 3 I2S (digital audio channels). I'm using a 6 channel DAC (actually I'm going to use an 8 channel one, just in case some day I figure out how to decode 8 channel HDMI), but yes, that's it!
 
  • Like
Reactions: aditya
I'm certainly no expert, but yes, with the STA310 you can take a SPDIF input that's either two channel PCM or compressed six channel (DTS or Dolby) and decode it into 3 I2S (digital audio channels). I'm using a 6 channel DAC (actually I'm going to use an 8 channel one, just in case some day I figure out how to decode 8 channel HDMI), but yes, that's it!
this is a great project and wish you all the best. If you share when complete, I would love to try it.
 
Seems like lots of people in the same boat. When this is done maybe I’ll do a board with a small STM chip on it so people can use it without having to mess around. Ie plug it in and go.
Good Graphical LCD, let me share a video of the kit available in INDIA ( mostly re marketed from AliExpress )

5.1 Kit for around $80 there are many such kits available but most of them are based on the CS chip.

i would only request adding a linkplay I2s soucre be added so Airplay would be possible. something like Linkplay A31.
it outputs i2s 16bit 44.1khz,

I have been using one for Airplay and connected a simple Dac - ES9023 with a 50Mhz Oscilator to the MCLK pin of the dac. Since we do not get MCLK from the Linkplay A31 module.

I also had to change the Firmware on the Linkplay A28 ( same code as A31 ) module to make it master but that is available online and is very easy - USB to Serial convertor and a uploader tool and a app on the phone - this all i figured out and also PSmith on the forum helped quite a bit.
 
5.1 Kit for around $80 there are many such kits available but most of them are based on the CS chip.
I've previously seen a lot of these "kits" (mainly from TN/Kerala people), but I honestly believe that there's no need for a GLCD in an audio decoder. You could simply light up LEDs that indicate DTS, AC3 etc. and save a lot of money. Besides, such people wouldn't provide any guarantee or service if something goes wrong. You could simply get an old branded AVR for similar money (12k INR specified in the comments below).

Thank you buddy but i cant code - i can do a pcb layout, Solder SMD and hunt parts but that's about it.
Even if someone shares the code, you would still need to have the programmer (dongle) to get the code (HEX file) into the micro-controller. Also, your hardware needs to be exactly as theirs for the code to work correctly. Embedded code is not very flexible like computer software, instead it's just married to the hardware it supposed to run on, in most cases.

If you can't code, it maybe best to obtain a second-hand piece. The following is an online store for such deals (Bangalore).

https://htstore.in/index.php?route=product/category&path=24&sort=p.price&order=ASC

Onkyo decoder for 10k, remote and all: https://htstore.in/onkyo-DRL50
 
Last edited:
I've previously seen a lot of these "kits" (mainly from TN/Kerala people), but I honestly believe that there's no need for a GLCD in an audio decoder. You could simply light up LEDs that indicate DTS, AC3 etc. and save a lot of money. Besides, such people wouldn't provide any guarantee or service if something goes wrong. You could simply get an old branded AVR for similar money (12k INR specified in the comments below).


Even if someone shares the code, you would still need to have the programmer (dongle) to get the code (HEX file) into the micro-controller. Also, your hardware needs to be exactly as theirs for the code to work correctly. Embedded code is not very flexible like computer software, instead it's just married to the hardware it supposed to run on, in most cases.

If you can't code, it maybe best to obtain a second-hand piece. The following is an online store for such deals (Bangalore).

https://htstore.in/index.php?route=product/category&path=24&sort=p.price&order=ASC

Onkyo decoder for 10k, remote and all: https://htstore.in/onkyo-DRL50
I am comfortable with burning firmware and getting programming dongles.

I Very well understand that if I am using a pre written code(Hex or bin) it will only work on that processor and that particular I/o pin assignment. Ie micrcontroller - stm or avr etc

Unless like for how it is in RPI I can change the config file can be changed for location of IR receiver or Rotarty Encoder.

Been playing with Kodi and Moode.

I have not bought these AliExpress kits probably never will.

Happy with buying the Dolby Atmos headphones License from Microsoft store.

Have successfully built a pga board based on an existing code but since I have the main code file I did minor modds for my preference and uploaded the firmware. Using PGA with MyRef Rev A LM3886 and using it.
 
I finished the last two channels tonight. All five LM3886 channels are working and sound great with an RCA input. I'm moving onto the digital logic and the Dolby decoding shortly.
 

Attachments

  • IMG_2941.jpeg
    IMG_2941.jpeg
    376.8 KB · Views: 114
  • Like
Reactions: aditya and Vavilen
Dear aditya,

If you do everything correctly, the STA310 chip works just as advertised and there're many people (including myself) who got it to work. The real problem is getting the chip itself.

Spent the last few days assembling some new digital boards. I made my first attempt to communicate with the STA310 chip this morning. It wouldn't response to any address, and I finally realized I had it in perpetual reset since I didn't raise the reset GPIO I took to my microprocessor. After that it responsed, and I can confirm it's Cut 2.0 of the chip. I don't have it hooked up to SPDIF yet, but I did do all the configuration and activated the clocks at least on the STA310. I can confirm on the oscilloscope that the three clocks are running properly, and the actual data is all zeros, as expected, since I haven't turned the decoder on yet. So making progress.
 

Attachments

  • IMG_3171.jpeg
    IMG_3171.jpeg
    698.3 KB · Views: 97
  • Like
Reactions: aditya and Vavilen
I don't have it hooked up to SPDIF yet, but I did do all the configuration and activated the clocks at least on the STA310. I can confirm on the oscilloscope that the three clocks are running properly, and the actual data is all zeros, as expected, since I haven't turned the decoder on yet.
You can check functionality without the S/PDIF by using the beep tone & pink noise generators on chip.
 
You can check functionality without the S/PDIF by using the beep tone & pink noise generators on chip.

I don't have a DAC built yet haha.. But I have been inspecting the signals for the I2S.

What's weird is the L/R word clock is always 32kHz.. I can't understand why.. The bit clock is 2.0 Mhz, and the SCLK is 12.288 Mhz. Which seems right if the sampling frequency is 32kHz. I am using some cheap HDMI to SPDIF converter, I wonder if internally it's downsampling or something? But it seems to be decoding the TV signal. When I change formats that interrupt fires and I do a reset.

A couple questions for you:

1) What do you do during the format change/ Just do the soft reset, unmuted, then play again? Or any other configuration?
2) Any way to detect DTS vs AC3? No matter what I'm watching on Netflix, it always seems to show up as AC3 when I set a breakpoint. It seems to be decoding it, but I can't tell at all if there's any change when the format is DTS in terms of registers. I purposefully put on Top Gun: Maverick which has a DTS soundtrack, and the STA310 seems to be decoding it, but it just internally looks like AC3.