I have this setup going into an MCU. I'm using a multimeter to verify voltages, and I notice whenever i set the input voltage to 0, the output of the OP amp is over 1 volts. When i increase voltage it starts following it. THe minimum volts it is giving is the 1.x volts. Why is this so?
Opamps have a limit in the voltage they can output. According to the datasheet, the output voltage usually ranges from -13.5 to +13.5 volts given a +15 and -15 volt supply. This means that the opamp output cannot go below the negative supply plus 1.5 volts and cannot go over the positive supply minus 1.5 volts. In your case, the output cannot go under 1.5 volts and over 3.5 volts.
from this page. You supply a frequency into C1 and a negative voltage will be present at the negative plate of C2.
Alternatively, you can substitute your current one with a "rail-to-rail" opamp which can get much closer to the supply rails.
You are lucky to be seeing any behaviour similar to an op-amp at all at that rail voltage. It really prefers to run at +/- 15v, this is an old-skool op-amp.
If you look at the OP27 data sheet, you will see the 'input voltage range' specification is typically +/- 12.3v with a +/- 15v supply, which is 2.7v away from either rail. So the typical op27 doesn't even have a valid input range when supplied with less than 5.4v. The guaranteed specification is +/- 11v, so no valid input range for less than an 8v supply. If you look at figure 12 on page 9, they don't bother to plot a supply voltage of less than 7v.
The output voltage swing is also limited, typically +/- 13.5v with a light load, so 1.5v away from either rail, which is perfectly adequate when you have the headroom of 15v supplies.
Have a look at the functional block diagram on the first page of the data sheet to see the reasons that the input and output range get nowhere near to the rails.
If you want to have outputs or inputs close to a rail, you need to choose a rail to rail (R2R) opamp. LM324 is not true R2R, but it will run on 5v and get you to the -ve rail, however it still won't get within 2v of the positive rail.