Sonsivri

Electronics => Projects => Topic started by: odsk on January 13, 2010, 04:27:58 04:27



Title: DC offset removal
Post by: odsk on January 13, 2010, 04:27:58 04:27
Hi All,
What is the best way to remove the DC offset from a signal? (15-20V DC (not constant and will be in this range), 1 VPP signal overlayed on top of it) I am trying to get the 1VPP out of it.

Regards,
odsk


Title: Re: DC offset removal
Post by: PilotPTK on January 13, 2010, 04:50:11 04:50
Tons of different ways to do it..  If you're feeding a Micro-Controller (PIC, AVR, etc), probably the easiest way is to resistor divide it (say max is 21V - divide by 4.2 gives you 0-5V).. Read divided voltage into A/D and then subtract the offset in software.

That's just one example.  Tell us what you want to 'do' with the signal and I'm sure myself or someone else can help you further.

PPtk


Title: Re: DC offset removal
Post by: borberk on January 13, 2010, 06:09:06 06:09
Simplest way to do this is capacitive coupling but depending on the nature of useful signal it could be useless. In case of video signal (1Vpp) it can be used.


Title: Re: DC offset removal
Post by: waicon on January 13, 2010, 06:11:36 06:11
frist: friquency of ac signal ? if high enough, use a capacitor  ;D ;D ;D
second: if very low friquency driff, use op-amp cmrr mode to clamp DC, but u need a referance voltage.


Title: Re: DC offset removal
Post by: odsk on January 13, 2010, 01:59:21 13:59
Thanks Gents for your replies,

Frequency is 40K. the signal contains digital data as bits sent serially and I am going to use a PIC 16f877a to try and read this data.
I am favoring more the way PilotPTK mentioned with a small addition:
1 digitize the incoming signal
2 smoothing on the signal with an LP filter, and read it
3 do 1-2 (to remove the offset dynamically).

regards,
odsk


Title: Re: DC offset removal
Post by: oldvan on January 13, 2010, 03:03:05 15:03
Opto Isolator may be extremely useful here.


Title: Re: DC offset removal
Post by: odsk on January 13, 2010, 03:36:51 15:36
Opto Isolator may be extremely useful here.
Thanks,
 but How? I thought about that before but if I get the voltage+signal to the diode how it will make the on/off for the signal to pass.
odsk


Title: Re: DC offset removal
Post by: petarp on January 13, 2010, 04:20:06 16:20
Hi. You can use HCPL7840 analog opto-couplers.

Best Regards.


Title: Re: DC offset removal
Post by: oldvan on January 13, 2010, 08:12:19 20:12
If offset is consistent enough, a zener diode in series with the LED portion of the Opto Isolator would do the job.


Title: Re: DC offset removal
Post by: borberk on January 13, 2010, 08:40:55 20:40
Use capacitive coupling and clamper:
http://www.tpub.com/content/neets/14181/css/14181_214.htm
http://www.tpub.com/content/neets/14181/css/14181_215.htm


Title: Re: DC offset removal
Post by: hate on January 14, 2010, 06:07:48 06:07
Opamp subtraction might be another option. It can be done with a single opamp, near infinite input resistance and offset to be subtracted can be varied by a trimpot or something.

Regards...


Title: Re: DC offset removal
Post by: waicon on January 14, 2010, 12:43:44 12:43
if frequency bandwilth not too big maybe use high frequency transformer, that little trans always in modem nearby phone jack.
trans + differantial pair opamp could do the job.


Title: Re: DC offset removal
Post by: sa_mo33958 on February 09, 2010, 11:21:38 11:21
I think first you have to isolate your circuit from line there are three ways:
1- Transformer isolation : Like the one used in dialup modem or ISDN Line
2- Opto isolation: Like CPC series from CLARE Co.
3- Capacitance isolation:

but in your application I think transformer is the best try products from MidCom Company or Pulse.
www.midcom-inc.com
www.pulseeng.com


Title: Re: DC offset removal
Post by: carbontracks on February 09, 2010, 01:30:27 13:30
Capacitive coupling sounds fine for the application, as far as I understand it, and it will be by far the easiest solution to implement.

If its digital, couple it to half your digital supply voltage (like 2.5V for a 5V supply) then just feed it into a schmiddt trigger buffer, or a comparator if you need a specific amount of hysteresis.


Title: Re: DC offset removal
Post by: odsk on February 15, 2010, 12:58:57 00:58
Thanks all for your help.
I built a circuit that have a capacitor coupling with  Lm2901 comparator and the extracted signal look fantastic  :).
Thanks again for your help.
ODSK


Title: Re: DC offset removal
Post by: DreamCat on March 06, 2010, 05:06:41 05:06
If the signal can not allow distortion, you also can use a op amp form a subtracter to extracted it .


Title: Re: DC offset removal
Post by: hate on March 06, 2010, 02:59:41 14:59
If the signal can not allow distortion, you also can use a op amp form a subtracter to extracted it .

Is this anything different than what I suggested

http://www.sonsivri.com/forum/index.php?topic=27008.msg91046#msg91046

or are u seconding my suggestion?

Regards...


Title: Re: DC offset removal
Post by: flyback on March 07, 2010, 06:00:31 18:00
You may try this circuit:
U1 will remove the DC offset, but inverts the signal
U2 will restore the right polarity
Good luck


Title: Re: DC offset removal
Post by: Everflow on April 12, 2010, 01:45:04 13:45
Opto Isolator may be extremely useful here.

Hi there, correct me if I am wrong.
You have an analog signal that has 1Vpp DC offset. You digitalize this signal through a ADC and you process the values in serial stream. Assuming that I've got this right, assuming the conversion resolution is given (lets say 8bit) and the offset symmetric you could "remove" this offset mathematically through your MCU processes. Ofcourse I don't have more info about your circuit or the way you process the data but if you can do that it saves you extra components without compromising the accuracy of your conversion.
So the main idea. If your ADC provides a negative value you can add the mathematical absolute value of the offset divided by 2 (0.5V digitalized depending on your resolution) on the measured value and have the true value w/o the offset. Vise versa on positive value you can substract that absolute value etc etc.
It will require more code and I don't know what's your flexibility on that but if it could be implemented in your case:
1) Saves space on PCB
2) Requires less components
3) It's more accurate (if offset doesn't change)

As I see my info is kinda outdated but may be in use somehow :)

Best regards,
Spyros


#Edit# Mistakenly I quoted wrong msg. Sorry about that :/


Title: Re: DC offset removal
Post by: DreamCat on April 12, 2010, 02:33:18 14:33
Is this anything different than what I suggested

http://www.sonsivri.com/forum/index.php?topic=27008.msg91046#msg91046

or are u seconding my suggestion?

Regards...


oh, sorry, I didn't read all reply before I post...so my post isn't repeat your suggestion.
just same think.