Classic circuits you should know: the latching switch

  Рет қаралды 10,699

learnelectronics

learnelectronics

4 жыл бұрын

Classic circuits you should know: the latching switch
5 boards for about $22 in about 7 days www.pcbway.com
Yes!! I now have merch: teespring.com/stores/learnele... Electronics themed T-Shirts!
HEY YOU ABOUT TO POST SOMETHING STUPID:
Yes, I know my hands are large/fat. It's because of a heart condition I suffer from called Congestive Heart Failure. Here's a link to some information about CHF: cle.clinic/2TdS2Ux
One of the symptoms is that is causes fluid retention, mostly in the hands, feet/ankles, and face.
It will kill me one day. I'm doing ok right now, but someday...
--------------------------------------------------------------------------------------------------------------------
If you are shopping for electronic components, test gear or consumables please consider visiting my Amazon shop @ amazon.com/shop/learnelectronics
Please check out www.patreon.com/learnelectronics and pledge a dollar if you can. It will go a long way to keeping the channel alive. It costs a bit of money to buy all the items and produce these videos. You help is appreciated.
---------------------------------------------------------------------------------------------------------------------
Or....if you'd like to send a one-time donation you can use this link: paypal.me/learnelectronics
----------------------------------------------------------------------------------------------------------------------
Here is all the gear I currently use:
Oscilloscope 1: Rigol 1054Z amzn.to/2PRybtN
Oscilloscope 2: Siglent SDS1202X-E amzn.to/31Kk1yH
Power Supply 1: TekPower TP3005N amzn.to/2TeQnxI
Power Supply 2: RUIDENG DP50V5A amzn.to/2sNicSe
Signal Generator: JS2800 ban.ggood.vip/d9vk
DMM1: Owon18B amzn.to/2SbIGLs
DMM2: Aneng 8008 amzn.to/2sNQncI
DMM3: Aneng 8009 amzn.to/2S5qeEp
DMM4: Uni-T UT801 amzn.to/2S89SuL
Soldering Station1: Zeny (Yihua)862D+ amzn.to/2S49z4e
Soldering Station2: KSGR T12 amzn.to/2Wk7Dn9
Light Meter Smart Sensor AS803 amzn.to/2B2gyRg

Пікірлер: 68
@nigeljohnson9820
@nigeljohnson9820 4 жыл бұрын
Small point and being rather pedantic, but I think best practice would have the unused input connected high, rather than joining the gates inputs together. It really does not matter for this circuit, but for faster circuits it matters, as it increases the load on the driving gate. This is a really nice solution. I assume that if the button is held pressed the circuit toggles on/off in oscillation. This would certainly happen if it were a Schmitt trigger nAnd. Without any hysteresis in the gate, the oscillation might be very fast, holding the output near mid rail at a guess. Bit like the arrangement used to linearly biased the gate when using it as a Pierce oscillator.
@nigeljohnson9820
@nigeljohnson9820 4 жыл бұрын
@@andymouse the neat trick is the use of the second gate to hold the oscillating gate in its last state before the switch is opened. It's a simple circuit, but I think a T or D type flip flop is slightly better, as with suitable debounce, it will only switch once on each button push. This circuit is a useful building block that can use up a couple of gates that might be otherwise be wasted.
@nigeljohnson9820
@nigeljohnson9820 4 жыл бұрын
@@andymouse i think the idea is to make the period of oscillation very long, so that it is unlikely that the button will be held for a sufficient time to see the oscillation. The video shows the circuit gives a stable operation. It would be interesting to look at the output as it switches, to see if it is oscillates during the transition. It is still a nice idea, worth adding to the tool kit of building blocks.
@nigeljohnson9820
@nigeljohnson9820 4 жыл бұрын
@@andymouse in as much as it has two stable states, I think it qualifies as a latch. I do have a problem with connecting the input to an RC. If you look at the specs for these devices, they require the input voltage to transition through the undefined level between high and low very quickly. This is because there is a risk of both the high and low output transistors being on at the same time. This results in a short across the supply rails. There are a number of amateur circuits where the transition time rule is broken and the circuits still work, but professional designers try and avoid such circuits as there is a risk of unexplained failures. There is no guarantee that ICs of the same type made by different manufactures will perform in the same fashion when operated in an unspecified mode. One of the rules for professional circuit designers is to ensure the circuit components are used in a way that fully conforms to their data sheets. The reason is simple, self preservation. A designer cannot complain to the IC manufacture if the product starts to show unexplained failures, when the IC is being used outside its specification. The risk, and cost, of a product recall is then the responsibility of the circuit designer.
@nigeljohnson9820
@nigeljohnson9820 4 жыл бұрын
@@andymouse I think the circuit can be made to work with a Schmitt trigger, this solves the transition problem, but the choice of the feed back resistors becomes important to ensure the input voltage crosses the hysteresis input voltage. Usually not designing to the data sheet is by accident, either due to failure to fully read it or because it is ambiguous. A circuit designer needs to be very brave, arrogant or stupid to do it deliberately. Those who think they know better than the IC designers usually come to regret it. That said, it is not uncommon to find errors in the IC designs themselves, forcing IC manufactures to issue work arounds for bugs on the chip.
@ohsnapfit2096
@ohsnapfit2096 Жыл бұрын
When I built this, the button seemed unreliable, I have to press it very very quickly, and still isn't bulletproof. It worked best with an LED and 1.2k resistor. I tried different capacitance values, and it worked best with electrolytic 1uF. I don't really know what I'm doing here, just seeing what sticks, but will try tying the pin 5 and 2 to VCC. Any other thoughts? It is build on a bread board.
@jonathansera6134
@jonathansera6134 4 жыл бұрын
Dude, this vid is great. I've been trying to crack the code on how to have a single-button latch for so long now. You rock!
@learnelectronics
@learnelectronics 4 жыл бұрын
You are welcome!
@raym9691
@raym9691 4 жыл бұрын
Great video and circuit, I was looking for this one 6 months ago, I ended up using a 555 to flip flop a transistor.. way more parts this circuit would simplify it thanks for sharing!
@opalprestonshirley1700
@opalprestonshirley1700 4 жыл бұрын
Hope you are doing well in the current craziness. Electronics is one of those hobbies that's great for these current times. Great circuit. I don't have any MOSFET's have order some and setup this circuit. Thanks Paul.
@uguraltunbilek
@uguraltunbilek 4 жыл бұрын
thanks for your good explaned
@teslakovalaborator
@teslakovalaborator 4 жыл бұрын
Thanks for another great video ;) To be honest, this circuit is new to me, because I so far I have used ICs such as 7472,7474, 4013
@KarlA-vk4kn
@KarlA-vk4kn 4 жыл бұрын
Hi Paul great video and tutorial. I have a 4093 would this be ok to use also? Hope you're keeping well. Stay safe
@andyjohnson4485
@andyjohnson4485 4 жыл бұрын
Stay safe Paul, from hunkered down Southern Spain!!
@michaelpadovani9566
@michaelpadovani9566 4 жыл бұрын
Another great circuit you should know!
@shvideo1
@shvideo1 2 жыл бұрын
It is an interesting circuit but hard to understand how it works with the capacitors connected like that and gates tied together. I wish you would explain it a little more.
@LostInLeiden
@LostInLeiden Жыл бұрын
me too
@FixDaily
@FixDaily 4 жыл бұрын
What's the standby power consumption, do you have any idea? I would love to see the Schmitt trigger with feedback PS: No need for a P-channel mosfet, it can be an N-mosfet as well, since it can go high or low. although P-channel mosfet will be more efficient when turned off
@melplishka5978
@melplishka5978 3 жыл бұрын
Yes plz , do a Schmidt trigger one bud.
@zman4150
@zman4150 4 жыл бұрын
Thanks for the vid! I would be interested in seeing an LED bargraph voltmeter using a couple of LM3914's.
@JahanZeb1976
@JahanZeb1976 4 жыл бұрын
*wonderful circuit. I didn't understood where did you connect the mosfet gate in the end?*
@FixDaily
@FixDaily 4 жыл бұрын
Yes it will be at the end, that point can go HIGH and LOW, opening and closing the mosfet as well.
@mrdimpzz
@mrdimpzz 4 жыл бұрын
Hope ull recover soon from your heart problem. Take care.
@LostInLeiden
@LostInLeiden Жыл бұрын
I built this with nand gates from a 7400 and 5V Vss. It should still work right? But mine doesn't
@myetis1990
@myetis1990 4 жыл бұрын
GREATE JOB FRIEND. I think You have a healthier heart rather than those who post smth stupid to you, because of that they would not post smth stupid if they had not a dirty and unhealthy heart.
@NeoMK
@NeoMK 4 жыл бұрын
Cool, but I dont see the source in the diagram. Did I miss it?
@JahanZeb1976
@JahanZeb1976 4 жыл бұрын
Wonderful question! They are standard pin 14 positive supply and pin 7 negative supply in many digital ICs including 4011 ic.
@Electronzap
@Electronzap 4 жыл бұрын
Yeah, like learningZone said, you power the Integrated circuit and the output can power an LED directly. Sometimes the schematic is drawn to show the op amp/logic gate IC power connections and other times it isn't. So you have to keep that in mind when looking at schematics.
@baldrickdaisy8982
@baldrickdaisy8982 4 жыл бұрын
Thanks for another great classic. Stay safe! Rick down under :)
@learnelectronics
@learnelectronics 4 жыл бұрын
Thanks, you too!
@richardjagielski8499
@richardjagielski8499 4 жыл бұрын
Wouldn't this work equally as well with an N channel or P channel mosfet?
@melplishka5978
@melplishka5978 3 жыл бұрын
Can this circuit have bounce ?.
@keithking1985
@keithking1985 4 жыл бұрын
as soon as you pointed out the cap i recognized the circuit but made with bjt's instead of NAND gates also with option of a mosfet controlling a higher load that KASAN TV's channel put up once.. good channel too.. videos called one button push circuit! I think! PAUL that was awesome as usual... : )
@georgemorris8766
@georgemorris8766 4 жыл бұрын
I would like to see the Schmitt trigger with feedback
@ohsnapfit2096
@ohsnapfit2096 Жыл бұрын
Where is power connected to? Edit: pin 14 on the chip from the data sheet. I was just confused looking at the video.(getting my feet wet, sorry for the noob question)
@ku4nz
@ku4nz 4 жыл бұрын
Another good video, interesting, useful. 73
@learnelectronics
@learnelectronics 4 жыл бұрын
Glad you enjoyed it
@vegtersbaas
@vegtersbaas 4 жыл бұрын
Can you do this circuit using Schmidt triggers such as 74HC14D. Thanx :)
@learnelectronics
@learnelectronics 4 жыл бұрын
Yes
@rolandberendonck3900
@rolandberendonck3900 4 жыл бұрын
Sorry to ask you Paul, but why would this circuit not work with an N Channel mosfet with a pull-down resistor?
@adabill295
@adabill295 4 жыл бұрын
Paul, great video but a lot of us are not EE's. It would be helpful to show the voltage supply. Do you need a resister ahead of the LED? Yes i would helpful to use a MOSFET so we can control things of higher voltage. How high a voltage can this control. Maybe you audience is changing and I need to get back to a more basic channel! I have really enjoyed your circuits but I need them more basic for my limited understanding.
@Allan-mf1he
@Allan-mf1he 4 жыл бұрын
Hows this circuit with switch bounce? Did this with a 555 before and there was no switch bounce. Would be nice if you could cover debouncing.
@jonathansera6134
@jonathansera6134 4 жыл бұрын
looks to me like the two 1uF caps add some debouncing. look up "Schmitt trigger debouncing circuit"; I found that circuit to be a bit more reliable than cap debouncing, but it makes the circuit slightly more complicated because you need one more chip and a diode. Lastly, there is a specific chip made for debouncing which is the MC14490, which works beautifully, but they're harder to come by than schmitt triggers.
@BrucesWorldofStuff
@BrucesWorldofStuff 4 жыл бұрын
Wow that is cool. I have leds under my kitchen cabinets that ia have hooked up to a Dark Circuit (off of the interscreen) that I built with some used parts and a old night light sensor an made my own etched PCB for it... I have the set so that the Leds go on at dusk and off at dawn via a 12v PS and a relay. Everything is in its own little box and everything... :-D Been working great for 3 years but sometimes I want to be able to turn them the Leds on, when it's a cloudy day and it's still to light for the sensor to work the relay. This would be cool to add as a secondary bypass to make that happen... I don't have mofests either but you could use a A1015 or S9012 PNP or 2N3904 NPN transistor and have it turn on / off a secondary relay connected to the Robot right? Anyway this is in my "ToBuild" video saved list to do because I want to update the Led circuit and now that I am stuck in the house for 2 week because of the 19 bug, sothis is a great time to make PCBs and circuits! LOL Stay safe my friend! Remember the 10 Ft rual is a thing to do for now... /:- ( LLAP
@MalagasOnFire
@MalagasOnFire 4 жыл бұрын
Thanks for the video. wash hands, measure temperature, clean , clean and clean .. follow the medical procedures
@incxxxx
@incxxxx 4 жыл бұрын
Where is the input for the latch???
@billfield8300
@billfield8300 4 жыл бұрын
Hey Paul.. great circuit but I didn't see where to attach the positive rail... ??
@learnelectronics
@learnelectronics 4 жыл бұрын
Pin 14
@billfield8300
@billfield8300 4 жыл бұрын
@@learnelectronics Thanks Paul. Be safe.
@gartmorn
@gartmorn 4 жыл бұрын
My first family member is in self isolation as his partner is unwell. Hopefully not cv but possible as she works in a restaurant. It doesn't really hit home until it affects you personally! The large supermarkets here are starting to ration certain items as people are panic buying. It's a crazy world! Stay safe my friend!
@learnelectronics
@learnelectronics 4 жыл бұрын
Thank you, I am trying. You take care as well.
@georgechambers3197
@georgechambers3197 4 жыл бұрын
You Kind of lost me on the MOSFET connection? A cool circuit that I could use too. Thanks for the video!
@FixDaily
@FixDaily 4 жыл бұрын
He meant to connect the p-mosfet to the Ouput of the latch circuit. Since it can go Low or High it will open and close the mosfet as well.
@keithking1985
@keithking1985 4 жыл бұрын
i was just going to tell ya what FixDaily did. but he put perfectly.. just connect the MOSFET's Gate to the out put where the LED was. And its drain & source to a separate/higher voltage/current... (but not AC) but you can also control AC with a relay & this too. P.S hope this helps you George!!
@davidluther3408
@davidluther3408 4 жыл бұрын
WHERE DO YOU APPLY THIS TYPE OF CIRCUIT?
@rolandberendonck3900
@rolandberendonck3900 4 жыл бұрын
To switch on a robot he explained.
@davidluther3408
@davidluther3408 4 жыл бұрын
THAT DO NOT TELL ME ANYTHING.
@talideon
@talideon 2 жыл бұрын
@@davidluther3408 To toggle something on and off. Like an on/off button, or the caps lock key on a keyboard. It just takes a bit of imagination.
@pulesjet
@pulesjet 4 жыл бұрын
I have a butt load of 4011 stashed away here some place.
@Chrisamic
@Chrisamic 4 жыл бұрын
Hunker in my bunker, Hunker in my bunker. Hunker in my bunker, 'cause there's frig all else to do. (sung to the chorus of Good Ship Venus aka friggin' in the riggin'). Yeah I may be showing my age here.
@bblod4896
@bblod4896 4 жыл бұрын
Hunker in the Bunker...Stay healthy.
@johancornelis3719
@johancornelis3719 4 жыл бұрын
is it me? a switch toggle ON and OFF don't get why all the other stuff? Love your video's btw ....and not an electronical person
@Chrisamic
@Chrisamic 4 жыл бұрын
It's because you may want to use a very tiny switch which has a very low profile. These switches are momentary - they are only closed when you are pressing them and as soon as you let go it goes open again. That's not something you want in an on/off switch so they are used in a lot of flat panel applications - control panels in a lot of equipment like computer printers, HVAC, modern TVs etc. Behind each and every one of these flat panel on/off switches is this circuit, or something very much like it that has a latching effect so your equipment stays on when you take your finger off the button. These switches are also extremely reliable because they are nothing more or less than a formed metal dome which flexes up and down. Technically it's not even a moving part in the normal sense. In addition to this, the switch also only needs to switch milliamps at low voltage instead of mains current at many amps. Switching mains voltage can result in surges of many dozens of amps (inrush current) which can severely limit the life expectancy of conventional switches. Have you ever turned on a light switch and heard it go pop? That's a spark between the switch contacts that has just burnt yet another tiny crater in the contacts. In the worst case, the contacts can be welded together so the switch never turns off, ever again. Another reason to use this type of latch circuit even if the device might be able to use a micro-controller to do the same thing (like turning on the robot which has micro that presumably could do this function) is that the inherent capacitance in this circuit provides it's own "debouncing". That's a bit more technical and something I won't go into in this reply, but it's a big problem if you try to control a micro processor with any type of switch with no other circuitry. (Yes there are software work-arounds but they are never perfect).
@johancornelis3719
@johancornelis3719 4 жыл бұрын
@@Chrisamic Whow what a reply! A latch is an electronic logic circuit that has two inputs and one output. One of the inputs is called the SET input; the other is called the RESET input. Latch circuits can be either active-high or active-low. Had to look this up. Thanks a lot! Sorry for sounding stupid ;-)
@Chrisamic
@Chrisamic 4 жыл бұрын
@@johancornelis3719 It was not a stupid question, it was just a question that required an answer. Stupid questions are the ones you don't ask :-)
MOSFET - Off after a delay
6:38
learnelectronics
Рет қаралды 11 М.
Classic Circuits You Should Know: Delayed Start
10:12
learnelectronics
Рет қаралды 35 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 35 МЛН
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
Classic Circuits You Should Know: OpAmp Timer
8:30
learnelectronics
Рет қаралды 14 М.
Classic Circuits You Should Know: Latching Switch
5:38
learnelectronics
Рет қаралды 18 М.
5 Soft Latching Power Circuits For Arduino Or Any Microcontroller!
24:07
Classic Circuits You Should Know: Light/Dark Detector
6:38
learnelectronics
Рет қаралды 10 М.
#18:  Push on, Push off, Transistor Soft Latch Circuit on a Breadboard
7:42
BBCircuits by Steve Morrison
Рет қаралды 31 М.
Latch Circuit - Wake up + 0 Power Consumption (useful circuit)
9:16
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
Classic Circuits You Should Know: Voltage Follower
10:19
learnelectronics
Рет қаралды 27 М.
Common Circuits You Should Know: The Current Mirror
8:41
learnelectronics
Рет қаралды 34 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,6 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,3 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 9 МЛН