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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 เม.ย. 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: / @electronoobsenespanol
    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
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 284

  • @ELECTRONOOBS
    @ELECTRONOOBS  2 ปีที่แล้ว

    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

  • @BitSmythe
    @BitSmythe ปีที่แล้ว +17

    *_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!_*

  • @shvideo1
    @shvideo1 2 ปีที่แล้ว +3

    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!

  • @longdongsilver4719
    @longdongsilver4719 3 ปีที่แล้ว

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

  • @k-lab
    @k-lab ปีที่แล้ว

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

  • @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

  • @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)

  • @TheJay6621
    @TheJay6621 3 ปีที่แล้ว +5

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

  • @scootergem
    @scootergem 8 หลายเดือนก่อน

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

  • @mmoci81
    @mmoci81 3 ปีที่แล้ว +1

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

  • @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.

  • @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

  • @yurkshirelad
    @yurkshirelad 3 ปีที่แล้ว

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

  • @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!

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 ปีที่แล้ว +4

      Glad it will help you!

  • @robertd1965
    @robertd1965 10 หลายเดือนก่อน

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

  • @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.

  • @George-uu3tv
    @George-uu3tv 3 ปีที่แล้ว +1

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

  • @sk8t3rcz
    @sk8t3rcz 2 ปีที่แล้ว

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

  • @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 2 ปีที่แล้ว

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

    • @kenengel620
      @kenengel620 ปีที่แล้ว

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

  • @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

  • @TheSupertecnology
    @TheSupertecnology 2 ปีที่แล้ว

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

  • @gpTeacher
    @gpTeacher 3 หลายเดือนก่อน

    Thanks for a great demo. Just what I need!

  • @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!

  • @sjnllp
    @sjnllp 3 ปีที่แล้ว +1

    Awesome job mate, looking forward to the PCB design

  • @Hackvlog
    @Hackvlog 3 ปีที่แล้ว +1

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

  • @MiguelDeMarchena
    @MiguelDeMarchena ปีที่แล้ว

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

  • @saikatdas4843
    @saikatdas4843 2 ปีที่แล้ว

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

  • @docjava1
    @docjava1 2 ปีที่แล้ว +5

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

  • @wuyongzheng
    @wuyongzheng 2 ปีที่แล้ว +31

    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 ปีที่แล้ว +1

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

    • @jantube358
      @jantube358 ปีที่แล้ว

      Even with LSD-NiMH?

    • @paveltsvetkov7948
      @paveltsvetkov7948 ปีที่แล้ว +6

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

  • @alfineranai6952
    @alfineranai6952 3 ปีที่แล้ว +1

    i really love this video, it taught me a lot

  • @letsmakeitmaybebreakit5587
    @letsmakeitmaybebreakit5587 3 ปีที่แล้ว

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

  • @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

  • @seanpaxton2775
    @seanpaxton2775 ปีที่แล้ว

    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.....

  • @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)

  • @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.

  • @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

    • @3nertia
      @3nertia ปีที่แล้ว +1

      1000% THIS!

  • @rishavbhattacharya7937
    @rishavbhattacharya7937 3 ปีที่แล้ว +4

    Very useful 👍. Thank you.

  • @AntiPolarity
    @AntiPolarity 3 ปีที่แล้ว

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

  • @ohmslaw6856
    @ohmslaw6856 3 ปีที่แล้ว +2

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

  • @richierich3135
    @richierich3135 3 ปีที่แล้ว

    loved this one , great effort .

  • @ezzeldin101
    @ezzeldin101 ปีที่แล้ว

    Awesome & Step by step explanation❤

  • @ed.puckett
    @ed.puckett 3 ปีที่แล้ว +13

    I learned something new!

  • @anonuser2640
    @anonuser2640 3 ปีที่แล้ว +1

    Super very very explained and professional keep going.

  • @iantcroft
    @iantcroft หลายเดือนก่อน

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

  • @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.

  • @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 ???

  • @james-barnett
    @james-barnett 3 ปีที่แล้ว +8

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

  • @ytrew9717
    @ytrew9717 ปีที่แล้ว

    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... )

  • @miriamramstudio3982
    @miriamramstudio3982 3 ปีที่แล้ว +2

    Very useful video. Thanks!

  • @ahmadkadahsalim5048
    @ahmadkadahsalim5048 3 ปีที่แล้ว

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

  • @azayles
    @azayles 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.

  • @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

  • @leehewitt9559
    @leehewitt9559 3 ปีที่แล้ว

    Brilliant. Glad to be a patrion. 👌👌

  • @stephenpearce3880
    @stephenpearce3880 3 ปีที่แล้ว +3

    Very good 👍
    Look forward to next

  • @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

  • @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!

  • @mr.anonymous298
    @mr.anonymous298 3 ปีที่แล้ว

    Thanks for the nice explanation!

  • @warperone
    @warperone ปีที่แล้ว

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

  • @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

  • @mixme8655
    @mixme8655 ปีที่แล้ว

    Thank you sir very helpful

  • @tanumoychakraborty6900
    @tanumoychakraborty6900 3 ปีที่แล้ว +1

    Thankyou very useful waiting for next

  • @gedesuarda9009
    @gedesuarda9009 3 ปีที่แล้ว

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

  • @SandeepSandhu
    @SandeepSandhu 3 ปีที่แล้ว

    Brilliant.... Thanks a ton mate.

  • @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?

  • @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

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 ปีที่แล้ว +1

      Yes that is very interesting!

  • @bubufant
    @bubufant 3 ปีที่แล้ว

    Great. Was looking for something like this.

  • @ozcanonal
    @ozcanonal 3 หลายเดือนก่อน

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

    • @mikebond6328
      @mikebond6328 2 หลายเดือนก่อน

      Connecting two high side signals is not a short.

    • @ozcanonal
      @ozcanonal 2 หลายเดือนก่อน

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

  • @baaatli
    @baaatli 3 ปีที่แล้ว +3

    Whoa amazing!

  • @electrohardik8497
    @electrohardik8497 3 ปีที่แล้ว +1

    Quality speaks!

  • @mutthunaveen
    @mutthunaveen 3 ปีที่แล้ว

    This is awesome video of yours man...

  • @Eletronicweb-vx1qr
    @Eletronicweb-vx1qr 3 ปีที่แล้ว

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

  • @phoenixshri
    @phoenixshri 3 ปีที่แล้ว

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

  • @kychemclass5850
    @kychemclass5850 3 ปีที่แล้ว +3

    Very nice. Thanks for sharing. :D

  • @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 😅

  • @aserdasamazigh6316
    @aserdasamazigh6316 3 ปีที่แล้ว +3

    Nice job!

  • @chiparooo
    @chiparooo 3 ปีที่แล้ว

    Very nice! Thanks for sharing!

  • @stm32user
    @stm32user 2 ปีที่แล้ว

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

  • @yaswanthamuluru6190
    @yaswanthamuluru6190 3 ปีที่แล้ว

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

  • @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 🙏

  • @YouCubeHD
    @YouCubeHD 2 ปีที่แล้ว

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

  • @robertcroft2591
    @robertcroft2591 2 ปีที่แล้ว

    Excellent. Smithers... Excellent.

  • @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

  • @dennyfox3139
    @dennyfox3139 3 ปีที่แล้ว

    This is a great circuit!
    With the vibration sensor as the trigger it really only tells you that the door has been moved. You don't know for sure if it is open or closed, or has just been moved.
    How would you modify this design to use a hall-effect switch and magnet, or a magnetic reed relay to trigger the MCU "on" when the switch was either opened or closed? After the MCU has detected it's state and sent the message to say an MQTT broker, it would shut itself off. That way you could sense whether the door or window was actually open or closed.
    I really like your videos!

    • @ELECTRONOOBS
      @ELECTRONOOBS  3 ปีที่แล้ว +1

      True. I'll try to make one with a hall sensor detector!

  • @themisf5077
    @themisf5077 3 ปีที่แล้ว +4

    Very interesting circuit ,and you explained it very well. The only thing i can not understand is why you use those pull down and up resistors.

    • @kenengel620
      @kenengel620 ปีที่แล้ว +1

      Resistors are necessary in circuits like this to prevent a dead short between power and ground while the button is pressed or the transistor is conducting.

  • @oddlytimbotwillison6296
    @oddlytimbotwillison6296 3 ปีที่แล้ว

    That is a very handy little circuit!

  • @elektron2kim666
    @elektron2kim666 ปีที่แล้ว

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

  • @FixTronics
    @FixTronics 3 ปีที่แล้ว

    Brilliant idea
    You always great Noobs

  • @obc9794
    @obc9794 3 ปีที่แล้ว

    Very useful ! it will help me a lot.

  • @JulioSalim
    @JulioSalim 3 ปีที่แล้ว

    Very cool!!! Thank you!

  • @learntocode5464
    @learntocode5464 3 ปีที่แล้ว

    Excellent job

  • @ignition_electronics2520
    @ignition_electronics2520 3 ปีที่แล้ว +1

    great work helpful 👍👍

  • @rohandesigns
    @rohandesigns 3 ปีที่แล้ว +2

    Ofcourse we like your video.. 👍🏻👌🏻

  • @mixme8655
    @mixme8655 ปีที่แล้ว

    Thank you sir

  • @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 ?

  • @ABID5
    @ABID5 3 ปีที่แล้ว

    Well explained. Show us how to do with N-channel mosfet.

  • @DIYwithBatteries
    @DIYwithBatteries 3 ปีที่แล้ว +1

    Nice circuit Dude 👍

  • @ElectrogicsPH
    @ElectrogicsPH 3 ปีที่แล้ว

    Great video. How about using SCR only?

  • @vipinckty1
    @vipinckty1 3 ปีที่แล้ว

    Thank u so much 😍

  • @Jose-tw9bl
    @Jose-tw9bl 3 ปีที่แล้ว +3

    super intresting!