No.lets assume the pc scope is DC-coupled
are you kidding me.please post the schematic or schematics for both CMOS analog with 555 timer and the one using LM339.Hi again,
Since an AC scope can display voltage differences another possibility is to build an input chopper. That's a pretty simple circuit that chops two inputs and creates only one output, and that output goes to the 'scope'. So what you see on the scope is two waveforms but they are both chopped up, with channel 1 showing only half of the time and channel 2 showing the other half of the time.
The idea would be to put the unknown waveform on channel 1, and on channel 2 put a known DC voltage. Thus on the scope display you see the actual waveform for say 1ms and then you see the DC voltage for the next 1ms, then it switches back to the actual waveform again for another 1ms then the DC voltage again for the next 1ms, and that keeps repeating. So by viewing the display you can see the DC voltage displayed with the actual waveform and that way you see the waveform as compared to whatever DC voltage you input to channel 2, and you can input any DC voltage into channel 2 with a pot and meter to measure the DC voltage. So you should get a pretty good comparison of your waveform to a DC voltage. If you input 0v DC then you would see the waveform go above and below a 'straight' line if the input wave went both positive and negative, or just above the line if it only goes positive.
For the simplest of circuits, the two inputs of the chopper would be limited to maybe plus and minus 5 volts. That's not too much of a problem though because you can always scale the inputs with some resistors and/or a pot.
If you are interested i'll post a schematic. The basic parts are a CMOS analog switch IC and a 555 timer IC, and a plus and minus 5 to 15v power supply.
This works pretty well with a real scope, but with a sound card scope you'll have to limit the input frequencies as well as the chop frequency to some pretty lowish values unfortunately.
Alternately, you can use a single comparator and pot to see roughly where the peak is on a waveform. That takes one comparator like the LM339 and a potentiometer maybe 10k, and a few small resistors.
do you have a circuit?In "the good old days" we added a DC-restorer to a cheap TV video amp so that the black stayed black when the average brightness of scenes changed.
A DC-restorer might work on an AC-coupled scope.
Also in the good old days fairly high quality but inexpensive scope kits were sold by Heathkit.
are you kidding me.please post the schematic or schematics for both CMOS analog with 555 timer and the one using LM339.
one more thing what maximum frequency can we input due to limitations of a sound card.
hello Sir,quick questionsHello again,
Here is the circuit for the dual channel scope chopper. Note the details of the 555 are not fully shown, it's just a 50 percent duty cycle oscillator, and you want to make it have an adjustable output frequency.
The input voltage range for both channels is -10v to +10v with the power supplies shown.
The two input channels are common to ground, so they both have to have a common ground, but we could build a differential input chopper too. I dont think you need that right now though so this is the simplest possible.
The LM339 peak checker would just be a comparator with power supplies of say +10 and -10 volts. One input goes to a pot arm, say 10k, and the other two terminals of the pot go to +10 and -10 volts. The signal to be measured goes to the other input of the comparator. The comparator output gets a pullup resistor maybe 4.7k. You look at the output of the comparator with the 'scope'. You adjust the pot until you get a voltage like +2v, then check the output of the comparator with the scope. If you see a pulse out of the comparator, then you know +2v is lower than the peak. If you see a wide pulse then +2v is much lower than the peak, but if you see a short pulse then +2v is close to the peak. If it is close to the peak you adjust the pot up a little, to say 2.1v, then look at the output again. If you still see a pulse then +2.1v is still lower than the peak, so you adjust to +2.2v, then if you dont see a pulse anymore then that means that +2.2v is higher than the peak and because you did see a pulse at +2.1v the peak is higher than 2.1v, so the peak is between +2.1v and +2.2v. If the pulse was wider then you could turn up the pot more to start with, like say to +3v. The idea is to find two levels that are close to each other where the lower one still causes a pulse to appear but the slightly higher setting makes the pulse go away. Then you know the peak is between the two levels.
For the negative peak you could do the same thing, the only difference is the setting of the voltage on the arm of the pot and the output pulse will be of opposite polarity.
For this version, if the scope is too slow to catch the pulses then you can connect a pulse detector to the output instead which would be pretty fast. For a simple pulse detector you can use a flip flop, or if you have a logic probe you can set it to detect a pulse signal.
Using either of these methods you should be able to find the peak to within a reasonable degree of accuracy.
Note the LM339 peak detector with pulse catcher would be much faster than when using a sound card scope for the scope for the chopper.
what do you mean here cause am a bit lost?than when using a sound card scope for the scope for the chopper.
hello Sir,quick questionsHello again,
Here is the circuit for the dual channel scope chopper. Note the details of the 555 are not fully shown, it's just a 50 percent duty cycle oscillator, and you want to make it have an adjustable output frequency.
The input voltage range for both channels is -10v to +10v with the power supplies shown.
The two input channels are common to ground, so they both have to have a common ground, but we could build a differential input chopper too. I dont think you need that right now though so this is the simplest possible.
The LM339 peak checker would just be a comparator with power supplies of say +10 and -10 volts. One input goes to a pot arm, say 10k, and the other two terminals of the pot go to +10 and -10 volts. The signal to be measured goes to the other input of the comparator. The comparator output gets a pullup resistor maybe 4.7k. You look at the output of the comparator with the 'scope'. You adjust the pot until you get a voltage like +2v, then check the output of the comparator with the scope. If you see a pulse out of the comparator, then you know +2v is lower than the peak. If you see a wide pulse then +2v is much lower than the peak, but if you see a short pulse then +2v is close to the peak. If it is close to the peak you adjust the pot up a little, to say 2.1v, then look at the output again. If you still see a pulse then +2.1v is still lower than the peak, so you adjust to +2.2v, then if you dont see a pulse anymore then that means that +2.2v is higher than the peak and because you did see a pulse at +2.1v the peak is higher than 2.1v, so the peak is between +2.1v and +2.2v. If the pulse was wider then you could turn up the pot more to start with, like say to +3v. The idea is to find two levels that are close to each other where the lower one still causes a pulse to appear but the slightly higher setting makes the pulse go away. Then you know the peak is between the two levels.
For the negative peak you could do the same thing, the only difference is the setting of the voltage on the arm of the pot and the output pulse will be of opposite polarity.
For this version, if the scope is too slow to catch the pulses then you can connect a pulse detector to the output instead which would be pretty fast. For a simple pulse detector you can use a flip flop, or if you have a logic probe you can set it to detect a pulse signal.
Using either of these methods you should be able to find the peak to within a reasonable degree of accuracy.
Note the LM339 peak detector with pulse catcher would be much faster than when using a sound card scope for the scope for the chopper.
what do you mean here cause am a bit lost?than when using a sound card scope for the scope for the chopper.
thanks for the explanation i get it now but i want to ask if for channel 1 and channel 2 i can pass say a sine wave from a circuit to channel 1 and then a triangle wave to channel 2 instead of a DC voltage and then view both waves on the scope?Hi,
1) Yes, 50 percent. There are 50 percent duty cycle oscillators on the web using 555, but yes the required IC can be whatever can put out the logic signal needed for the 4051 so you can use chips other than the 555.
2) Yes, +12 and 0v for an input signal range of 0 to +12v should be fine.
3) There are various pulse catcher circuits out there on the web. A flip flop should work too.
4) Just that the pulse catcher will be faster than a sound card scope so it should be better.
5) Yes, "To Scope" means to the input of the actual sound card scope you have, or to the pulse catcher.
6) Yes the chop frequency is controlled by the 555. The chop frequency should be at least 10 times higher than the highest frequency to be observed.
The chop frequency simply breaks up the two input waveforms which allows showing both on the scope. First one appears and then the other appears, so it's a sort of 'time share' of the scope display reasource.
Here's a snap shot of the idealized waveform seen on the scope. For this sample the sine wave is 50Hz and peaks on channel 1 are =5v and +5v and the DC voltage on channel 2 is adjusted to +4v. You can see that during the time the sine is being sampled only the sine appears on the scope, and otehr times the DC voltage is being shown on the scope. The chop frequency here is 2500Hz so each wave has a 200us time slot so you can see the sine wave for 200us followed by the 4v DC voltage for the next 200us and then it just keeps alternating like that, so you can see the outline of both waves.
If you have a pot on channel 2 you can adjust the DC voltage, measure it with a meter, and that will allow you to determine the peak of the sine wave when the DC voltage is adjusted to the same level as the sine peak.
Often the chop frequency is not synced to the waveform being displayed so you dont always see the up and down vertical lines you see in this pic you just see the two waveforms. If it does sync, you can adjust it so that it does not sync.
Note this works pretty well on a real scope, im not sure how well it will work on a sound card scope because the bandwidth is so extremely limited. Maybe for low frequency waves and low chop frequency too. Keep in mind that the chop frequency must be higher than the two waveform frequencies or else it will go in to 'alternating' mode, which is not as good for comparing two waves. That means the chop frequency should be at least 10 times higher than either waveform frequency.
Also note that the chop frequency doesnt have to be exactly 50 percent duty cycle but it should be close to that. If it was say 25/75 then you'd see one waveform for only 100us and the other waveform for 300us so they would not share the scope display time equally, so 50/50 is the best.
i want to ask a question about PWM.Now if we have a sine wave with say peak to peak amplitude 5V and a triangle wave with peak to peak amplitude say 7V and we pass it into a comparator like the LM393 and i remember audioguru saying that the amplitudes of both waves dont need to be that high since the comparator has a very high voltage gain about say 200 times or something like that.Hello again,
Yes you can put any waveform on channel 2 as long as the voltage level meets the requirements of being between the two power supply levels. So for a power supply of 0v ground and +12v the wave would have to be between 0v and +12v.
You'll note that the chip used for the switching is a CMOS switch with not just 2 but with 8 channels. This means if you were to use a counter you could squeeze three or four channels onto the scope display. It may be much more difficult to view however so i did not suggest that option previously. It's better to start with 2 first anyway and see how that goes with your scope.
If you plan to use just 2 channels (probably better than 3 or 4) then there are other CMOS switch type IC's available too, with just single pole switches on them. The proper switching may require an extra inverter with some packages though. A single pole double throw version should work just as well though without an extra inverter.
The 8 channel device works well without an inverter as well and allows for other options. You can add a channel later if it seems like the display is working ok, or you could switch which pin you use to 'clock' the device. Right now we are using the 'A' input which means the channels selected are either channel 0 or channel 1. But if we used the 'B' input for example (grounding 'A'), then the channels selected would be instead channel 0 and channel 2.
So if you switch between using input A or input B (grounding the unused one) you can cause the wave at input channel 1 or input channel 2 to be displayed as well as whatever is on channel 0. That's one way to switch waves on the second channel.
i want to ask a question about PWM.Now if we have a sine wave with say peak to peak amplitude 5V and a triangle wave with peak to peak amplitude say 7V and we pass it into a comparator like the LM393 and i remember audioguru saying that the amplitudes of both waves dont need to be that high since the comparator has a very high voltage gain about say 200 times or something like that.
1)Well if all circuits are it from a 12V source and passed into the comparator would the resulting PWM output go from 0V to as high as near the supply voltage even if the amplitude of the two waves being compared are not that high since the voltage gain of the comaprator is very high?
2)if we were to filter this PWM wave to get back the sine wave would the sine wave gotten back have peak to peak amplitude 5V since that is the oroginal wave used in the actual comparing?
hello Sir remember me,well since my PWM circuits works well now i would like to add hysterisis to the comparator.Hello again,
I think this is a very good question. The best answer i think shows the difference between how we perceive comparators and how a real life comparator really works.
In theory, if we have a non inverting (+) input of 10 volts and an inverting (-) input of 5 volts, the output will be go high immediately. In practice with a real comparator IC, the same thing happens except there is a delay while the output STARTS to ramp high, then another delay while the output actually ramps high. The first delay is caused by the internal gain and input signal, and the second delay is caused by the slew rate. The second delay is 'usually' the most important, but we can not totally forget about the first delay in all applications.
There we looked at signals that are quite different, 10v and 5v, but what about signals that are much closer?
It just so happens that many comparator applications have signals that are much closer to each other because one or both signals do not change very fast themselves. For example, with 5v on the inverting terminal and a charging capacitor that charges slowly on the non inverting terminal, the voltage on the cap starts at 0v and rises slowly past 5v, so just how long does it take for the comparator to respond when the voltage gets 'near' 5v.
It just so happens that it takes a little bit longer because when the voltage of the cap reaches 5.000000 volts with a reference of 5.000000 volts on the other input the comparator gain of 100000 still does not produce any output change because the difference in input voltages is zero, and zero times any gain is still zero.
So lets say the cap voltage rises to 5.000001 volts next. That means the difference is 1uv, and with an internal gain of 100000 that means the output should rise to 0.1 volts, with a small delay. But since the input is changing so slow (large cap and resistor) it could have taking 60 seconds for that change to occur.
So we have a delay that is based partly on the rate of change of the two inputs as well as other built in factors, and this is why we often see tests of comparators done with voltage steps. The step is usually around 0.1 volt as a min i think, but you could check your data sheets to see what they use for their test for that particular device.
What this means is that the input amplitudes do have an effect on the output of the comparator, in that the amplitudes tend to delay the point in time where the comparator starts to switch states. The delay after that depends mostly on the output slew rate.
So for two signals one a sine and one a triangle, we see two inputs changing at different rates most of the time. That means the initial response delay for the slowest change points in time will be double for signals that are half as high in amplitude. The slew rate however will still be the same for any amplitude, but it could appear to be much longer if the two inputs dwell near the same amplitude level for long periods of time.
For example, for very slow sine and triangle waves, the sine rises fastest near 0 degrees and 180 degrees, so those times will produce the fastest output change. Neat the peaks however, the triangle rate will dominate and that's usually fast enough to produce a good output providing the initial delay is much faster than the slew rate.
So the short answer is, the voltage levels do affect the output delay, but if the initial delay is much faster than the slew rate it should not matter too much. If the voltages are very low the initial delay can be long though.
What will not be affected however is the amplitude after all of the delays have been considered. Using a +12v supply with a pullup resistor for the comparator, the output will rise eventually near to +12v, and will fall down very close to 0v. One thing to note however is that because the comparator depends on a pullup resistor, any load resistor from the output to ground could greatly reduce the output voltage for a logic high level. With a 10k pullup and a 10k load resistor, that would mean that with a +12v supply we would only see +6v output across the 10k load resistor.
It will however pull all the way to ground, except for the small internal transistor drop would could be anywhere from near 0 to around 0.5 volts and depends on the value of the pullup resistor and if there is any load resistor from the output to the +12v line.
Finally, for most comparator apps there is usually a small amount of hysteresis added to the comparator in the form of an extra resistor or two. One thing this does is it improves that initial delay time to help keep it short. That way even with slowly changing input signals we can see fast output rise times.
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?