YH Archives - diyparadise https://diyparadise.com/w/tag/yh/ ... where we have more fun! ... Fri, 29 Mar 2013 11:34:32 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.9 YH’s Lazy Man Constant Current Source https://diyparadise.com/w/yhs-lazy-man-constant-current-source/ https://diyparadise.com/w/yhs-lazy-man-constant-current-source/#comments Thu, 12 Jun 2008 16:19:37 +0000 http://127.0.0.1/wordpress63/?p=245 YH’s Lazy Man Constant Current Source or YHLMCCS   Thanks to YH, here is another nice circuit tweak. Fancy building a constant current source but don’t like the large parts count? Actually it isn’t that bad as it mostly consist of 2 transistors, 1 resistor and 1 or 2 LED. Or some combination like that. But lazy folks like me still want it simpler… “If necessity is the mother of invention, laziness is the father of innovation.” —YH That’s right! So how about a CCS that uses only 2 parts? Inspiration came from National Semiconductor’s datasheet for this ubiquitous regulator…

The post YH’s Lazy Man Constant Current Source appeared first on diyparadise.

]]>
YH’s Lazy Man Constant Current Source

or YHLMCCS

 


Thanks to YH, here is another nice circuit tweak.


Fancy building a constant current source but don’t like the large parts count? Actually it isn’t that bad as it mostly consist of 2 transistors, 1 resistor and 1 or 2 LED. Or some combination like that. But lazy folks like me still want it simpler…


“If necessity is the mother of invention, laziness is the father of innovation.” —YH


That’s right! So how about a CCS that uses only 2 parts? Inspiration came from National Semiconductor’s datasheet for this ubiquitous regulator… LM317. Do a goole on this datasheet.


Recipe

Very simple! Just one LM317 and a resistor to set the current. No matter what you do, the LM317 will always have ~1.25V between Adj pin and Vout pin. We can take advantage of this feature!



So, if we want 80mA, like for the excellent Simple EL84, then all we need to do is solder a 15ohm resistor (R1 above) between Adj and Vout pin. 1.25V/15ohm = ~80mA. Then use Vin as input and Adj pin as output, hence your 2-terminal YHLMCCS. Voila!


Thanks to YH, the YHLMCCS works great in the Simple EL84! But be careful with your implementation if you want to use it in higher voltage environments. The LM317 doesn’t like more than 40V between Vin and Vout pins. You have been warned.

 





diyparadise.com






The post YH’s Lazy Man Constant Current Source appeared first on diyparadise.

]]>
https://diyparadise.com/w/yhs-lazy-man-constant-current-source/feed/ 1
Non-Oversampling DAC Project https://diyparadise.com/w/non-oversampling-dac-project/ https://diyparadise.com/w/non-oversampling-dac-project/#respond Sun, 08 Jun 2008 19:44:38 +0000 http://127.0.0.1/wordpress63/?p=65 What is the easiest, cheapest way of trying out non-oversampling? Non-Oversampling DAC project       What is the easiest, cheapest way of trying out non-oversampling? If you can trace the I2S signal in your CD player, tap it, fit in a TDA1541 (and attendent signal gain circuitry), then you have it! You save a chassis, an interconnect cable and have the shortest signal path. What more can you ask for? Furthermore, it saves you lots of unnecessary circuitry in between. Imagine, I2S gets converted to SPDIF, then converted back to I2S… Why go through all this trouble? Why not

The post Non-Oversampling DAC Project appeared first on diyparadise.

]]>
What is the easiest, cheapest way of trying out non-oversampling?

Non-Oversampling DAC project

 

 



 


What is the easiest, cheapest way of trying out non-oversampling?


If you can trace the I2S signal in your CD player, tap it, fit in a TDA1541 (and attendent signal gain circuitry), then you have it!


You save a chassis, an interconnect cable and have the shortest signal path. What more can you ask for? Furthermore, it saves you lots of unnecessary circuitry in between. Imagine, I2S gets converted to SPDIF, then converted back to I2S… Why go through all this trouble? Why not just tap the I2S straight off? You save an expensive CS8412, you save a lot of unneccessary headache.


With the Marantz CD63 service manual, I think I have found the I2S signal.



If I’m not mistaken, signals WCLK, SCLK and DATA constitute the I2S format.

Wiring to a TDA1541 is easy and it’s only these 3 signals. However, due to the sin(x)/x filter, many builders of the non-oversamping DAC hear a marked loss of high frequency energy. Reason being, the DAC starts to roll off at 10kHz and at 20kHz, it’s already down 3dB. Hardly great stuffs huh? It’s even worse on my Hammer Dynamics as the treble is already laidback, putting down another 3dB isn’t pretty…

To get back the 3dB lost at 20kHz, a simple LC resonant filter will do. Thorsten Loesch has pointed the way in using the TDA1543. With YH’s help, I have adapted one for the 1541.


The circuit on the left is Thorsten’s for TDA1543. The right is my adaptation for TDA1541. The simulation has 2 traces. The top trace is the frequency response. Note that it gradually rises and reaches a peak of about 3dB at ~20kHz. Phase shift is about 10 degrees at 20kHz.

 


This is even better! (Thanks YH!) A notch filter is added to filter out the 44.1kHz CD sampling frequency. The wild swing on the phase plot is expected, courtesy of the notch filter. The 2 inductors in the circuit can be hand wound, then adjusted (add/reduce windings/ferrite) until “right”.

Do realize that the above is all just circuit simulation. When you build this circuit with real world components, all hell breaks loose. Stray inductance and stray capacitance will make their prescence felt. Imperfect components (is there any perfect component?) will make matters worse. Oh well, live with it…

Anyhow, you need to add a gain stage to amplify this signal. The output is only ~20mV at the node between the 100uF capacitor and 100kohm resistor, so a gain of 100x is needed to reach full output of 2V. Fill in your choice of gain stage, op amp or tubes. You can, of course, add another stage of RC filtering after your gain stage to reduce any output after 20kHz. The choice is yours.


That’s all to it! Again, there’s nothing new here. Stole some ideas here and there, and got the above. Thanks to buddy YH for his ideas.


Simulation was performed using Linear Technology’s excellent SwitcherCAD.


Are you ready to build one? I just did the above with a TDA1543. A non-oversampling DAC for < RM20.

 

 





diyparadise.com




The post Non-Oversampling DAC Project appeared first on diyparadise.

]]>
https://diyparadise.com/w/non-oversampling-dac-project/feed/ 0
Dare to compare! https://diyparadise.com/w/dare-to-compare/ https://diyparadise.com/w/dare-to-compare/#respond Sun, 08 Jun 2008 19:31:39 +0000 http://127.0.0.1/wordpress63/?p=63 Ever wonder how your favourite capacitor stack up against the competition? Dare to compare!   Sure you must have read all those glowing reports about this component, that cap blah blah blah. Ever wonder how true are those claims? Ever wonder whether it’s really worth paying all the $$ for these “wonder” parts? Have no fret! As DIY Paradise just completed a simple shootout between electrolytic capacitors. The target here is in the use in power supply decoupling. Test circuit as below. Pulse drives the base of the 2N3904 transistor and 2 points are monitored. The blue bubble labeled “scope

The post Dare to compare! appeared first on diyparadise.

]]>
Ever wonder how your favourite capacitor stack up against the competition?

Dare to compare!

 


Sure you must have read all those glowing reports
about this component, that cap blah blah blah. Ever wonder how true are those
claims? Ever wonder whether it’s really worth paying all the $$ for these
“wonder” parts?


Have no fret! As DIY Paradise just completed a
simple shootout between electrolytic capacitors. The target here is in the use
in power supply decoupling. Test circuit as below. Pulse drives the base of the
2N3904 transistor and 2 points are monitored. The blue bubble labeled
“scope green trace” and the red bubble labeled “scope yellow
trace”. If an ideal capacitor exists, then the capacitor under test will
not show any ripple at all due to transistor switching on and off.

Credit for test circuit goes to YH and Thomas.


Test setup is a pain. At such high frequencies, even a few mm lead length will throw the whole thing off! I actually did this test twice. First time was done “on air”, I just soldered the transistors to the caps. Results were very inconsistent, and not repeatable as well. Something must be wrong. Reason being the lead length of the caps were different and they were quite “far” from the transistor. How “far”? A few mm off! I revisited the setup. This time, using a breadboard. The caps and transistor were soldered on the board. I trimmed off the leads of the caps and pushed them down on the board, so that they sit snugly. I’m sure the lead lengths (and distance between cap to transistor) are equal this way. To change caps, I have to desolder them off. As you can see, it’s really a pain going through all this.

And the results! If you are too lazy (or impatient) to look at these plots, go to summary page.

1MHz pulse

 

 

Generic “Max” electrolytic. 470uF 16V.
Ripple of 81mV is measured.

 

Elna Starget, 470uF 16V. Ripple 67mV.

 

Elna Cerafine, 470uF 25V. 26mV.

 

Black Gates, 220uF 16V. 63mV.

 

Sanyo Oscon. 180uF 20V. 25mV.

 

Sanyo Oscon. 270uF 16V. 27mV.

 

Sanyo Oscon. 470uF 10V. 26mV.

 

Next page with 15MHz pulse.


 

Dare to compare Part 2!

 

15MHz pulse

Generic “Max” electrolytic. 470uF 16V.
Ripple of 98mV is measured.

 

Elna Starget, 470uF 16V. Ripple 90mV.

 

Elna Cerafine, 470uF 25V. 20mV.

 

Black Gates, 220uF 16V. 96mV.

 

Sanyo Oscon. 180uF 20V. 90mV.

 

Sanyo Oscon. 270uF 16V. 20mV.

 

Sanyo Oscon. 470uF 10V. 19mV.

 

Whoa! What does this tell you?

 

Some comments from YH:

The square waves show spikes with some caps and no spikes with others. The ones with no spikes are to be much preferred. This means the BG can be considered non-audiophile approved for decoupling.

For spikes, you hv to look at the spectrum analysis of the output sq waves with the caps. The ones with least noise is best. I believe you can easily switch to spec analy mode on the scope.

 

Some comments from vt4c:

Perhaps the Black Gates need longer break-in?

 

Some comments from Thorsten Loesch:

I’d note that all the premium capacitors show a notably lower noise level (including even the Starget which really are no good above around 100KHz and are designed and made for low audio range distortion) than “generic” ones. Even the BG and worse looking Os-Cons show at 1MHz only the initial inductive spike but an overall much lower noise level. As ANY of these capacitors require further bypassing in high speed applications, using the right ceramic bypass would eliminate the spike. In addition, the 15MHz curves would look much cleaner, 15MHz is really crapshooting in the dark with electrlytics.

 

What I would say is that, it’s EXTREMELY difficult to redo this test after breaking-in each cap for say, 300 hours. It’ll take more than a month! That said, you can see why some caps are great in digital circuits and some are just crap.

To do better, for the technically inclined (and those great with the soldering iron), Thorsten has this to suggest:

> > It would be interesting if you could test equally a

> “tripplet” consisting > 1pcs 10nF 0805 X7R SMD Capacitor,

> 1pcs 100nF 0805 Z5U/Y5U SMD Capacitor > a SH Series Os-Con

> 10uF/6.3V (with 5V supply) plus a further 1,000uF

> > Panasonic FC capacitor.

>

> i don’t have these capacitors.

Then MAYBE you should get some. The SMD ceramic Cap’s are DIRT CHEAP (strip >of 100pcs for a buck or two), the Sanyo Os Con and Panasonic FC are pretty generic parts too with generic industrial prices.

I mention this arrangement as if you test it you will find the noise much lower even at much higher test frequencies than any of those capacitors you tested.

As you seem to modify and build a lot of Digital gear I’d just like to note that strategically placement of suchlike SMD Cap combos plus the Os-Con give a PSU node impedance that is almost non-reactive at the driven node point (sadly IC lead inductance somewhat spoils the very good effect) around 0.5 Ohm up to 30MHz (towards DC it’s a question of how good your regulator is) and remains below 1 Ohm until way above 100MHz. The result is considerably better sonically AND in measurement than the sum of the parts and by far ahead of just fitting some fancy “boutique” capacitors.

 

More goodies suggested by YH:

3-terminal feedthru caps from Murata…

 

OK. Why the hell am I taking the trouble doing all this? It’s meant to show you that, next time before you spend your big $$ on stuffs, know what you are buying. There’s a marked difference between the capacitors above. The test was done at “clock frequencies”, thus the best capacitor suited for such function is the Sanyo Oscon. You can definitely do better by following what Thorsten and YH suggested but pay particular attention to your layout, otherwise it’s all moot.

For DIYers, if you build a clock circuit and it doesn’t sound good, refrain from blaming the circuit. An oscilloscope tells the best story (of course, not everyone can afford them) but the plots shown here is a guide.

Next time I see some digital circuitry with generic caps, I’ll duck! : )

 

The post Dare to compare! appeared first on diyparadise.

]]>
https://diyparadise.com/w/dare-to-compare/feed/ 0