Тёмный

Power Latching Circuit 

PKAE Electronics
Подписаться 14 тыс.
Просмотров 10 тыс.
50% 1

A very stable and reliable power latching circuit for your projects. A single push button ON/OFF circuits with no power drain in it's OFF state.
Using a P-Channel MOSFET and two NPN BJTs with a few resistors and a capacitor, this simple circuit makes your projects look a feel more professional.
IRF4905 P-CHANNEL MOSFET:- amzn.to/3NN0pED
BJT Transistor Pack including 2N2222 :- amzn.to/48zpjjd
See follow up testing video here:- • Power Latch Testing
See follow up Arduino Power Latch Circuit here:- • Arduino Power Latch (S...

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@BersekViking
@BersekViking 9 месяцев назад
I think you should have a resistor in series with the push button. As the circuit is now, you are connecting a 22uF capacitor, charged to 9V, directly over the B-E junction of the transistor. Just a matter of time before it fails.
@paulpkae
@paulpkae 9 месяцев назад
Thanks for your comment. It's given me an idea for an interesting experiment. Watch this space...... 😁
@EdevaldoPereira
@EdevaldoPereira 9 месяцев назад
And as you increase input voltage, the energy of the discharge will increase with the square of the voltage, making the device more likely to fail. A few kOhm in series should help. But when the transistor on the bottom right turns on it may also be taking the energy discharge. So having it in series with the capacitor may work better.@@paulpkae
@paulpkae
@paulpkae 9 месяцев назад
@BersekViking many thanks again for your comment. I have now put this through some testing and have published a follow up video. A link has been added to my comments above (click "...more" if you cannot see it). Would be very interested to hear your thoughts. Thanks again.
@onit996
@onit996 2 месяца назад
I agree. In the datasheet, it looks like 500mA are still okay for the base current, so a 22ohm resistor would adequately limit the current in a 9V circuit, and shouldn't harm the functioning.
@onit996
@onit996 2 месяца назад
But maybe put it in series with the capacitor to also limit the current through the collector.
@pault6533
@pault6533 9 месяцев назад
I like your schematic animation. Is any switch debounce warranted, or is there sufficient switching delay? What voltage range applies? How much current to operate?
@paulpkae
@paulpkae 9 месяцев назад
The capacitor is already wired inline with the switch, there is no additional debounce circuitry required. I have tested at 5V, 9V, and 12V but you're really only constrained by the ratings of the components you utilise. The 2N2222 has an absolute max Collector to Emitter voltage of 40V, but you can always substitute the transistors with those of your own choice. With differing transistors however you may need to also play around with the resistor values slightly. The power overhead is negligible. In its OFF state there is no current drain once the capacitor is charged; there will be some minor leakage current but
@davethedaemon9024
@davethedaemon9024 9 месяцев назад
Few seem to acknowledge high-side switching with P-Channel MOSFETs. Thanks! I build my own multi-rail power supplies for my projects and need high side switching due to a common ground. A problem with P-Channel mosfets is a relatively high VGS(th). The IRF4905 may not work well with 3.3v because the VGS(th) is 2.0v to 4.0v. It's hard to find ones with lower VGS(th). I have some very real NDP6020Ps with a very very low VGS(th). I also have dozens of counterfeit ones. Fair warning - These aren't made anymore and you can only buy counterfeit rejects that are unusable. FYI - There's an interesting IC for N-Channel high-side switching. The LTC1157 is expensive at $6 US. An internal charge pump will boost the gate drive voltage 5.4V _above_ the _positive_ rail to drive an N-Channel mosfet on the high side. Charts seem to suggest a normal operating range between 2.75v and 5.5v. I bought 10 for my next set of projects.
@paulpkae
@paulpkae 9 месяцев назад
Thanks for your comment. Some interesting aspects for people to consider.
@ConsultingjoeOnline
@ConsultingjoeOnline 6 месяцев назад
Great video. Thanks! Q: Do you think there would be any issue using a 500k ohm resistor instead of the 660k for a 12vdc input and 12v relay on the load?
@paulpkae
@paulpkae 6 месяцев назад
I would have thought that would be OK. However I did find its a bit of a balancing act between the transistor types and resistor sizing. I may still have this breadboard rigged up at home. In which case I will test it put for you and let you know.
@Vulpecula607
@Vulpecula607 8 месяцев назад
For some reason this circuit works for me on a breadboard only. I used off the shelf TO92 components for that. But implemented on a PCB with SMD Parts (BC847CDW1T1G and BUK4D38-20PH) it is just on all the time and trying to switch it only lets the voltage dip down for a second before coming back up. (I’m trying to latch a 7.4V 2S LiPo battery.)
@paulpkae
@paulpkae 8 месяцев назад
That sounds frustrating. The type of transistors your using will influence the perfect resistor sizing. It sounds to me like you need to get a scope on your board and see what's happening. Monitor the capacitor charge and NPN base voltages as a minimum. It will probably shed some light on what the issue is.
@user-py7ih9et4p
@user-py7ih9et4p 13 дней назад
Did you find the problem?
@jensschroder8214
@jensschroder8214 9 месяцев назад
If there is a large capacitor at the output. Then it can switch the transistor back on via the 100k.
@yongsu2733
@yongsu2733 9 месяцев назад
Block by a diode?
@paulpkae
@paulpkae 9 месяцев назад
Well spotted, thanks for your comment. Yes, any back feeding current could turn the two BJTs back on and activate the output again. A blocking diode at the output will resolve it. You will have to take into account the voltage drop across the diode (in addition to effect of the MOSFET ).
@jjoeygold
@jjoeygold Месяц назад
Have you considered the limits of Vin ? As I think there may be issues at Vin=24v
@paulpkae
@paulpkae Месяц назад
Believe I tested it at various voltages, but probably no more than 12V. The circuit is an example arrangement which may need adapting depending upon individual circumstances; load current, voltage supply and component ratings being key factors to consider. Out of interest, why do you specifically think 24V is the limit?
@jjoeygold
@jjoeygold Месяц назад
@paulpkae because I tried similar circuits and I think gate threshold might break down
@stiiffyrabbit
@stiiffyrabbit День назад
It occurs to me that you might obtain additional function from the switch, if you DID time the length it is depressed. I would like a switch that is 'on/off' but, after being pressed for 2 seconds, powers an 'alternative on' function - maybe some other mosfet or circuit?
@paulpkae
@paulpkae День назад
Hi, thanks for watching and your comment. You could achieve the circuit you suggest by charging a capacitor via a resistor when the button is pressed. Then use a comparator (or 555) to check when the capacitor charge reaches a given threshold. The output of the comparator can then in turn activate another function. I have posted a previous video in which the the single button provided three functions, but that was using a microcontroller. See link below. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2yTPqQ3P5pQ.htmlsi=f8mBrQJYezLPxUF4
@igorzherebiatev5751
@igorzherebiatev5751 9 месяцев назад
Hi. Thanks for the schematic. I have built this one recently. Based on the comments to the older video with similar one. Didn't work well for me with 4 v power supply. But may I use an n-channel mosfet with p-n-p transistors just to switch polarity? I have a bunch of n - channel, but no p-channell. And they are too expensive to buy.
@paulpkae
@paulpkae 9 месяцев назад
Thanks for the comment. I think many of the circuits we see on RU-vid (including my one) have derived from an EEVBlog post he did some time ago. I guess there is only one perfect solution and every variant we see is simply getting closer to that perfect solution. At 4V you may need to play around with the resistor values to obtain suitable current to turn on the BJTs. As for using N-Channel MOSFETs that would of course change the logic of the circuit and would need to be re-arranged. It may be possible to combine two N-Channel MOSFETs (one inverting the other) to achieve the same effect. I bought a pack of P-Channel MOSFETs for just £9.99, See the links in my description.
@igorzherebiatev5751
@igorzherebiatev5751 9 месяцев назад
@paulpkae thanks for such a great response. With my first build, I can turn it on, but I can't get it off. About transistors - I suppose to use a p-n-p bjt for a latch and n-channel type as a key
@paulpkae
@paulpkae 9 месяцев назад
@@igorzherebiatev5751 not quite sure what you intend doing, but bear in mind, depending how you arrange the circuit, a BJT may end up drawing current even when the circuit is in an off state.
@igorzherebiatev5751
@igorzherebiatev5751 9 месяцев назад
​@paulpkae Hi again. At first, I wanted to say thank you for your answers. At second. I just got a fully functioning version of your scheme but with a N channel mosfet. The P channel is rare to find from salvaged and desoldered boards and the cheapest ones to buy costs more than pound of white bread here. So I just used a pair of PNP transistors, S8550, and an unknown type of N channel mosfet from an old motherboard. Reversed a polarity of the capacitor and set a "+" as a ground. Tested it in a simulation and built it on board. Had to increase the capacitor to a 1000 micro Farad. And lowered the resistance from 660k to 330 because it will be used in 9 v device. Had an interesting effect. You have to wait for about 15 seconds before you can turn it on again.
@paulpkae
@paulpkae 9 месяцев назад
@@igorzherebiatev5751glad you got it working. Well done! N-Channel MOSFETs are indeed much more common. As are NPN BJTs.
@js4512
@js4512 4 месяца назад
I am trying to figure out a latching circuit to control a 1 amp draw at 24 volts what component values would I need for each to reliably maintain the overall circuit integrity? I want something bullet proof, I am using it to turn on and off a gas regulator for welding with a tig torch.
@paulpkae
@paulpkae 4 месяца назад
Possibly a latching relay but, given the safety nature of your requirements, I would urge you to seek a proprietary, possibly "industrial", product for this.
@S_e_r_g_ei
@S_e_r_g_ei 8 месяцев назад
I'm watching from Russia. Well done author! Respect! Made simply and reliably! But, there should always be a scheme! Preferably posted separately or in the video itself, at least for 4-5 seconds. Then it will be considered a full-time job, and this is already professional and high-quality! And you will want to watch something else on this channel! //// Смотрю из России. Автор молодец! Респект! Сделано просто и надёжно! Но, всегда должна быть схема! Желательно отдельно выложенная или в самом ролике, хотя бы на 4-5 секунд. Тогда это будет считаться полной работой, а это уже профессионально и качественно! И захочется ещё что-то смотреть на этом канале!
@paulpkae
@paulpkae 8 месяцев назад
Thanks for your comments. It's interesting to know where in the world my videos are reaching. When you say "scheme", do you mean schematic? If so, you can always pause the video at say 1:00 exactly.
@S_e_r_g_ei
@S_e_r_g_ei 8 месяцев назад
@@paulpkae I think RU-vid is watched all over the world. And You are seen all over the world! And it is very valuable that you conduct an explanation of any product. I watch a lot of similar material from Russia, as well as from all over the world. Of course, you can stop the video and look closely at the scheme (diagram), but this is not serious at all. :) And it is always very valuable when a specialist additionally lays out a scheme (diagram). After all, it is not at all difficult to upload and view the archive on Google, specifying it in addition to the video. And it is advisable to lay out such schemes (diagram) not only for specialized electronics programs with the extension (.spl7 ; lay6), but also in a simple format.png ; .jpg ; .bmp So that you can view these diagrams in a simple viewer. It's just my kind advice. Sincerely from Russia. \\\\ Я думаю, что Ютуб смотрят по всему миру. И Вас видят во всём мире! И очень ценно, что вы проводите объяснение какого-либо изделия. Я смотрю очень много подобного материала из России, а также со всего мира. Можно конечно остановить видео и посмотреть внимательно схему, но это уже совсем несерьёзно. :) А всегда очень ценно, когда специалист дополнительно выкладывает схему (диаграмму). Ведь совсем не сложно выложить и дать просмотр на Гугл архив, указав его в дополнении к ролику. И желательно выкладывать такие схемы не только для специализированных программ для электроники с расширением (.spl7 ; lay6), а и в простом формате .png ; .jpg ; .bmp Чтобы можно было посмотреть эти схемы в простом просмотрщике. Это просто мой добрый совет. С уважением из России.
@maximini8427
@maximini8427 2 месяца назад
Can you explain this in logic gates, i'm having trouble understanding this😅
@iblesbosuok
@iblesbosuok Месяц назад
Replace both BJT with _open collector NOT_ gate, base as input and collector as output. Actually, the key is _Thevenin equivalent_ of 680k and 100k resistors vs _Vbe_ threshold.
@cncdavenz
@cncdavenz 6 месяцев назад
Hi, Any chance to modify this circuit to also time off to save battery. I think this would be useful for many people. Good luck with your channel.
@paulpkae
@paulpkae 6 месяцев назад
Hi thanks for your comment. If you want the circuit to simply timeout and kill power after a given period, that's quite straight forward to implement. If you want the circuit to timeout after a period of inactivity, that need to be implemented within your code. Which option are you interested in?
@cncdavenz
@cncdavenz 6 месяцев назад
just a simple circuit that will alow a battery to last for a long time when off. thanks Dave@@paulpkae
@paulpkae
@paulpkae 6 месяцев назад
@@cncdavenz the circuit in this video does exactly that. In the off state, the MOSFET prevents current drain from your battery.
@harveyellis6758
@harveyellis6758 3 месяца назад
Looks a lot like schematic / circuit posted in a RU-vid video by Dave Jones from 12 years ago ;-)
@paulpkae
@paulpkae 3 месяца назад
There's lots of variations of Dave's circuit. on RU-vid This particular iteration is one that I tweaked and found to be the most stable.
@stephenstewart1653
@stephenstewart1653 8 месяцев назад
Is there a way to shut off using Arduino output?
@paulpkae
@paulpkae 8 месяцев назад
Yes, there certainly is. That's something I have implemented on several of my own projects. The circuit is actually much simpler because you have software control with a microcontroller. I will do a follow up video with the circuit soon. Thanks for the comment.
@paulpkae
@paulpkae 7 месяцев назад
@stephenstewart1653 I have added a new video in response to you question. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2yTPqQ3P5pQ.html
@noslidemais
@noslidemais 8 месяцев назад
Далее
Every Component of a Switch Mode Power Supply Explained
23:10
The REAL Truth Behind the DVD Logo
01:00
Просмотров 31 млн
Human vs Jet Engine
00:19
Просмотров 113 млн
How a 555 Works as a Timer.
30:13
Просмотров 200 тыс.
Impedance Explained.
22:35
Просмотров 244 тыс.
3 Simple MOSFET Drive Circuits
12:55
Просмотров 138 тыс.
Everything You Need to Know about MOSFETs
35:54
Просмотров 161 тыс.
Power Latch Testing
11:55
Просмотров 1,1 тыс.
Designing a simple audio compressor from scratch
29:23
Просмотров 237 тыс.
5 Ways To Generate A Sine Wave (Analog)
13:16
Просмотров 98 тыс.
Fun with Transistors
24:33
Просмотров 444 тыс.
The REAL Truth Behind the DVD Logo
01:00
Просмотров 31 млн