i need to measure a low frequency waveform from a DC circuit (voltage
up to 200mV). I need a sample rate of around 10Hz. to buy an
oscilloscope for this is a total overkill. I was thinking of using the
soundcard, but then realised it's AC coupled. any suggestions on a
cheap method to find this measurement?
One way to go would be to use a simple on-off circuit to turn the input into
an AC square wave. You could then measure the input with you sound card. The
output, when filtered at your switching frequency, will be proportional to
the DC input.
You might use an analog switch of some kind, like a 4066. I think there are
much lower resistance ones available, but that should not matter all that
much, because the input impedance of the sound card should be fairly high,
and your application is slow. You could also cobble something together to do
the switching using discrete, but it isn't as simple as just buying an
analog switch IC.
A signal generator would be the easiest way to generate the switching clock,
but you could also generate it from software on your sound card by
outputting a square wave at the right frequency, and using that to clock the
analog switch.
You might then write a simple digital band pass filter to filter the input
at the switching frequency. There exist various filter design websites,
which will write C code for you given the parameters you want to filter. A
10k switching frequency would be right in the middle of your sound card's
range.
Note that you may be able to use a USB port to power the entire circuit,
since USB can supply 5V. The parallel port and game port can also supply 5V.
However, ensure that your device under test doesn't have a ground that is
seriously different than that of the PC, or you can end up passing current
through the ground wires. If you connect them with an ammeter first through
a 1k resistor, you can see how bad it is likely to be.
Regards,
Bob Monsen