You need to use EasyEDA editor to create some projects before publishing
LM393 charger connected LED circuit
934 2
pattang2018 6 years ago
I have be been experimenting with the LM393 to trigger a LED when my charger is connected to a battery pack on my Baofeng radio. The pack is dual 18650 at 8.4v and a charger module XL4015 which i connect to the pack. I have battery level indicator built into the pack with press button to show it. Ive tried one circuit that the led come on at 8,4v exactly, but it never drops out correctly, 8.35 drop out would be ideal, such as when the charger cable is disconnected. [https://easyeda.com/pattang2018/lm393-charging-indicator](https://easyeda.com/pattang2018/lm393-charging-indicator) ![RD-5R battery pack](//image.easyeda.com/pullimage/JrijWhzFvpWiWc8b0rcUKpOMcIUbaG9dZBU2diYd.jpeg)
Comments
andyfierman 6 years ago
@pattang2018, Sorry but your circuit will not work. You are trying to compare two voltages, both of which are derived by potential dividers from the same charger output voltage. One of the two voltages into the comparator must be a fixed reference voltage against which to compare the varying voltage out of the potential divider. The reference must be sufficiently lower than the input voltage so that it is stable over the range over which you expect your circuit to work. You could use a zener diode or a more accurate reference device to give you an accurate voltage for example, 5.6V from a zener or 2.5V from a reference chip You also have not connected up the comparator correctly. You have left one input to the seond comparator floating. You cannot drive the input to the second comparator (which you do not need to use anyway) from an open collector output from the first one without a pullup resistor. You must not leave unused inputs floating. Why not just sort out the polarity of the inputs to the first comparator and connect the LED and series resitor to that output and then just tie both inputs of the other comparator to ground? You also must have at least 100nF decoupling capacitance across the comparator supply pins and another at least 10uF bulk capacitance across the input supply. This might help: [https://easyeda\.com/andyfierman/Welcome\_to\_EasyEDA\-31e1288f882e49e582699b8eb7fe9b1f](https://easyeda.com/andyfierman/Welcome_to_EasyEDA-31e1288f882e49e582699b8eb7fe9b1f) and: [https://easyeda\.com/andyfierman/Power\_supply\_decoupling\_and\_why\_it\_matters\_\-451e18a0d36b4f208394b2a2ff7642c9](https://easyeda.com/andyfierman/Power_supply_decoupling_and_why_it_matters_-451e18a0d36b4f208394b2a2ff7642c9)
Reply
pattang2018 6 years ago
thanks for input. Just found a 5v zener in my parts box so will use that to fix reference voltage, diagram above was intial draw when learing the software and will update it from desktop draught. Im testing live on breadboard so do have some of the caps mentioned on supply rail but didnt tie down open pins. I will do as you mentioned, i understand better now you explained it I will try update the diagams correctly when finshed testing on beadboard. ty sir.
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