Alright, so, my background is more mechanical engineering and computer science in nature, and it's been quite a long time since I've done anything EE related. So, know that I know the basics, but beyond that, I'm pretty rough, here.
I guessthat the easiest way to do this is to write out the logic in pseudocode (that's the CS major in me). Suppose I have a bunch of AA batteries, and based on how many there are, I want to direct the output to a different circuit. Assuming a AA battery is 1.5V:
if (Vin <= 1.5V)
Vin >> circuit1
if (1.5V < Vin <= 3V)
Vin >> circuit2
if (3V < Vin <= 4.5V)
Vin >> circuit3
And so on. So, if I put in one battery, the voltage is directed to a circuit that, say, lights a bulb. If I put in two batteries, a second bulb (and only the second bulb) lights up. If I put in three batteries, a third bulb (and only the third bulb) lights.
Assume I don't know the resistance of the circuits; all I know is Vin, and I want to switch between circuits based on these thresholds. Is this possible?
I guessthat the easiest way to do this is to write out the logic in pseudocode (that's the CS major in me). Suppose I have a bunch of AA batteries, and based on how many there are, I want to direct the output to a different circuit. Assuming a AA battery is 1.5V:
if (Vin <= 1.5V)
Vin >> circuit1
if (1.5V < Vin <= 3V)
Vin >> circuit2
if (3V < Vin <= 4.5V)
Vin >> circuit3
And so on. So, if I put in one battery, the voltage is directed to a circuit that, say, lights a bulb. If I put in two batteries, a second bulb (and only the second bulb) lights up. If I put in three batteries, a third bulb (and only the third bulb) lights.
Assume I don't know the resistance of the circuits; all I know is Vin, and I want to switch between circuits based on these thresholds. Is this possible?