t
in this circuit when I give both the inputs 0V (i.e. v1=0V , v2 = 0V) , I’m not getting the output 0V because there is some offset voltage ,
Can anyone help me ,how to remove the offset voltage and to get 0v output
t
(Especially old-fashioned) OpAmps show a large offset. If you look at your symbol and circuit, you see two pins (1 and 5) labled off_null. Please have a look at the data sheet how to use these for offset cancellation.
Also, what is your goal with this circuit?
Using opamps without negative feedback is only going to work as a comparator in real life.
For a tutorial about opamps the good old “opamps for everyone” from Ti is a very good document.
I’m sort of surprised it pops up on Amazon for USD 73
https://www.amazon.com/Op-Amps-Everyone-Bruce-Carter/dp/012811648X
Unless you’re a smelly hard cover book fanatic you may prefer the PDF version.
https://web.mit.edu/6.101/www/reference/op_amps_everyone.pdf
AKA “slod006b”.
https://duckduckgo.com/?q=slod006b
@Malli I advise you to ask this question on an electronics forum or read @paulvdh excellent links
This is not a ngspice problem, but a lack of understanding how opamps work