You need to use EasyEDA editor to create some projects before publishing
LM741 as a Voltage comparitor
576 5
Patrick Puxley 4 years ago
Hi Newbie here trying to use a LM741 as a voltage comparitor to read the output of a current sensor. Below is a standalone circuit to test my understanding. Voltage divider is set to 3.5V reference using a 15V supply. And a voltage regulator is being used to provide the input voltage I thought that for an input below Vref I should see zero at the output 6 and for an input over Vref I should see the input voltage (less a bit) Problem is I see 1.3v for no input. What am I doing wrong or what have I misunderstood Thanks Patrick ![Screenshot 2020-02-19 at 12.29.10.png](//image.easyeda.com/pullimage/Kg8WRbIgV4nrZ35OVKML4vHZXGfuMQ5NKizPq0DX.png)
Comments
andyfierman 4 years ago
"I thought that for an input below Vref I should see zero at the output 6..." The 741 opamp is a very old design which does not have a rail-to-rail output swing. A low level output will be a volt or more above the negative rail. "...and for an input over Vref I should see the input voltage (less a bit)" And for the same reason a high level output will be a volt or more above the positive rail. However,  your circuit will not work reliably because when you open the switch,  you leave the non-inverting input floating. You cannot do this because the two inputs require a small but non-zero bias current. Offhand I cannot remember if the current into
Reply
andyfierman 4 years ago
the inputs of the 741 flows into or out offthe input terminals. Either way you must return the non-inverting input to something like a mid-rail voltage through a resistance It is an unusual device in several ways an in fact is quite far from being a classical opamp, especially its input stages. There are some interesting articles about the original design and how it came about on the web. Please look up the 741 on wikipedia and study the datasheets for it. Please also note that although it will function, the 741 is not intended to be used as a comparator. :)
Reply
Patrick Puxley 4 years ago
Thank you for that. Will read up and try and find a more suitable item.
Reply
andyfierman 4 years ago
Bizarrely some of the dedicated comparator chips cannot tolerate a differential input of more than some specified amount - which is a but counterintuitive for a comparator - so you may have to check the differential  (the difference between the two inputs) and the common mode (the common bit of the input voltage that both inputs see) range over which that differential input spec applies. You may also therefore have to pot down the input swings/voltages to fit inside both ranges.
Reply
Patrick Puxley 4 years ago
Thanks. I have some LM393, LM311,LM358s coming. I thought the LM311 looked promising for what I want. I need to read 3.1V output from a current sensor when 4A is flowing, with 2.5V output for 0A flowing, so intend to set the threshhold at around 2.8V with the divider ![Screenshot 2020-02-20 at 17.23.46.png](//image.easyeda.com/pullimage/drlf1aLakmTHb9LRFGeYIghcuZJapvQuXSEuLJCt.png)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice