Latch Circuit - Wake up + 0 Power Consumption (useful circuit)

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • High quality PCB prototypes: www.pcbway.com
    3D & CNC service: www.pcbway.com/rapid-prototyp...
    🔥I want to make another IOT project with a PCB capable of detecting a pulse from a sensor, turn on, send the data to the Internet and then turn off 100%, so we have 0 consumption. That's what we can do with this latch circuit.
    🔀LINKS
    -------------------------------------
    Latch Tutorial webpage: electronoobs.com/eng_circuito...
    Latch + Arduino tutorial: electronoobs.com/eng_circuito...
    🎬VIDEOS
    -------------------------------------
    ESP8266 Door alarm IOT video: • IoT#1 - Door Open Alar...
    ESP8266 database video: • ESP8266 + Arduino + da...
    🤝SUPPORT
    -------------------------------------
    Join my Arduino Course (Spanish): bit.ly/2JY8icE
    ELECTRONOOBS.io: electronoobs.io
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.io/forum/index.php
    Facebook page: / electronoobs
    Canal en Español: / electronoobs en español
    00:00 Intro
    01:55 What I want
    02:37 Latch Circuit Example
    03:08 How It Works?
    06:36 Latch + Microcontroller
    07:44 Second Latch Test
    08:46 Outro
    Like share and subscribe to motivate me. Thank you
    #latch
    #circuit
    #IOT
  • Навчання та стиль

КОМЕНТАРІ • 289

  • @ELECTRONOOBS
    @ELECTRONOOBS  2 роки тому +1

    Arduino Course LEVEL 2 (Spanish): bit.ly/2ZNWgqy
    Follow me on FACEBOOK for more: facebook.com/Electronoobs
    Help me on Patreon: www.patreon.com/ELECTRONOOBS

  • @shvideo1
    @shvideo1 3 роки тому +9

    Hi there. A great video. A couple of points:
    1. I think your circuit explanation at 4:00 point may be incorrect. I built the circuit. As soon as you apply power, the LED connected to output turns on. That's because the BJT turns on immediately because enough voltage is applied to it's base through the "pullup" resistor path, which is also able to supply current to it's base!!
    This can be fixed by removing the wire that connects the collector to it's base (in the schematic)! It's not needed!
    2. I had problems with the circuit at 5:52 as well. I built that one as well. When you press the button the first time the output turns on. But when you press the button again and again the output remains on.
    This is because when you press the button the second time (and onward), the capacitor discharges immediately through the already on second BJT (depriving you of the time you need to "remove you finger from the button"). You can fix this by adding a resistor between the capacitor and the second BJT's collector to slow down the discharge. I used a 2.2 K one that was on my desk and the circuit works! You press the button, the output turns on. You press the button again and the output turns off, and so on.
    With all respect, I am just trying to learn. Great work my friend. Very clever circuit as well. I loved your video. Thank you!

  • @BitSmythe
    @BitSmythe 2 роки тому +24

    *_This is one of the absolute BEST videos I’ve ever seen. It’s short, no annoying music, direct to the point, well illustrated, beautifully animated and perfectly described. CONGRATS AND THANK YOU!_*

  • @scootergem
    @scootergem 11 місяців тому +1

    I've been wanting a cct like this for YEARS! Thank you for publishing. BTW excellent presentation. Keep up the good work! Kudos!!!

  • @TheSupertecnology
    @TheSupertecnology 2 роки тому +1

    WHY. IS THIS. CHANNEL. SO. UNDERRATED?!

  • @k-lab
    @k-lab Рік тому

    The explanation of what's happening in the circuit is just top notch. Thanks!

  • @longdongsilver4719
    @longdongsilver4719 3 роки тому

    I love the simplicity of your design. It's simple and elegant.

  • @BusyElectrons
    @BusyElectrons 3 роки тому +2

    I've seen several variations on this circuit concept, but I like your implementation the best. Well done!
    (edit: I'm referring to the final circuit you presented)

  • @marko62372
    @marko62372 4 дні тому

    I think this is exactly what I was looking for, I had been planning a similar circuit, but wasn't able to do that. I will have to check this video again and learn.

  • @karlfimm
    @karlfimm 3 роки тому

    Was just about to design this exact circuit (vibration sensor triggered, micro turn off) for a device I'm making. Thanks for this.

  • @Diamonddrake
    @Diamonddrake 3 роки тому +14

    This is almost identical to Dave’s simplest soft latching circuit from 10 years ago, but your graphics are better and you provide a real example. One thing though, you glaze over that the mosfet has to be pnp and the bjts must be npn. If people don’t know the circuit symbols then they are going to have a hard time.

    • @uuuu6590
      @uuuu6590 Рік тому

      It is Dave's circuit, with some corrections made in a comment (the second one) 6 years ago.
      Seeing it work in such a visual manner is great

  • @seanpaxton2775
    @seanpaxton2775 2 роки тому

    Many thanks indeed for the very well presented video. Just so you know people are paying attention.... Your circuit diagram has R4 = 100R but on your breadboard, it is 100k. Thanks again for the very clear explanation. cheers.....

  • @Buciasda33
    @Buciasda33 2 роки тому

    Pff... I think you made my day with this circuit...
    Now I have to modify my PCB and code, but it might be worth it. Thank you.

  • @yurkshirelad
    @yurkshirelad 3 роки тому

    I love your videos; they're usually at the level that I can understand what's happening. :)

  • @TheJay6621
    @TheJay6621 3 роки тому +5

    This is by far the best power saving technique.
    you should consider to sell this boards.

  • @mmoci81
    @mmoci81 3 роки тому +1

    Fantastic! Best kind of videos, simple, educative, well explained and most of all very useful. Thanks for teaching us this.

  • @yazdanvakili7057
    @yazdanvakili7057 3 роки тому

    that is a really useful circuit, thanks for sharing, it never crossed my mind that i can use such an efficient method instead of deep sleep with esp

  • @bakupcpu
    @bakupcpu 2 роки тому

    Very nice little circuit. I've been using one of these in a low power flashlight for the fun of it. Works very well. Thanks for sharing! Cheers

  • @MiguelDeMarchena
    @MiguelDeMarchena Рік тому

    this is exactly what i need to complete a project i had in limbo for a long time thnx sir

  • @robertd1965
    @robertd1965 Рік тому

    Absolutely outstanding video. I’ve had the same idea for a project, thank you so much for saving me the time and research!

  • @craftymulligar
    @craftymulligar Рік тому

    I had something similar. May be more complex than yours but easy.
    I had put together with ir motion connected to rechargable batt. Maybe with timer ic s. Connected to voice chip recording went to miniature FM radio transmitter. When a car past by it would set off the motion sensor played the recording and hear it on my radio. One of my best useful projects I built that I liked. Back in the late 90 s. The motion detector was connected to fet transistor to keep power drain down when nothing happens.

  • @sjnllp
    @sjnllp 3 роки тому +1

    Awesome job mate, looking forward to the PCB design

  • @ytrew9717
    @ytrew9717 2 роки тому

    the way to present it is great (let's make it like that, but then we have this problem, so let's do that, etc... )

  • @danielvanmieghem1091
    @danielvanmieghem1091 Рік тому

    EXCELLENT IDEA !! Thank you very much for sharing and explainig it very clearly . I will definitely use this in future projects for my model train layout and others

  • @George-uu3tv
    @George-uu3tv 3 роки тому +1

    Thanks for sharing. I think I will try use this for one of my projects.

  • @ExcitingCreations
    @ExcitingCreations 3 роки тому +8

    Great work! I was wondering whether such a circuit existed! I look forward to using it in my projects! Thank you!

  • @ohmslaw6856
    @ohmslaw6856 3 роки тому +2

    These are the i videos love! Good old analog circuits!

  • @alvarovalencia7023
    @alvarovalencia7023 3 роки тому +2

    Very nice job. If you want to minimize and improve I can suggest to use the IRF7317 (It is a couple of mosfet) and a couple of resistors.

  • @Hackvlog
    @Hackvlog 3 роки тому +1

    Nice one! Useful circuit and very clear, step-by-step explanation.

  • @gpTeacher
    @gpTeacher 5 місяців тому

    Thanks for a great demo. Just what I need!

  • @letsmakeitmaybebreakit5587
    @letsmakeitmaybebreakit5587 3 роки тому

    Waw this is exactly what i was looking for, thanks for the super clear explanation!!

  • @abhijeetbyte
    @abhijeetbyte 3 роки тому +22

    Excellent ! I was also trying to make something like it because it is a need for every low power device

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 роки тому +3

      Thank you so much!

    • @jeevanshrestha8888
      @jeevanshrestha8888 3 роки тому

      @@ELECTRONOOBS I tried but it is not working with microcontroller...

    • @kenengel620
      @kenengel620 2 роки тому +1

      @@jeevanshrestha8888 There is an error in the schematic. There should not be a connection between R2 and the gate of the MOSFET.

  • @saikatdas4843
    @saikatdas4843 2 роки тому

    I wanted to understand everything like you introduce & solve, always 💙💙

  • @metamud8686
    @metamud8686 2 роки тому +1

    Congratulations on reinventing Keving Darrah's Trigboard from 2018

  • @stephenpearce3880
    @stephenpearce3880 3 роки тому +3

    Very good 👍
    Look forward to next

  • @AntiPolarity
    @AntiPolarity 3 роки тому

    Thanks for the video. Waiting for the next one on this topic

  • @wuyongzheng
    @wuyongzheng 2 роки тому +32

    I made similar latch circuit before. Later I realized that most MCU's (atmega328, attiny85, esp8266, esp32 ...) deep sleep current draw is lower than a battery's self-discharge current. Now I never use any latch circuit. Just make sure you skip the linear regulator and power the MCU directly. The most common linear regulator -- AMS1117 -- has quite a high quiescent current.

    • @AlexanderTheMiddle
      @AlexanderTheMiddle 2 роки тому +1

      Wow! Is it really lower?? That's awesome

    • @jantube358
      @jantube358 Рік тому

      Even with LSD-NiMH?

    • @paveltsvetkov7948
      @paveltsvetkov7948 Рік тому +8

      The MCU - maybe. But some dev boards have auxiliary components which draw current even id the MCU is in deep sleep

  • @paulvild
    @paulvild 3 роки тому

    Great video, excellent animation and explanation, with a logical progression of the challenges and the solutions. I would love to incorporate this into my current project that detects an IR remote button press, however unless the circuit is powered on, there's no way that I can think of to detect the IR signal. If anyone knows of a way (other than a phisical button switch press) please share!

  • @rheynalcantara6848
    @rheynalcantara6848 Рік тому

    I'm hoping that you could produce such interesting, good quality design for electronics your avid fan and subscriber, thanks. Learning a lot from you, nice explanation

  • @alfineranai6952
    @alfineranai6952 3 роки тому +1

    i really love this video, it taught me a lot

  • @anonuser2640
    @anonuser2640 3 роки тому +1

    Super very very explained and professional keep going.

  • @elektron2kim666
    @elektron2kim666 Рік тому

    Clever. I thought about this somehow and needed "advice."

  • @marchache
    @marchache 10 днів тому

    Very well explained! Thank you.

  • @wesleymays1931
    @wesleymays1931 3 роки тому +13

    This would be great to turn into a little 5-pin module that you can just solder onto your circuit.
    (Power in, power out, ground, trigger - pull low to turn on, finished - pull low to turn off)
    Also, I already saw the circuit at 5:41 a few years ago while watching EEVblog.

    • @arseivan
      @arseivan Рік тому +1

      For ref: I believe EEVblog circuit mentioned can be googled with the following keywords "EEVblog #262 - World's Simplest Soft Latching Power Switch Circuit"

  • @uyscuti5571
    @uyscuti5571 3 роки тому

    that was a great video u never disappoint us!!!! , I just have a question doesn't the vibration sensor consume power while it's plugged with the battery (or is it that negligible??) or we just make that latch to avoid powering the arduino at all time?(sorry am new to electronics)

  • @Zerofoxthree
    @Zerofoxthree 3 роки тому

    very clever combination of digital & analog electronics to improve power efficiency

  • @rishavbhattacharya7937
    @rishavbhattacharya7937 3 роки тому +4

    Very useful 👍. Thank you.

  • @leehewitt9559
    @leehewitt9559 3 роки тому

    Brilliant. Glad to be a patrion. 👌👌

  • @raymondmichael4987
    @raymondmichael4987 3 роки тому

    This was very informative.
    Please can you create a tutorial on how to design a pcb using easyEDA or Eagle I find it hard choosing line width, top or bottom (for double layer). Because I real like to order those pcb from your sponsors, electronics is my hobby
    Keep up the good work bro

  • @tanumoychakraborty6900
    @tanumoychakraborty6900 3 роки тому +1

    Thankyou very useful waiting for next

  • @dw4rv3n
    @dw4rv3n 3 роки тому

    great idea , I will combine this theory with my emergency LED to control LED will turn on during night day and no interupt during light and thunder are appear

  • @ed.puckett
    @ed.puckett 3 роки тому +13

    I learned something new!

  • @james-barnett
    @james-barnett 3 роки тому +8

    Brilliant new video as always! :D
    (Please do more stuff with nixie tubes)

  • @YouCubeHD
    @YouCubeHD 2 роки тому

    Not just Like,but Adorable! Awesome, lovely ... Thank you

  • @miriamramstudio3982
    @miriamramstudio3982 3 роки тому +2

    Very useful video. Thanks!

  • @peterdkay
    @peterdkay 3 роки тому +6

    Excellent. Please also add a low power (programmable?) timer to your board so you can force a wake-up every hour. This would be useful for a logging application

  • @sk8t3rcz
    @sk8t3rcz 2 роки тому

    Perfect! This is exactly what I need for my post box notifier :) Thank you!!

    • @ingeniossoluciones
      @ingeniossoluciones 2 місяці тому

      Did it worked for your notifier?

    • @sk8t3rcz
      @sk8t3rcz 2 місяці тому

      No it does not worked for me, I am now using wifi door sensor with Tuya app. Its cheap and working fine

  • @vcodevideo
    @vcodevideo 3 роки тому

    Muy bueno e interesante, en el próximo video, podrías de implementar que el mismo botón sirva para apagar el Arduino si lo dejas pulsado unos segundos... Felicidades!

  • @ahmadkadahsalim5048
    @ahmadkadahsalim5048 3 роки тому

    Such Awesome Job, keep on Sir
    It's very useful Project ❤❤❤

  • @Eletronicweb-vx1qr
    @Eletronicweb-vx1qr 3 роки тому

    Sir you are great, I wish I will be like you some days.....

  • @azyfloof
    @azyfloof 3 роки тому

    Neat little circuit! This also answers a questions I had about P channel MOSFETs :)
    You could also do it with the MOSFET and one transistor by using a microcontroller pin to latch the MOSFET gate low via that transistor, then pull the microcontroller pin low again once it's finished what it needs to do :)

    • @LabArlyn
      @LabArlyn 2 роки тому

      Your pfp is beutiful.

  • @ezzeldin101
    @ezzeldin101 Рік тому

    Awesome & Step by step explanation❤

  • @rabindrasharma
    @rabindrasharma 3 роки тому

    Electronoobs i really appreciate ur hard work for these videos , these are really informative and interesting , u post a really good way for beginners to grasp electronics , but I would like to have a video about how u manage battery based project especially when running on really small batteries , whats ur take for this cause My circuits always tends to loose power before itz calulated limit and also i dont know why i can t use my power bank cause it keeps shutting down for small loads , any suggestions ???

  • @bubufant
    @bubufant 3 роки тому

    Great. Was looking for something like this.

  • @richierich3135
    @richierich3135 3 роки тому

    loved this one , great effort .

  • @kychemclass5850
    @kychemclass5850 3 роки тому +3

    Very nice. Thanks for sharing. :D

  • @jantube358
    @jantube358 Рік тому

    Very helpful video! I was looking for something like that! Maybe the ON signal can come from some sort of timer every 12 or 24 hours?

  • @stm32user
    @stm32user 2 роки тому

    We can use scr instead of transistor. But Great. I appreciate your effort to explanations.

  • @robertcroft2591
    @robertcroft2591 2 роки тому

    Excellent. Smithers... Excellent.

  • @ozcanonal
    @ozcanonal 5 місяців тому

    In the circuit, transistor’s Collector and Base are connected directly to each other, short circuited. The rest is awesome. Thank you..!

    • @mikebond6328
      @mikebond6328 5 місяців тому

      Connecting two high side signals is not a short.

    • @ozcanonal
      @ozcanonal 5 місяців тому

      Just pay attention to 3:50 and observe Base and Collector short circuit.

  • @chiparooo
    @chiparooo 3 роки тому

    Very nice! Thanks for sharing!

  • @mr.anonymous298
    @mr.anonymous298 3 роки тому

    Thanks for the nice explanation!

  • @iantcroft
    @iantcroft 4 місяці тому

    Thanks for this, very handy circuit.
    Did you ever make this using small smd components?

  • @mutthunaveen
    @mutthunaveen 3 роки тому

    This is awesome video of yours man...

  • @oddlytimbotwillison6296
    @oddlytimbotwillison6296 3 роки тому

    That is a very handy little circuit!

  • @rohandesigns
    @rohandesigns 3 роки тому +2

    Ofcourse we like your video.. 👍🏻👌🏻

  • @trajanonerd
    @trajanonerd Рік тому

    Thank for the video. Very informative.
    Is there the same or similar circuit in a chip? I need to size down this and since I'll be making a lot of them I'd prefer to just buy it (depending on the price of course)
    Thanks for your help

  • @SandeepSandhu
    @SandeepSandhu 3 роки тому

    Brilliant.... Thanks a ton mate.

  • @docjava1
    @docjava1 2 роки тому +5

    Great idea!
    Did you ever get around to making printed circuit boards with surface mount components?

  • @omsingharjit
    @omsingharjit 2 роки тому

    Can you help me ..
    There are Two type of Toggle on and off circuit are available on the internet one using 555 and other from 3 transistor in both latch circuit one switch is used to on and off the Circuit and the current flow in the circuit is bidirectional mean current goes in one direction when push for turning on and Vaise versa .
    So the problem is , i can't activate this circuit using External Signal or using Transistor because the way it works . I tried connection ldr in place of push switch in order to Fool the circuit by simulating as Push switch so i can on or off using external light powerd by sensor signal but no success .
    Do you have any idea ?

  • @69iqtutorial
    @69iqtutorial 3 роки тому +1

    Hey the video is great, can you please make a video on mosfet driving stuff and gate protection from hv inductive spikes.. i actually have destroyed so many mosfets even though i tried so many protection methods. And the mosfets are original and genuine.. please make a video on mosfets please... its a humble request from a fan 🙏

  • @proffirmanable
    @proffirmanable 3 роки тому

    Nice insight!!! thanks, i guess it only works for switch based sensors?
    I've tried to achieve the same thing like your previous video but with cheap parts and more general usage using attiny13a yet only got 30uA :( my target is 5uA

  • @PGrimp
    @PGrimp 3 роки тому +1

    Interesting topic. I hadn't thought about it. So many new projects start coming to mind. Thanks

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 роки тому

      Glad to hear that. maybe you can share any of your projects with us :)))

    • @PGrimp
      @PGrimp 3 роки тому +1

      @@ELECTRONOOBS 1)A push button pressed by something floating that detects when the cistern is full - always wanted to do something like that but feared to get electricity near water. 2) a sensor and sound repellent placed at my crops field - tried before but ditched due to battery drained fast. 3) a tripwire that sends sms when someone enters my vacation house - it can last one charge for months this way

    • @ashajjar
      @ashajjar 3 роки тому

      @@PGrimp great ideas ... I can add to them a GSM post notifier (no wifi) and many types of presence detection approaches (e.g. PIR)

    • @ashajjar
      @ashajjar 3 роки тому

      @@PGrimp I actually had to abandon a project because of lack of power saving technique some years ago ... we had a Fusball table in our office, and it was really in use most of the time (big office) so we thought to make an IoT status detection based on vibration, but that was really difficult to realise due to the fact that ESPs are not battery friendly 😅

  • @warperone
    @warperone Рік тому

    thanks - great video. did you end up building the pcb ?

  • @yaswanthamuluru6190
    @yaswanthamuluru6190 3 роки тому

    Liked the tutorial , it will be good if you explain something about latches

  • @PhG1961
    @PhG1961 3 роки тому +1

    Very interesting and usefull video !

  • @aserdasamazigh6316
    @aserdasamazigh6316 3 роки тому +3

    Nice job!

  • @rintoantony5449
    @rintoantony5449 2 роки тому

    I wish i had this electrical electronics knowledge in my head 😢

  • @obc9794
    @obc9794 3 роки тому

    Very useful ! it will help me a lot.

  • @piiumlkj6497
    @piiumlkj6497 3 роки тому +3

    Really useful circuit , using a solar small solar panel as a trigger or a hall sensor can make for an interesting implementation

  • @baaatli
    @baaatli 3 роки тому +3

    Whoa amazing!

  • @mixme8655
    @mixme8655 2 роки тому

    Thank you sir very helpful

  • @jeevanshrestha8888
    @jeevanshrestha8888 3 роки тому

    is there a reason for using specific transistors and mosfet?
    or
    can we use normal 2n222 and IRF9540 ?

  • @widsshinigami
    @widsshinigami 3 роки тому

    Nice .... Superb... Very useful... 👍👍👍🙏🙏🙏

  • @TechInventorAman
    @TechInventorAman 7 місяців тому

    what changes i do so that the default state when the power is flowing is ON and the MCU just sends a signal to totally cut off the power or turn the mosfet off . In your case in order to turn on you have an interrupt i want that when the power is there the power should simply flow and once the MCU gives a signal it should cut off

  • @JulioSalim
    @JulioSalim 3 роки тому

    Very cool!!! Thank you!

  • @alex-r2pi
    @alex-r2pi 3 роки тому

    @Electronoobs why do we need Q4 when one can utilize the built in transistor on the pin from the µC? This use case does not need higher voltages than the µC can take.

  • @phoenixshri
    @phoenixshri 3 роки тому

    Great circuit....
    BTW.. which software used for circuit animation???

  • @power-max
    @power-max 3 роки тому +1

    3:40 you shorted the collector and base of your BJT, it will act like a diode forward biased to ground (i.e. a short circuit) and clamp the voltage at the gate of the MOSFET to be 0.7 volts.

  • @fredericfitaire2073
    @fredericfitaire2073 3 роки тому

    Very interesting topic ! But you forget to mention what voltage range you can rely on for the "IN" input. Since the Nano is powered by its VIN pin, the range would be from 7 to 12V (20V max). Could you confirm ? By the way, its seems that the Lipo battery shown in the video is of only one cell, so around 3.7V which is too low for VIN. How did you manage to make your circuit to work with such a battery ?