The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-11-2006, 06:32 AM   #586
Newbie
 
Join Date: Aug 2006
Posts: 38
The only chip you have to program is the PIC. The program is vritten by ( the original source is from the froum ) me in mikropascal. It fits in the 2k size demo limit of compiler.

All you have to do is to solder the other ics

The 18 bit comes from the chip ( I don't think it can be modificated ).
The khz can be set with the Master Clock ( 12.288 Mhz = 48 khz ). I only could get this cristal . It can be set 32-49 khz on CS5330, but the cs8406 supporst 256x and 512x fosc settings not 386x. If you read the dataseheet of 5330 you will see that how can you set the Master Clock, and fosc ( also set it on 8406 ).

And the source of PIC

Regards

András
Attached Files
File Type: txt TunerListCdc.txt (9.2 KB, 247 views)
Foldesa is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-11-2006, 08:53 AM   #587
Newbie
 
Join Date: Mar 2006
Posts: 23
On a related note, anybody knows which bit/sample rates of SPDIF the head unit accepts ?
FroMage is offline   Reply With Quote
Old 08-14-2006, 10:59 AM   #588
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
SPDIF encoding solutions

For those who have a CarPC but no SPDIF output, I found this solution based on similar chips but converting USB to SPDIF, so that's another "no-analog" solution.
Of course, as Foldesa mentioned above, you have to solder these beasts and as they are surface-mount, you'd better have advanced soldering skills - not my case :-)
Just my 2 cents

Last edited by Vicne; 08-14-2006 at 11:34 AM.
Vicne is offline   Reply With Quote
Old 08-15-2006, 07:43 AM   #589
Newbie
 
Join Date: Aug 2006
Posts: 38
Quote: Originally Posted by FroMage View Post
On a related note, anybody knows which bit/sample rates of SPDIF the head unit accepts ?

According to the datasheet of the head unit's main chip the acceptable sample rates are 32, 44.1, 48, 96 khz, but I'm not sure.

I have made a few changes on my desing. The digital and analog parts are separated. And it is easyer to understand now.

The Digital part contains the power suply and the clock generation. The 3 pin connectors are jumpers, so this way every setting of cs8406 can be easily changed.

The 2 other schematics are the analog-digital converters. The analog-1 is CS5330 or CS5331 ( they are pin compatible ). This is 18 bit.

The analog-2 is better, but more complicated. You can use here CS5361 or CS5381, they are also pin compatible. This conncection can go up to 192 khz, but the head unit may not accept a high resolution like this. This connection is 24 bits instead of 18 bits, so it has better sound quality.
Attached Files
File Type: zip Digital.zip (88.0 KB, 187 views)
File Type: zip Analog-1.zip (51.8 KB, 145 views)
File Type: zip Analog-2.zip (77.5 KB, 125 views)
Foldesa is offline   Reply With Quote
Old 08-15-2006, 09:19 AM   #590
Newbie
 
Join Date: Aug 2006
Posts: 7
Hello.

Thank you all guys, but all this info is way too much for a normal non-electro technician user, so here is my question:

Could anybody post an easy to read and understand scheme, so anybody who has a basic electro knowledge could sold it together and connect a MP3 player to the CD IN on the head unit?

I know some newer head units have the AUX IN on them, but some of us don't have that luck.

I know you can find the adapter for it online, but with the price of over 100 Euros is way too expensive - you could rather buy a new head unit for the price
cupax is offline   Reply With Quote
Old 08-16-2006, 06:17 AM   #591
Newbie
 
Join Date: Mar 2006
Posts: 23
Hi,

Aside from the jumpers, what changed in the new schematics and why are they better ? Also why do you use two preamps for the Analog-2 design ?
Did you test your design ?
We are very interested in this, but since electronics is not our field, we're a bit afraid of frying the head unit (or the ipod)
FroMage is offline   Reply With Quote
Old 08-16-2006, 06:53 AM   #592
Newbie
 
Join Date: Aug 2006
Posts: 38
Quote: Originally Posted by FroMage View Post
Hi,

Aside from the jumpers, what changed in the new schematics and why are they better ? Also why do you use two preamps for the Analog-2 design ?
Did you test your design ?
We are very interested in this, but since electronics is not our field, we're a bit afraid of frying the head unit (or the ipod)


The changes mostly effect the power suply. It is improved to have better realitility.

The second analog alternative needs 2 op.amps, because the analog input ground also needs to be connected to the op.amp. I don't see the reason why, but the datasheet says so.

I didn't have the time to test them. I'm currently working on that.

It is impossible to fry the the head unit, becsuse if the CS8406 doesen't get the master clock or the data itself the output is connected to the ground. It also has a transformer, witch makes it even safer and reduces ground noises.
Tha analog input ( example Ipod ) also can not be fryed. The capacitor ( 6.8 uF ) gives some protection, and the op. amp shouldn't allow any chargebacks.

I found another desing on the net witch is a wireless audio transmitter. It uses cs5330 for AD and another CS ic to make it back to analog. It doesen't have op amp before the cs5330. I want to test this desing also. Maybe today

But there is a mutch simpler way to connect analog source to hu. I'v tried it and it works, but I don't think anybody should use it. In this case you have to connect the analog input directly to the HU's main chip's analog input pins. If you do this then the analog input will work even in radio or casette mode, and I don't know how it will effect the lifetime of the HU.

A
Foldesa is offline   Reply With Quote
Old 08-16-2006, 09:37 AM   #593
Newbie
 
Join Date: Mar 2006
Posts: 23
OK thanks, that sounds great. Let us know how that works out.
I think I'll stick on the 18bit design, since it seems the connects2 uses that too.
Is there a reason why you use the TLC27L2 on this one instead of the TLC272 on the first design and the Analog-2 ?
FroMage is offline   Reply With Quote
Old 08-16-2006, 10:37 AM   #594
Newbie
 
Join Date: Aug 2006
Posts: 38
No special reason for TLC27L2.
I only found this in the schematics libary. But I think any op.amp would do fine instead of TLC272.
Foldesa is offline   Reply With Quote
Old 08-16-2006, 01:44 PM   #595
Newbie
 
Join Date: Aug 2006
Posts: 38
Finally after a few month of design and a few unsuccesfull prototipes I have DONE it !!!!
The analog is now in SPDIF format !!!
The prototipe I've build today WORKS !!!
I'm so happy about it.

Aldough it has a few bugs too.
It's quality is like an old casette tape. It is very noisey. And only one channel works. I don't understand the problem yet, but I will solve it. My oppinion is thet the problems are mostly from using ceramic capacitors insted of mylar.

Here is the picture of the board.

A
Attached Images
 
Foldesa is offline   Reply With Quote
Old 08-16-2006, 02:22 PM   #596
Newbie
 
Join Date: Mar 2006
Posts: 23
Terrific! Now let's hope you manage to get good sound too.
I see you use the headphone output of the ipod instead of the line output from the dock, perhaps the signal is too high for the preamp ?
FroMage is offline   Reply With Quote
Old 08-16-2006, 02:27 PM   #597
Newbie
 
Join Date: Aug 2006
Posts: 38
Sorry, but I don't have a dock connector.
And this prototipe doesen't have op.amp

I will try it with the op.amp too
Foldesa is offline   Reply With Quote
Old 08-17-2006, 04:34 AM   #598
Newbie
 
Join Date: Aug 2006
Posts: 38
I've attached the pcb printout just in case someone wants to experiment also. It is now almost noiseless, but only the left or right channel works. To make it work you have to short circuit the other channel's pin of cs5330 to the ground . The Cs5331 wont work in this connection, because it has different output data format. If you want to use cs5331 you have to disconnect pin 5 of cs8406 from ground and connect it to 5 volt.

This connection doesen't have op amp, but the connector on the bottom makes it possible to connect it. The 4 pads on the upper right represents the transformer, and the wide lines are the spdif output.

I wont be reachable for 1 week, and I can't test during this period.
Attached Images
 
Attached Files
File Type: txt Part List.txt (214 Bytes, 124 views)

Last edited by Foldesa; 08-17-2006 at 04:54 AM.
Foldesa is offline   Reply With Quote
Old 08-17-2006, 05:32 AM   #599
Newbie
 
Join Date: Mar 2006
Posts: 23
This is annoying, only one channel... Perhaps with an oscilloscope you can check the data sent by the 5330, at least the docs say what it should look like, whereas I'm not sure what the SPDIF signal should look like. What do you plug the SPDIF output into to test it ? If it's a computer there should be a way of figuring what type of signal is output. In particular I didn't find in the docs of the 8406 where you specify whether the stream is 2 or 4 channels. Perhaps it's outputting in 4 channels ?
FroMage is offline   Reply With Quote
Old 08-17-2006, 06:02 AM   #600
Newbie
 
Join Date: Aug 2006
Posts: 38
I plug the SPDIF output to a home cinema amplifier not a computer.
I will test the circuit with different op.amps to see if they work out.
I'll inform you, but you have to wait at least 1 week for this.
Foldesa is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -5. The time now is 04:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics