Controlling Voltage Range from Sensor Signal

Hey everyone,

I have a project where I would like to control a range of voltage outputs from a sensor signal. In this case, taking a signal that is 0-10 volts, and using some method to only allow the range of 4-6 volts to "pass" through. All voltages below 4 and above 6 would read as 0. Or in another case, for example, only allow voltages from -1-1 volts to "pass" through, while voltages -10 to -1 and 1 to 10 read as 0.

On top of that it would be beneficial to be able to lower that range by using some type of voltage divider, for example, making the range 4.5 to 5.5 volts.

I want to do this with just analog circuitry.

I have thought of zener diodes and tried different op-amp scenarios but have not discovered anything yet.

Any ideas?

Use a level shifting op-amp circuit, with a pot to control the gain.
If you are going to have negitave voltages you need a dual rail supply for the op-amps.

See this:-

Note that your input signals should never be outside the range of your op-amp's power supply, so if you have a 10V signal you need at least a 10V power supply.