I need to create a circuit that will take in a Vin, and then for a Vin of less than or equal to 1V, or a Vin greater than or equal to 2V, an led will light up.
For this I can only use one power supply of +-5V, and the circuit cannot draw more than 50mA.
Basically, its Vin goes to the Circuit which goes to the led
The Attempt at a Solution
I'm having a hard time imagining this, but I was thinking that this will probably require an op-amp where the power supply is connected to it at +5V on one terminal and -5V on the other. Then I would need this opamp for the Vin, to output a negative value if Vin is between 1V and 2V; and positive otherwise.
However, I am not sure how to do that.
any help would be appreciated.