Hi - I haven't done any electronics for a decade or two, so sorry if I look stupid.
I working on a science experiment which requires a the brightness of an LED to be modulated with a waveform up to around 100-150 Hz, but down to low frequencies, maybe 1 Hz.
The frequency needs to be computer controlled. The easiest solution I could come up with would be to use a PC sound card headphone output to control the LED (my laptop only has headphone, not line-out).
To get the frequency response at low frequencies, I think my input waveform would have to be modulated on a carrier wave (maybe 10 kHz) in my computer program, and then demodulated externally. Maybe a simple envelope detector circuit (sorry link is missing, but it is a diode connected to capacitor and resistor in parallel) would demodulate the headphone output with 1uF capacitor and 1k resistor to (1 kHz time constant).
To drive the LED I suppose I need a transistor connected to the voltage output of this circuit, though I'm not sure on sensible component values.
Does this sound about right? I'm concerned that as the headphone output of a computer is supposed to drive a low impedance output, the simple demodulator might not work very well. It's not clear to me whether the sound card will act as a current or voltage source, and what the expected range in voltages should be. Unfortunately I don't have an oscilloscope so can't measure this.
I working on a science experiment which requires a the brightness of an LED to be modulated with a waveform up to around 100-150 Hz, but down to low frequencies, maybe 1 Hz.
The frequency needs to be computer controlled. The easiest solution I could come up with would be to use a PC sound card headphone output to control the LED (my laptop only has headphone, not line-out).
To get the frequency response at low frequencies, I think my input waveform would have to be modulated on a carrier wave (maybe 10 kHz) in my computer program, and then demodulated externally. Maybe a simple envelope detector circuit (sorry link is missing, but it is a diode connected to capacitor and resistor in parallel) would demodulate the headphone output with 1uF capacitor and 1k resistor to (1 kHz time constant).
To drive the LED I suppose I need a transistor connected to the voltage output of this circuit, though I'm not sure on sensible component values.
Does this sound about right? I'm concerned that as the headphone output of a computer is supposed to drive a low impedance output, the simple demodulator might not work very well. It's not clear to me whether the sound card will act as a current or voltage source, and what the expected range in voltages should be. Unfortunately I don't have an oscilloscope so can't measure this.