Extremely simple OpAmp comparator circuit not working
I have the opamp successfully output a voltage but the voltage is extremely low (0.08 v) and it is unusable, I have fixed my circuit to sth (sic) like this:




Figure 1. OP's modified circuit.

Assuming that you forgot to change the component from the default TL081 which is not a rail to rail op-amp your circuit will (not) work as follows:


Inverting input, V-, is at 1 V.
Non-inverting input, V+, is at 5 V.
Since V+ > V- the output should switch high.


If this doesn't work then you have either chosen the wrong op-amp or you have damaged it.

R1 + R2 sum to 200 &Omega; which will pass \$ I = \frac {V}{R} = \frac {10}{200} = 50 \ \text {mA} \$. 10k resistors would be more than adequate to bias an op-amp input.

I recommend that you forget this project for now and build and experiment with basic op-amp amplifiers, inverting and non-inverting, with feedback to control the gain and get them to work while reading and understanding the theory and the fairly simple maths. You can try adjust the input voltages close to the power rails and see when the circuits cease to operate.