This time, it's a practical circuit I'm building. I have a source voltage that varies 0-5V (right now I'm just manually setting the voltage, eventually it'll be fed a sine waves). I need to resale that to be 0-2.5V. Since the source isn't very stiff (it's an R2R ladder), and since the IC I have has two OpAmps in it, I decided to first use a buffer, for its hight input impedance, followed by an inverting amplifier with G=1/2.
I am using an LMC6482 single supply rail-to-rail opamp, fed 5V and ground at its V+ and V- pins.
Circuit attached.
The buffer is working fine. Voltage at point B is almost exactly the same as at point A (it's.7V when Vin is 0, but I can probably live with that).
However, the second stage doesn't seem to work. In my first attempt, I grounded the non-inverting input. That resulted in Vout staying around zero, regardless of Vin. Having done some reading, I tried binding the non-inverting input with a voltage divider. Now Vout sits around 2.5V, regardless of Vin.
Am I doing something obviously wrong? OpAmps are fairly new to me, so I can't tell if it's a design problem or if I just effed up the breadboarding.