Sign in to follow this  
flippityflop

comparator for DC voltage

Recommended Posts

ok, i need a simple DC comparator. so would the attached pic do the job??

all resistors are equal



EDIT from above ^:

my mistake, R1 and R2 (not labelled below) are the only ones that have to be equal. R3 (not labelled below) ideally has high impedance.

post-44241-14279144902915_thumb.png

Share this post


Link to post
Share on other sites

no, i was reffering to a "passive" comparator, sadly also being a very limited one.

there's very little voltage drop and current used in your "active" comparator... it's something very discrete that can be added with very little effect to the rest of the original circuitry.

mine is something that comes up not very often, but a cheap one if it ever does. you'd hardly come across R1 and R2 that are equal. maybe you can readjust the rest of the original circuits, so that they are, but there's no guarantee it will work out.

probably where we can see this arise often is when we tap this onto voltage references, instead of signal or power lines. add decoupling capacitors, if you do, though.

Share this post


Link to post
Share on other sites

How on earth is that a comparator? It's a potential divider.

A comparator compares two inputs and turns on when one is greater than the other. It has a digital output and two analogue inputs.

Share this post


Link to post
Share on other sites

No, I don't know what you're talking about. The circuit doesn't have a common 0V reference.


Yes, the current through Q is zero because the two batteries are only connected together via one wire and there needs to be two wires to complete the circuit.

Share this post


Link to post
Share on other sites

ok i actually just realized the flaw after i last posted. i thought of mentioning it, but i thought it will have you guys think that i am trolling. (i actually just checked again for additional posts from you guys)

yes, hero999 there needs to be a common ground here for this to be a universally applicable (aside from the aforementioned caveat that you have to balance the R1 and R2).

to see why, we need to visit what was posted in this thread (hence my fear of this being seen as trolling):
http://www.electronics-lab.com/forum/index.php?topic=39704.0


basically, V1 and V2 are just voltage drops, but the actual voltage potential of both grounds of V1 and V2 may be different (can be taken by using a third reference voltage or if you want to be absolute, the negative elementary charge).


so in actuality:

|V3| =
        (V_ref_pos1 - V_ref_gnd2) - (V_ref_gnd1 - V_ref_gnd2)
        if V_ref_gnd1 >= V_ref_gnd2
or
        (V_ref_gnd2 - V_ref_gnd1) - (V_ref_pos2 - V_ref_gnd1)
        if V_ref_gnd1 < V_ref_gnd2

notice that (V1 = V_ref_pos1 - V_ref_gnd1) need not be greater than (V2 = V_ref_pos2 - V_ref_gnd2) to have a positive V3 = V1 - V2, the opposite can actually happen. it really is dependent on the relationship of V_ref_gnd1 to V_ref_gnd2.


anyways, this can be further compactified as:

|V3| = | (V_ref_pos1 - V_ref_uni_gnd) - (V_ref_pos2 - V_ref_uni_gnd) |

where
V_ref_uni_ground = min(V_ref_gnd1, V_ref_gnd2), which is obviously the offset or translation along the x axis our values.



but if we allow V_ref_gnd1 =  V_ref_gnd2 = 0V, then we simply have
|V3| = | V1 - V2 |


as for my part on drawing 2 independent voltage sources, i was trying to be general. but, i probably should've explained or added after i realized it; that we still need a common ground. of course, we can't simply add a shorting wire on both grounds of V1 and V2, as that would bypass the V3 path. a high resistance short also would not work, basically you just have another non-functioning comparator.

what we can do is ALSO have V1 and V2 be sourced from another common voltage source V0, so practically they are biased in a V_ref_uni_gnd which is V_ref_gnd0 from either a single V0 or if you have several individual sources, their grounds must be shorted.


Share this post


Link to post
Share on other sites

Where are you going with this discussion? Your posting is not meaningful unless it is aiming for a conclusive point.

So far, I have not seen anything about the subject of the thread, ie. "comparator for DC voltage".

Share this post


Link to post
Share on other sites

It isn't a comparator.

A common ground is needed because all voltages in a circuit are relative to one another. Measuring potential difference is like measuring distance: you need to start from somewhere.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this