I want to ask, what is the purpose of those resistor in the inverting and non-inverting op-amp ? What actually op-amp does ? Op-amp = comparator? Any differences ?
An OpAmp is an amplifier which amplifies the voltage difference between the "+" input and the "-" input. The open-loop gain of the OpAmp is very high. so feedback is needed to bring the gain into a usable range.