Short theory on basic OpAmps or operational amplifiers. I show you 4 main configurations with this components. Comparator, follower, inverted and non-inverted ...

;