garfy
Newbie level 4
I have an inclinometer that outputs a range of -5 to +5v. The output of the inclinometer will be fed to my PIC that can only takes in positive voltage in the range of 0-5V.
I have the following circuit as shown in the attachment. The gain of the op amp is --0.5 in this case.
When I put Vin to Ground, Vout has a voltage of 3.75V. When I put Vin to 5v, Vout measures 1.24V from the voltmeter. Why isn't the voltage 2.50V and 0V respectively. The op amp i'm using is LM358. I'm prototyping on breadboard.
I am new to op amp, would appreciate any help. Thanks!
I have the following circuit as shown in the attachment. The gain of the op amp is --0.5 in this case.
When I put Vin to Ground, Vout has a voltage of 3.75V. When I put Vin to 5v, Vout measures 1.24V from the voltmeter. Why isn't the voltage 2.50V and 0V respectively. The op amp i'm using is LM358. I'm prototyping on breadboard.
I am new to op amp, would appreciate any help. Thanks!