Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #376185 > unrolled thread

Sub-audio Modulator

Started byDavid King <dking@supernet.com>
First post2015-09-09 14:07 +1000
Last post2015-09-13 17:10 +1000
Articles 20 on this page of 31 — 16 participants

Back to article view | Back to sci.electronics.design


Contents

  Sub-audio Modulator David King <dking@supernet.com> - 2015-09-09 14:07 +1000
    Re: Sub-audio Modulator Tim Wescott <tim@seemywebsite.com> - 2015-09-09 01:04 -0500
    Re: Sub-audio Modulator gardiegp@gmail.com - 2015-09-08 23:23 -0700
      Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-10 10:07 +1000
        Re: Sub-audio Modulator Phil Allison <pallison49@gmail.com> - 2015-09-09 17:32 -0700
    Re: Sub-audio Modulator Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-09 07:33 +0100
      Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-09 18:34 +1000
    Re: Sub-audio Modulator tabbypurr@gmail.com - 2015-09-09 00:32 -0700
    Re: Sub-audio Modulator George Herold <gherold@teachspin.com> - 2015-09-09 06:24 -0700
    Re: Sub-audio Modulator John Larkin <jjlarkin@highlandtechnology.com> - 2015-09-09 07:18 -0700
    Re: Sub-audio Modulator Jasen Betts <jasen@xnet.co.nz> - 2015-09-09 09:42 +0000
    Re: Sub-audio Modulator whit3rd <whit3rd@gmail.com> - 2015-09-09 12:12 -0700
      Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-10 10:18 +1000
        Re: Sub-audio Modulator dplatt@coop.radagast.org (Dave Platt) - 2015-09-09 18:03 -0700
          Re: Sub-audio Modulator Mike Towner <mtowner@quintrex.com> - 2015-09-10 18:07 +1000
          Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-11 08:43 +1000
            Re: Sub-audio Modulator dplatt@coop.radagast.org (Dave Platt) - 2015-09-10 18:05 -0700
              Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-11 14:09 +1000
        Re: Sub-audio Modulator rickman <gnuarm@gmail.com> - 2015-09-10 02:57 -0400
          Re: Sub-audio Modulator "David Eather" <eather@tpg.com.au> - 2015-09-10 17:05 +1000
            Re: Sub-audio Modulator rickman <gnuarm@gmail.com> - 2015-09-10 03:17 -0400
              Re: Sub-audio Modulator "David Eather" <eather@tpg.com.au> - 2015-09-11 08:34 +1000
          Re: Sub-audio Modulator krw <krw@nowhere.com> - 2015-09-10 12:33 -0400
      Re: Sub-audio Modulator rickman <gnuarm@gmail.com> - 2015-09-10 02:42 -0400
    Re: Sub-audio Modulator "N. Coesel" <nico@niks.nl> - 2015-09-09 21:13 +0200
      Re: Sub-audio Modulator rickman <gnuarm@gmail.com> - 2015-09-10 03:00 -0400
    Re: Sub-audio Modulator rickman <gnuarm@gmail.com> - 2015-09-10 03:16 -0400
    Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-13 11:57 +1000
      Re: Sub-audio Modulator rickman <gnuarm@gmail.com> - 2015-09-12 22:26 -0400
      Re: Sub-audio Modulator Phil Allison <pallison49@gmail.com> - 2015-09-12 23:11 -0700
        Re: Sub-audio Modulator David King <dking@supernet.com> - 2015-09-13 17:10 +1000

Page 1 of 2  [1] 2  Next page →


#376185 — Sub-audio Modulator

FromDavid King <dking@supernet.com>
Date2015-09-09 14:07 +1000
SubjectSub-audio Modulator
Message-ID<ndbvuat3jkt212nqfq7ioib4ou6pggic98@4ax.com>
I would like to generate simulated ECG (electrocardiogram) signals in
PC software, but since they are subaudio, they cannot be output
through the sound card.

My idea is to use the raw ECG signal as an envelope with which to
amplitude modulate an audio carrier. This will then pass through the
sound card's frequency limiting network.

Then a low pass filter can be applied external to the PC to recover
the original subaudio ECG.

Can anyone please suggest what the best design approach would be for
this project?

For example:

A preferred carrier frequency

Type of filter/demodulator for same

Thank you,

David King

[toc] | [next] | [standalone]


#376187

FromTim Wescott <tim@seemywebsite.com>
Date2015-09-09 01:04 -0500
Message-ID<MPudnRMmb_h6VnLInZ2dnUVZ5uidnZ2d@giganews.com>
In reply to#376185
On Wed, 09 Sep 2015 14:07:07 +1000, David King wrote:

> I would like to generate simulated ECG (electrocardiogram) signals in PC
> software, but since they are subaudio, they cannot be output through the
> sound card.
> 
> My idea is to use the raw ECG signal as an envelope with which to
> amplitude modulate an audio carrier. This will then pass through the
> sound card's frequency limiting network.
> 
> Then a low pass filter can be applied external to the PC to recover the
> original subaudio ECG.
> 
> Can anyone please suggest what the best design approach would be for
> this project?
> 
> For example:
> 
> A preferred carrier frequency
> 
> Type of filter/demodulator for same
> 
> Thank you,
> 
> David King

Or just get a DC-coupled DAC.

Google "DAQ" (for Data AQuisition) -- the same people who sell A to D 
hardware also sell D to A.  If you stay away from National Instruments 
there's some affordable stuff out there.

-- 
www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#376189

Fromgardiegp@gmail.com
Date2015-09-08 23:23 -0700
Message-ID<57d8e145-8472-4a0e-8f86-47e51123482f@googlegroups.com>
In reply to#376185
On Wednesday, September 9, 2015 at 4:07:35 PM UTC+12, David King wrote:

Then a low pass filter can be applied external to the PC to recover
the original subaudio ECG.
 You will need a precision rectifier as a demodulator before filter. A higher frequency ~ 10K will be easier to filter.

[toc] | [prev] | [next] | [standalone]


#376282

FromDavid King <dking@supernet.com>
Date2015-09-10 10:07 +1000
Message-ID<38i1vahtv4m293qannlkurmr34hcpnjpnb@4ax.com>
In reply to#376189
On Tue, 8 Sep 2015 23:23:04 -0700 (PDT), gardiegp@gmail.com wrote:

>On Wednesday, September 9, 2015 at 4:07:35 PM UTC+12, David King wrote:
>
>Then a low pass filter can be applied external to the PC to recover
>the original subaudio ECG.
> You will need a precision rectifier as a demodulator before filter. A higher frequency ~ 10K will be easier to filter.
>

What is the function of the full wave rectifier? 

I am trying to visualize how the rectified modulated signal will look
on a scope, and the subsequent effect of the LP filter on it.

Is there any particular configuration of LP filter that would be
preferred for this application?

David King

[toc] | [prev] | [next] | [standalone]


#376287

FromPhil Allison <pallison49@gmail.com>
Date2015-09-09 17:32 -0700
Message-ID<f01eaabe-6e79-49e2-bd08-42dafbff3fd0@googlegroups.com>
In reply to#376282
David King wrote:

> What is the function of the full wave rectifier? 
> 

 ** The average value of the modulated carrier is always zero, but the average value of a rectified version varies in line with the modulation.


> I am trying to visualize how the rectified modulated signal will look
> on a scope, and the subsequent effect of the LP filter on it.


https://commons.wikimedia.org/wiki/File:Amplitude_modulation_detection.png


> Is there any particular configuration of LP filter that would be
> preferred for this application?

** Probably a simple 6dB/octave RC filter will do if the frequency ratio between carrier and modulation is over 100:1.

...   Phil

[toc] | [prev] | [next] | [standalone]


#376190

FromMartin Brown <|||newspam|||@nezumi.demon.co.uk>
Date2015-09-09 07:33 +0100
Message-ID<msojrk$303$1@speranza.aioe.org>
In reply to#376185
On 09/09/2015 05:07, David King wrote:
>
> I would like to generate simulated ECG (electrocardiogram) signals in
> PC software, but since they are subaudio, they cannot be output
> through the sound card.
>
> My idea is to use the raw ECG signal as an envelope with which to
> amplitude modulate an audio carrier. This will then pass through the
> sound card's frequency limiting network.
>
> Then a low pass filter can be applied external to the PC to recover
> the original subaudio ECG.
>
> Can anyone please suggest what the best design approach would be for
> this project?

Bridge the output decoupling capacitor(s) on a cheap USB sound card.

This DC coupled trick trick is popular with DIY laser display folk. eg

http://www.whence.com/soundcard-dc-dac/
>
> For example:
>
> A preferred carrier frequency
>
> Type of filter/demodulator for same

Precision rectifier with lowpass filter after it.

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#376196

FromDavid King <dking@supernet.com>
Date2015-09-09 18:34 +1000
Message-ID<ajrvua1f9olf9s80d85qql6hn91tg1rp42@4ax.com>
In reply to#376190
On Wed, 9 Sep 2015 07:33:24 +0100, Martin Brown
<|||newspam|||@nezumi.demon.co.uk> wrote:

>On 09/09/2015 05:07, David King wrote:
>>
>> I would like to generate simulated ECG (electrocardiogram) signals in
>> PC software, but since they are subaudio, they cannot be output
>> through the sound card.
>>
>> My idea is to use the raw ECG signal as an envelope with which to
>> amplitude modulate an audio carrier. This will then pass through the
>> sound card's frequency limiting network.
>>
>> Then a low pass filter can be applied external to the PC to recover
>> the original subaudio ECG.
>>
>> Can anyone please suggest what the best design approach would be for
>> this project?
>
>Bridge the output decoupling capacitor(s) on a cheap USB sound card.
>
>This DC coupled trick trick is popular with DIY laser display folk. eg
>
>http://www.whence.com/soundcard-dc-dac/
>>

Thanks. This is definitely worth a try.

>> For example:
>>
>> A preferred carrier frequency
>>
>> Type of filter/demodulator for same
>
>Precision rectifier with lowpass filter after it.

There are a few full wave rectifiers here that look suitable.
http://sound.westhost.com/appnotes/an001.htm

David King

[toc] | [prev] | [next] | [standalone]


#376194

Fromtabbypurr@gmail.com
Date2015-09-09 00:32 -0700
Message-ID<b65f9506-e049-4fe5-aed2-d9cd7d20f0ce@googlegroups.com>
In reply to#376185
On Wednesday, 9 September 2015 05:07:35 UTC+1, David King  wrote:
> I would like to generate simulated ECG (electrocardiogram) signals in
> PC software, but since they are subaudio, they cannot be output
> through the sound card.
> 
> My idea is to use the raw ECG signal as an envelope with which to
> amplitude modulate an audio carrier. This will then pass through the
> sound card's frequency limiting network.
> 
> Then a low pass filter can be applied external to the PC to recover
> the original subaudio ECG.
> 
> Can anyone please suggest what the best design approach would be for
> this project?
> 
> For example:
> 
> A preferred carrier frequency
> 
> Type of filter/demodulator for same
> 
> Thank you,
> 
> David King

I presume you could just add a bigger output cap


NT

[toc] | [prev] | [next] | [standalone]


#376206

FromGeorge Herold <gherold@teachspin.com>
Date2015-09-09 06:24 -0700
Message-ID<f33f096f-f229-41d1-9503-63faa3032828@googlegroups.com>
In reply to#376185
On Wednesday, September 9, 2015 at 12:07:35 AM UTC-4, David King wrote:
> I would like to generate simulated ECG (electrocardiogram) signals in
> PC software, but since they are subaudio, they cannot be output
> through the sound card.
> 
> My idea is to use the raw ECG signal as an envelope with which to
> amplitude modulate an audio carrier. This will then pass through the
> sound card's frequency limiting network.
> 
> Then a low pass filter can be applied external to the PC to recover
> the original subaudio ECG.
> 
> Can anyone please suggest what the best design approach would be for
> this project?
> 
> For example:
> 
> A preferred carrier frequency
> 
> Type of filter/demodulator for same
> 
> Thank you,
> 
> David King

Can you throw money at the problem?  
A Rigol DG1022 is only ~$350 I've never used it's arbitrary waveform generator, 
but it does low frequencies just fine... (micro Hz.)  

George H.

[toc] | [prev] | [next] | [standalone]


#376211

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-09-09 07:18 -0700
Message-ID<krf0vahm23spooe82mog8tgfk0rbegcgef@4ax.com>
In reply to#376185
On Wed, 09 Sep 2015 14:07:07 +1000, David King <dking@supernet.com>
wrote:

>
>I would like to generate simulated ECG (electrocardiogram) signals in
>PC software, but since they are subaudio, they cannot be output
>through the sound card.
>
>My idea is to use the raw ECG signal as an envelope with which to
>amplitude modulate an audio carrier. This will then pass through the
>sound card's frequency limiting network.
>
>Then a low pass filter can be applied external to the PC to recover
>the original subaudio ECG.
>
>Can anyone please suggest what the best design approach would be for
>this project?
>
>For example:
>
>A preferred carrier frequency
>
>Type of filter/demodulator for same
>
>Thank you,
>
>David King

Are you sure your sound card won't work? You could pre-emphasize the
waveform data and extend the low-end response a good bit.

[toc] | [prev] | [next] | [standalone]


#376215

FromJasen Betts <jasen@xnet.co.nz>
Date2015-09-09 09:42 +0000
Message-ID<msouv2$qm1$1@gonzo.alcatraz>
In reply to#376185
On 2015-09-09, David King <dking@supernet.com> wrote:
>
> I would like to generate simulated ECG (electrocardiogram) signals in
> PC software, but since they are subaudio, they cannot be output
> through the sound card.

That depends on the sound card. some are DC coupled and will pass DC

-- 
  \_(ツ)_

[toc] | [prev] | [next] | [standalone]


#376244

Fromwhit3rd <whit3rd@gmail.com>
Date2015-09-09 12:12 -0700
Message-ID<6e9463ec-a99a-41b8-b6bb-22f1444f1ce3@googlegroups.com>
In reply to#376185
On Tuesday, September 8, 2015 at 9:07:35 PM UTC-7, David King wrote:
> I would like to generate simulated ECG (electrocardiogram) signals in
> PC software, but since they are subaudio, they cannot be output
> through the sound card.
> 
> My idea is to use the raw ECG signal as an envelope with which to
> amplitude modulate an audio carrier. 

That can work, but the usual treatment (as when seismometers feed into
analog tape recorders) uses FM (add a bias voltage, do V-F conversion
with the guaranteed-always-positive V).   AM modulation is more 
troublesome to demodulate.

Lab-control cards or USB I/O gizmos are easier to use in this kind of
application.   It costs some money, of course...

<http://sine.ni.com/nips/cds/view/p/lang/en/nid/201986>

Buy a good quality tool, and you only cry once...

[toc] | [prev] | [next] | [standalone]


#376283

FromDavid King <dking@supernet.com>
Date2015-09-10 10:18 +1000
Message-ID<0ii1val7kh3kurap3fuoor2mvukcn1967r@4ax.com>
In reply to#376244
On Wed, 9 Sep 2015 12:12:41 -0700 (PDT), whit3rd <whit3rd@gmail.com>
wrote:

>On Tuesday, September 8, 2015 at 9:07:35 PM UTC-7, David King wrote:
>> I would like to generate simulated ECG (electrocardiogram) signals in
>> PC software, but since they are subaudio, they cannot be output
>> through the sound card.
>> 
>> My idea is to use the raw ECG signal as an envelope with which to
>> amplitude modulate an audio carrier. 
>
>That can work, but the usual treatment (as when seismometers feed into
>analog tape recorders) uses FM (add a bias voltage, do V-F conversion
>with the guaranteed-always-positive V).   AM modulation is more 
>troublesome to demodulate.
>

Thanks for the suggestion. However, I was planning to use a consumer
audio editing application such as Adobe Audition which does not
provide for frequency modulation by complex signals.

Several people have reasonably suggested I just buy a DAQ. But I would
eventually like to build the demodulator into a stand-alone device and
feed the signal in via an MP3 player.

David King

>Lab-control cards or USB I/O gizmos are easier to use in this kind of
>application.   It costs some money, of course...
>
><http://sine.ni.com/nips/cds/view/p/lang/en/nid/201986>
>
>Buy a good quality tool, and you only cry once...

[toc] | [prev] | [next] | [standalone]


#376290

Fromdplatt@coop.radagast.org (Dave Platt)
Date2015-09-09 18:03 -0700
Message-ID<bf17cc-6s2.ln1@coop.radagast.org>
In reply to#376283
In article <0ii1val7kh3kurap3fuoor2mvukcn1967r@4ax.com>,
David King  <dking@supernet.com> wrote:

>Thanks for the suggestion. However, I was planning to use a consumer
>audio editing application such as Adobe Audition which does not
>provide for frequency modulation by complex signals.
>
>Several people have reasonably suggested I just buy a DAQ. But I would
>eventually like to build the demodulator into a stand-alone device and
>feed the signal in via an MP3 player.

I think what you'd want to do, is first determine the *highest*
frequency that you want to pass through your low-pass filter... the
highest component of the ECG signal that's required to be able to
create the desired ECG waveform.

Then, use a carrier frequency at least 10 times greater than
this... higher is better as it will be easier to filter out.

What you'll probably want to do, is "bias" the ECG waveform in the
positive direction during synthesis, so that its value never falls
below zero.  Use this biased waveform as the amplitude value with
which you modulate the carrier.  This is similar to the trick that AM
radio stations use, in order to prevent the RF carrier from trying to
modulate down below cutoff (which generates a lot of splatter).

Then, you can feed the resulting audio signal to an op-amp-based
precision rectifier / peak detector:

https://en.wikipedia.org/wiki/Precision_rectifier

Use their "peak detector" circuit, but replace the reset switch next
to the capacitor with a resistor, so that the R/C circuit has a -3 dB
rolloff point somewhat above the cutoff frequency you determined in
the first step.  The output of this circuit will be a copy of the
biased-upwards ECG signal, with a bit of carrier ripple on it.

You can then subtract the bias value electronically (a simple
DC-blocking series capacitor may be enough), and add an additional
stage or two or six of low-pass filter to get rid of the remaining
carrier.

My guess is that you could do a very credible job of this, with one
dual op amp.  The first section to act as the precision peak detector
and with one stage of low-pass filtering (from the peak detector's RC
time constant).  The second section could be a two-pole low-pass
filter.



[toc] | [prev] | [next] | [standalone]


#376314

FromMike Towner <mtowner@quintrex.com>
Date2015-09-10 18:07 +1000
Message-ID<vu82va939ai0po59vnfutevuu4ptfa1pb3@4ax.com>
In reply to#376290
On Wed, 9 Sep 2015 18:03:07 -0700, dplatt@coop.radagast.org (Dave
Platt) wrote:

>In article <0ii1val7kh3kurap3fuoor2mvukcn1967r@4ax.com>,
>David King  <dking@supernet.com> wrote:
>
>>Thanks for the suggestion. However, I was planning to use a consumer
>>audio editing application such as Adobe Audition which does not
>>provide for frequency modulation by complex signals.
>>
>>Several people have reasonably suggested I just buy a DAQ. But I would
>>eventually like to build the demodulator into a stand-alone device and
>>feed the signal in via an MP3 player.
>
>I think what you'd want to do, is first determine the *highest*
>frequency that you want to pass through your low-pass filter... the
>highest component of the ECG signal that's required to be able to
>create the desired ECG waveform.
>
>Then, use a carrier frequency at least 10 times greater than
>this... higher is better as it will be easier to filter out.
>

Some respondents suggested a 10KHz carrier which seems fine. I could
then nominate 1KHz as the cutoff. See my circut at the bottom of this
post.

>What you'll probably want to do, is "bias" the ECG waveform in the
>positive direction during synthesis, so that its value never falls
>below zero.  Use this biased waveform as the amplitude value with
>which you modulate the carrier.  This is similar to the trick that AM
>radio stations use, in order to prevent the RF carrier from trying to
>modulate down below cutoff (which generates a lot of splatter).
>
>Then, you can feed the resulting audio signal to an op-amp-based
>precision rectifier / peak detector:
>
>https://en.wikipedia.org/wiki/Precision_rectifier
>
>Use their "peak detector" circuit, but replace the reset switch next
>to the capacitor with a resistor, so that the R/C circuit has a -3 dB
>rolloff point somewhat above the cutoff frequency you determined in
>the first step.  The output of this circuit will be a copy of the
>biased-upwards ECG signal, with a bit of carrier ripple on it.
>
>You can then subtract the bias value electronically (a simple
>DC-blocking series capacitor may be enough), and add an additional
>stage or two or six of low-pass filter to get rid of the remaining
>carrier.
>
>My guess is that you could do a very credible job of this, with one
>dual op amp.  The first section to act as the precision peak detector
>and with one stage of low-pass filtering (from the peak detector's RC
>time constant).  The second section could be a two-pole low-pass
>filter.
>

Here is my interpretation of the circuit you have kindly described
above.

https://app.box.com/s/na3hp52qe30yo7566uxn4g45k7km8knx

Any suggestions for improvement?

I understand that sound cards and MP3 players swing pos/neg.

One concern is that the DC biasing in the first stage would change
whenever the volume of the MP3 player (that feeds in the signal) was
adjusted by the user. There would be no way to tell without a scope.

One solution might be to design the recorded signal in software so the
active part, in its entirety, occupies only the top half of the swing.

Would this work?

Mike Towner

[toc] | [prev] | [next] | [standalone]


#376461

FromDavid King <dking@supernet.com>
Date2015-09-11 08:43 +1000
Message-ID<fiv3vah1b8pc8fogrp4u77lr8r0alrhe39@4ax.com>
In reply to#376290
On Wed, 9 Sep 2015 18:03:07 -0700, dplatt@coop.radagast.org (Dave
Platt) wrote:

I am resending Mike's response to Dave Platt's detailed post in case
he missed it. Mike and I are grad students at SCU working on the same
project. 

Sorry to everyone else for the duplication.

David King


**********

(snip)

>My guess is that you could do a very credible job of this, with one
>dual op amp.  The first section to act as the precision peak detector
>and with one stage of low-pass filtering (from the peak detector's RC
>time constant).  The second section could be a two-pole low-pass
>filter.
>

Here is my interpretation of the circuit you have kindly described
above.

https://app.box.com/s/na3hp52qe30yo7566uxn4g45k7km8knx

Any suggestions for improvement?

I understand that sound cards and MP3 players swing pos/neg.

One concern is that the DC biasing in the first stage would change
whenever the volume of the MP3 player (that feeds in the signal) was
adjusted by the user. There would be no way to tell without a scope.

One solution might be to design the recorded signal in software so the
active part, in its entirety, occupies only the top half of the swing.

Would this work?

[toc] | [prev] | [next] | [standalone]


#376483

Fromdplatt@coop.radagast.org (Dave Platt)
Date2015-09-10 18:05 -0700
Message-ID<10m9cc-nf9.ln1@coop.radagast.org>
In reply to#376461
In article <fiv3vah1b8pc8fogrp4u77lr8r0alrhe39@4ax.com>,
David King  <dking@supernet.com> wrote:

>>My guess is that you could do a very credible job of this, with one
>>dual op amp.  The first section to act as the precision peak detector
>>and with one stage of low-pass filtering (from the peak detector's RC
>>time constant).  The second section could be a two-pole low-pass
>>filter.
>>
>
>Here is my interpretation of the circuit you have kindly described
>above.
>
>https://app.box.com/s/na3hp52qe30yo7566uxn4g45k7km8knx
>
>Any suggestions for improvement?

It looks as if the high-pass (DC-blocking) filter between the two
stages has a 1.5-second time constant.

Is this long enough to pass an ECG waveform properly, without
generating enough phase shift in the lower-frequency components to
distort the waveform?

You might want to go up to a 470 uF cap, or even larger.  A 1000 uF
25-volt cap isn't physically large, nowadays.

>I understand that sound cards and MP3 players swing pos/neg.

Right... but that's often *because* they have a DC-blocking cap on
their outputs.  A lot of these players and sound cards have only a
unipolar DC power supply (i.e. one battery, or a +5 voltage).  The DAC
chip automatically biased its output signal up to an average voltage
of half of the supply.  In a 5-volt DAC, the audio signal might come
out of the chip at an average voltage of 2.5, and swing a volt or so
in either direction.

Feed this through a DC-blocking capacitor, and you end up with 1 volt
swinging on either side of ground - that's what goes to your amp.

>One concern is that the DC biasing in the first stage would change
>whenever the volume of the MP3 player (that feeds in the signal) was
>adjusted by the user. There would be no way to tell without a scope.

That wouldn't matter, if you use a series capacitor to restore the DC
average level to zero.  The 100 uF cap in your schematic will do that
just fine.

>One solution might be to design the recorded signal in software so the
>active part, in its entirety, occupies only the top half of the swing.

>Would this work?

That's exactly what I was referring to when I said "biasing the
signal".

Just take your desired waveform values (numerically calculated, or
whatever), and add a constant to each sample, with the constant being
sufficiently large to keep the (adjusted) samples from ever dropping
down to zero.

[toc] | [prev] | [next] | [standalone]


#376497

FromDavid King <dking@supernet.com>
Date2015-09-11 14:09 +1000
Message-ID<gsk4vathf6p4b4qel2aii1tda7u8tagigl@4ax.com>
In reply to#376483
On Thu, 10 Sep 2015 18:05:37 -0700, dplatt@coop.radagast.org (Dave
Platt) wrote:

>In article <fiv3vah1b8pc8fogrp4u77lr8r0alrhe39@4ax.com>,
>David King  <dking@supernet.com> wrote:

(snip)

>That's exactly what I was referring to when I said "biasing the
>signal".
>
>Just take your desired waveform values (numerically calculated, or
>whatever), and add a constant to each sample, with the constant being
>sufficiently large to keep the (adjusted) samples from ever dropping
>down to zero.
>

Thanks Dave. Your help has been invaluable.

I will build the circuit up when we return to the lab next week.

David King

[toc] | [prev] | [next] | [standalone]


#376309

Fromrickman <gnuarm@gmail.com>
Date2015-09-10 02:57 -0400
Message-ID<msr9is$abs$1@dont-email.me>
In reply to#376283
On 9/9/2015 8:18 PM, David King wrote:
> On Wed, 9 Sep 2015 12:12:41 -0700 (PDT), whit3rd <whit3rd@gmail.com>
> wrote:
>
>> On Tuesday, September 8, 2015 at 9:07:35 PM UTC-7, David King wrote:
>>> I would like to generate simulated ECG (electrocardiogram) signals in
>>> PC software, but since they are subaudio, they cannot be output
>>> through the sound card.
>>>
>>> My idea is to use the raw ECG signal as an envelope with which to
>>> amplitude modulate an audio carrier.
>>
>> That can work, but the usual treatment (as when seismometers feed into
>> analog tape recorders) uses FM (add a bias voltage, do V-F conversion
>> with the guaranteed-always-positive V).   AM modulation is more
>> troublesome to demodulate.
>>
>
> Thanks for the suggestion. However, I was planning to use a consumer
> audio editing application such as Adobe Audition which does not
> provide for frequency modulation by complex signals.
>
> Several people have reasonably suggested I just buy a DAQ. But I would
> eventually like to build the demodulator into a stand-alone device and
> feed the signal in via an MP3 player.

If you want to use an MP3 player, check out a few to see if they work at 
the lowest frequency you are interested in.  The cutoff frequency is not 
a brick wall.  It may not even be determined by the analog circuitry. 
The CODEC I use in one of my designs has an internal high pass filter 
which is only -3 dB at 3.4 Hz.  I don't remember my ECG data.  Is this 
low enough?

If not, you *will* need to modulate the data unless you find a unit that 
is DC coupled.  AM modulation is *fine* and *easy* to demodulate. 
Radios don't get any simpler than AM types.  For your purposes I am 
pretty sure you don't need anything more than a common diode and 
capacitor with an appropriate amp to drive the following circuit.  Just 
modulate the signal to account for the detection circuit.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#376311

From"David Eather" <eather@tpg.com.au>
Date2015-09-10 17:05 +1000
Message-ID<op.x4qjbag6wei6gd@phenom-pc>
In reply to#376309
On Thu, 10 Sep 2015 16:57:54 +1000, rickman <gnuarm@gmail.com> wrote:

> On 9/9/2015 8:18 PM, David King wrote:
>> On Wed, 9 Sep 2015 12:12:41 -0700 (PDT), whit3rd <whit3rd@gmail.com>
>> wrote:
>>
>>> On Tuesday, September 8, 2015 at 9:07:35 PM UTC-7, David King wrote:
>>>> I would like to generate simulated ECG (electrocardiogram) signals in
>>>> PC software, but since they are subaudio, they cannot be output
>>>> through the sound card.
>>>>
>>>> My idea is to use the raw ECG signal as an envelope with which to
>>>> amplitude modulate an audio carrier.
>>>
>>> That can work, but the usual treatment (as when seismometers feed into
>>> analog tape recorders) uses FM (add a bias voltage, do V-F conversion
>>> with the guaranteed-always-positive V).   AM modulation is more
>>> troublesome to demodulate.
>>>
>>
>> Thanks for the suggestion. However, I was planning to use a consumer
>> audio editing application such as Adobe Audition which does not
>> provide for frequency modulation by complex signals.
>>
>> Several people have reasonably suggested I just buy a DAQ. But I would
>> eventually like to build the demodulator into a stand-alone device and
>> feed the signal in via an MP3 player.
>
> If you want to use an MP3 player, check out a few to see if they work at  
> the lowest frequency you are interested in.  The cutoff frequency is not  
> a brick wall.  It may not even be determined by the analog circuitry.  
> The CODEC I use in one of my designs has an internal high pass filter  
> which is only -3 dB at 3.4 Hz.  I don't remember my ECG data.  Is this  
> low enough?

Some bands are lower eg delta waves - but it might be a place to start

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | sci.electronics.design


csiph-web