Yes I am asking a lot of my desired circuit. I always try to do that in engineering, to push the boundries, not just accept them. Sometimes I fail, but sometimes not. Dropping to 8v p/p from 24v p/p will reduce my audio's headroom by about 10 dB, and would therefore increase the noise floor by 10dB. So for better or worse, the design requirement is to handle a 24v p/p signal.
I could easily scale the input to this detector by 1/3 and restore it later, but that would make my noise floor of the peak detector (which just met -35dB) that much worse also. If the PCB version can do better than that I'll take it.
I think the better choice for my application is to go with the circuit in post 56(?) which does the job but not much more. (Of course that extra op amp is going to be used elsewhere so it won't be a noise generator.) I can make do with the parts already on hand, and will not need to acquire any unique comparator chip in single quantities.
I want to thank you all for your help, spec, audioguru, MikeMI, bountyhunter...did I miss somebody?
Maybe somebody else will read this some day, learn something and make an even better circuit.
I'm sure I'll be back with another challenge.
....maybe that capacitor testing oddity I've been seeing lately?
Thanks, but I am not looking to acquire any data books. I only mentioned that I have 3 because at one point in my life I had a book shelf full and decided to throw them all away. I only kept the few that I have now because they were the ones I thought worth keeping (as mentioned above). The TI hardback has a sentimental value attached to it as it was a gift to me from my fatherHi Mike:
Quite a few of the old National Semi data books are available here:
https://archive.org/search.php?query=creator:"National Semiconductor"
spec
I know how it is about books Mike. I had half a small room full at one time. The handy thing about ebooks is that they don't take up any space in your house, even if they do on your HDD.Thanks, but I am not looking to acquire any data books. I only mentioned that I have 3 because at one point in my life I had a book shelf full and decided to throw them all away. I only kept the few that I have now because they were the ones I thought worth keeping (as mentioned above). The TI hardback has a sentimental value attached to it as it was a gift to me from my father
What do you mean?Now back to your regularly scheduled program...
There was only one of those.We need a Bob Pease on our forum...
The circuit in 56 does not do the job of a peak detector. The output of the op amp has probably 5 - 10 mA available to charge the 33 uF cap, which means the fastest rise time it can "track" is about 0.3 V/millisecond which is very slow (probably 100X too slow for audio). Anything faster and it just waves as it goes by. To be a peak detector, that cap needs to be a lot smaller (I would recommend maybe 0.22uF CER) The circuit as shown in 56 is so slow it is more of an averaging meter than peak reading. It will read peak value only if the signal is there long enough to let the cap charge up fully which for a 20V signal would be about 70 ms.Yes I am asking a lot of my desired circuit. I always try to do that in engineering, to push the boundries, not just accept them. Sometimes I fail, but sometimes not. Dropping to 8v p/p from 24v p/p will reduce my audio's headroom by about 10 dB, and would therefore increase the noise floor by 10dB. So for better or worse, the design requirement is to handle a 24v p/p signal.
I could easily scale the input to this detector by 1/3 and restore it later, but that would make my noise floor of the peak detector (which just met -35dB) that much worse also. If the PCB version can do better than that I'll take it.
I think the better choice for my application is to go with the circuit in post 56(?) which does the job but not much more.
If you want a cheap precision rectifier/peak detector that works well, this is one I did about 40 years ago that still works pretty well. Fast enough for audio work, all parts are cheap. Does require dual supply unlike the other one shown before.
I just built a small weather station, which includes wind speed. In my area, wind is very gusty. It is normal on a spring afternoon for the wind to gust between 5 and 35 km/hr within a few seconds. Try reading that with a digital display! Even with a bar-graph can be dizzying. But an analog meter does the job just right.Analog meters are very useful.
.
Bounty Hunter: Hmm. I think you may be right. I didn't give it a thorough workout on fast transients. I was concerned about the charge rate and drew up an idea with a booster transistor. I should have continued on and tried it to see how that would go, but it seemed fast enough (in terms of 20KHz response, not transients which I failed to test because I just wanted to get this design over with).
I did try a different circuit similar to the one you showed, with a 2nd op amp in the feedback path. The article I got it from warned of the possibility of instability. I tried it and it didn't seem to work so well - a bit of oscillation and serious high-frequency roll off - most likely because I wasn't using the best op amp for the job.
I certainly understand the concern about slew rate and detecting transient signals, but I was thinking that would be impractically fast...oh wait, I thought I read 500 nano seconds! OK, 500micros is significant for audio...nevermind.
ANYWAYS...
I couldn't get the idea out of my head about using a comparator circuit, so I gave it another go. This time I stopped fooling around with slow op amps and wanted to grab a TL074. Didn't have any so I used a TL084. Pretty much the same thing, both fast and slew-y. I also wanted to try an LM339 but out of them also, found a similar two-comparator chip the LM393 I was going to try. Also quite similar to the '339.
View attachment 98621
Being as lazy as I am, I started out the breadboard circuit just using the TL084 as a comparator, but set up a PNP output that literally DUMPS more than 100mA into the cap (Tim "the tool man" Taylor would be proud). It was still 1uF because I just wasn't getting the hold time with 0.1uF. The other nice thing about the TL084 is the JFET inputs sip so little current, great for the holding cap which is potentially drained by 2 op-amp inputs, and the input buffer. Not sure how well the '84 would work as a comparator, I did have the LM393 on standby duty.
The performance of this circuit worked so well I had no reason to introduce another LM393 package and it's typical pull-up resistor. It responded within a few percent or so from 20 Hz to 20,000 Hz at the full 24 volt pk-pk signal input. This pix shows a single transient input at 22.8 volts pk-pk, and the resulting output immediately jumps up to about 12 volts within about 100μSec. You can even see how it caught that little hump before the scope even triggered.
View attachment 98617
This next pix shows the response when a 2KHz signal was switched up +20dB. It even caught most of that single little spike before the sine waves get big. I don't have pix of it, but this same response showed itself through the full 20 - 20K range.
View attachment 98618
Here I test the overall peak hold with a small burst of 2K. It settles out completely within 2 seconds. That was using a 1 Meg Ω bleed on the 1μF cap. I wanted more.
View attachment 98620
With a 4.7 Meg Ω bleeder resistor, I get about 5 seconds before the meter settles out. In my application, the next -3dB LED will switch about 8/10 second later at about 8.5 volts.
View attachment 98619
So forget all I said about the previous circuit. That one was crap. By comparison, this newer circuit uses the same 3/4 of a chip package, but uses 3 less diodes, a smaller (and non-electrolytic) capacitor, two less resistors, all in exchange for a single jellybean transistor.
Thanks again for all you helpers! ...and NO, this is NOT an April Fools joke!
I don't think it is possible to oscillate because the circuit I posted does not function as a closed loop amplifier, it acts like a comparator. The voltage on the cap is constantly compared to the input signal. If Vin is higher than Vcap, the output snaps high and dumps current into the cap. When Vcap goes higher than Vin, it snaps off. I built it using LF356, TLO84 and LM358 and never saw anything oscillate.Bounty Hunter: Hmm. I think you may be right. I didn't give it a thorough workout on fast transients. I was concerned about the charge rate and drew up an idea with a booster transistor. I should have continued on and tried it to see how that would go, but it seemed fast enough (in terms of 20KHz response, not transients which I failed to test because I just wanted to get this design over with).
I did try a different circuit similar to the one you showed, with a 2nd op amp in the feedback path. The article I got it from warned of the possibility of instability.
Audioguru: Gee, I guess you are right. That input buffer has been there so long I didn't notice it. I suppose a piece of copper would be cheaper, more reliable, and draw less power.
bountyhunter: Oh, I see that now. Kind of works like a closed-loop amp on the negative peaks, but the positive peaks are wide-open. The other side is just a follower for the holding cap.
Spec:
1) OK, I have some PN4355's that will give me Hfe of 75 up to 500mA. I was going to use them if I was having trouble.
2) I'll go to 3.3K on the base resistance, but that's my final offer. That thing will have almost 30 volts across it.
3) Oops, that was the other one. See, we think the same. I'll make this 1.6K because I have some 5%.
4) Sure, whatevs.
5) Shure, whatevs. BUT, at that point all we are doing is turning on LEDs, so noise & transient response don't really matter.
6) Wow, I had that idea also, using a simple JFET as a crude current regulator. I just didn't feel like playing with it because it was late.
I'll try it once, but if it doesn't work, screw it, I'll use a resistor. I can see how a 20MΩ could simulate that and that will be my back up plan if I can't find 40V FETs.
7) I'm not usually strict about schematics I use for design ideas. When I "go into build" I get anal about documenting.
Also, I DO put decoupling wherever I am using higher current transistors - so I'm sure I'll put a few in there on the final board because it will share the PCB with audio circuitry. I will probably put a ground 'wall' to separate the analog from digital area and feed the signal through. I don't want those LEDs causing clicks. Already I'm planning to use a separate +/- 15 volt supply for isolation.
I had to bite my tongue to keep quiet when a buddy of mine showed me some of the magic braided cable that he had bought to connect his speakers to his amp some years back..... they supposedly tuned out the "standing waves".I have to laugh when I see audiophile ads stating that company XXX figured out the exact number of twists per inch to put in wire-pair between the crossover and the driver. Now, you shouldn't twist it into a tight inductor or leave them loose, but seriously...I'd like to meet the person that can hear the difference between 3 and 4 twists per inch.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?