Author Topic: Anyone Familiar With This Circuit Logic in Analog Way?  (Read 2644 times)

0 Members and 1 Guest are viewing this topic.

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11642
  • Country: my
  • reassessing directives...
Anyone Familiar With This Circuit Logic in Analog Way?
« on: July 07, 2016, 05:54:59 pm »
i can do it with mcu, but it seems to be overkill and unstable (PWM output need taming to make it a stable voltage, (DAC)), and probably slower. so i'm seeking analog way of doing this, not sure the correct term for this kind of circuit to google.



basically the circuit will output the lowest voltage between its input voltages. i'm thinking of some transistors arrangement, but i cant think of a proper way.

spec:
- both input impedance should be high somewhere greater than 100Kohm (1Mohm preferably) because Vi1 and Vi2 come from high resistive voltage divider impedance of around 10Kohm.
- BW: dont care, as long as it can produce stable voltage. somewhere above 10KHz will be acceptable
- output capacity is to be used as Vref for other circuit, so output impedance doesnt necesarily to be significantly low since it wont drive any significant load.
- a slight voltage drop (diode) is acceptable since it can be compensated on the inputs.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Signal32

  • Frequent Contributor
  • **
  • Posts: 251
  • Country: us
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #1 on: July 07, 2016, 06:22:29 pm »
How about comparator which drives two MOSFET's, one MOSFET is on when comparator output is high and other MOSFET is on when comparator output is low.
MOSFET source connected together, here is where you will find your voltage.
Something like attached ( appropriate transistor resistors not included + you may also have to swap which voltage goes to which MOSFET drain)
 
The following users thanked this post: Mechatrommer

Offline bson

  • Supporter
  • ****
  • Posts: 2270
  • Country: us
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #2 on: July 07, 2016, 06:52:49 pm »
A comparator and an analog 2:1 mux.  Buffer the inputs.
 
The following users thanked this post: Kilrah

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11642
  • Country: my
  • reassessing directives...
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #3 on: July 07, 2016, 07:04:58 pm »
thanks Signal32. can i change the n-mosfets with npn bjts? which one better? i heard mosfet is less stable compared to bjt in linear mode, no?
bson, i dont have 2 channel analog multiplexer. i'm trying the discrete solution.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Signal32

  • Frequent Contributor
  • **
  • Posts: 251
  • Country: us
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #4 on: July 07, 2016, 07:17:48 pm »
BJT's will not work here at all because of multiple reasons. You're trying to forward a high-impedance voltage. There will be a voltage drop across the junction of the BJT. Also you'll be controlling the base with a different voltage which will mess up forwarding the original voltage.
 
The following users thanked this post: Mechatrommer

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #5 on: July 07, 2016, 08:11:44 pm »
100K resistor from a supply more positive then your maximum input to the base of a NPN transistor, 22K emitter resistor.
A diode from the base to each of your inputs, output is the emitter, job done?

The base will be ~0.6 volts more positive then the lower one of your inputs (Due to the diode), so the emitter will be at a voltage equal to your lower input.

If you want to buffer, replace the diodes with two PNP transistors, and lower all the resistors by a factor of 10 (but do respect the reverse Vbe limit of the PNP parts).

Regards, Dan.
 
The following users thanked this post: Mechatrommer

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11642
  • Country: my
  • reassessing directives...
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #6 on: July 07, 2016, 08:49:03 pm »
job done?
if you meant this, i think the base voltage will follow the larger input...


Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline rfeecs

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: us
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #7 on: July 07, 2016, 08:54:00 pm »
Maybe something like this?
 
The following users thanked this post: Mechatrommer

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11642
  • Country: my
  • reassessing directives...
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #8 on: July 07, 2016, 09:06:35 pm »
Maybe something like this?
it seems to do the job in simulation. but requiring 2 opamps. thanks.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #9 on: July 07, 2016, 09:23:02 pm »
if you meant this, i think the base voltage will follow the larger input...

Diodes the other way around, output from the other end of the 22K, bottom of the 22K to negative rail.
Or replace diodes with PNP transistors, emitter to the base of the NPN, collector to negative rail input to base of PNP.

Pretty sure either will get it done.

Regards, Dan.
 
The following users thanked this post: Mechatrommer

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #10 on: July 07, 2016, 09:30:50 pm »
Yes, 2 op amps and 2 diodes seem to be quite good, output will only go down to 0.8V though.

Posted in full in case any LT'er wants to continue with it.
« Last Edit: July 07, 2016, 09:37:04 pm by StillTrying »
.  That took much longer than I thought it would.
 
The following users thanked this post: Mechatrommer

Offline rfeecs

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: us
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #11 on: July 07, 2016, 10:06:26 pm »
Yes, 2 op amps and 2 diodes seem to be quite good, output will only go down to 0.8V though.

Posted in full in case any LT'er wants to continue with it.

Those little glitches at the transitions might start to be a problem up at 10kHz.

Here's another possible version of Dan's circuit:
 
The following users thanked this post: Mechatrommer

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #12 on: July 07, 2016, 11:42:23 pm »
rfeecs/Dan's 2 transistor version.

Emitter resistors 1K, diodes pull-up resistor 10K, freq 10 KHz. Input Z probably varies 150K-400K, output Z
8 to 5K ?
.  That took much longer than I thought it would.
 
The following users thanked this post: Mechatrommer

Offline MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11642
  • Country: my
  • reassessing directives...
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #13 on: July 07, 2016, 11:58:31 pm »
Diodes the other way around, output from the other end of the 22K, bottom of the 22K to negative rail.
Or replace diodes with PNP transistors, emitter to the base of the NPN, collector to negative rail input to base of PNP.
understood and it worked in sim, thanks.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Anyone Familiar With This Circuit Logic in Analog Way?
« Reply #14 on: July 08, 2016, 12:26:54 am »
The three transistor variant has much higher input Z if that matters to you.

Regards, Dan.
 
The following users thanked this post: Mechatrommer


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf