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 - Навчання та стиль
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
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!
*_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!_*
I've been wanting a cct like this for YEARS! Thank you for publishing. BTW excellent presentation. Keep up the good work! Kudos!!!
WHY. IS THIS. CHANNEL. SO. UNDERRATED?!
The explanation of what's happening in the circuit is just top notch. Thanks!
I love the simplicity of your design. It's simple and elegant.
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)
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.
Was just about to design this exact circuit (vibration sensor triggered, micro turn off) for a device I'm making. Thanks for this.
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.
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
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.....
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.
I love your videos; they're usually at the level that I can understand what's happening. :)
This is by far the best power saving technique.
you should consider to sell this boards.
Fantastic! Best kind of videos, simple, educative, well explained and most of all very useful. Thanks for teaching us this.
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
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
this is exactly what i need to complete a project i had in limbo for a long time thnx sir
Absolutely outstanding video. I’ve had the same idea for a project, thank you so much for saving me the time and research!
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.
Awesome job mate, looking forward to the PCB design
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... )
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
Thanks for sharing. I think I will try use this for one of my projects.
Great work! I was wondering whether such a circuit existed! I look forward to using it in my projects! Thank you!
Glad it will help you!
These are the i videos love! Good old analog circuits!
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.
Nice one! Useful circuit and very clear, step-by-step explanation.
Thanks for a great demo. Just what I need!
Waw this is exactly what i was looking for, thanks for the super clear explanation!!
Excellent ! I was also trying to make something like it because it is a need for every low power device
Thank you so much!
@@ELECTRONOOBS I tried but it is not working with microcontroller...
@@jeevanshrestha8888 There is an error in the schematic. There should not be a connection between R2 and the gate of the MOSFET.
I wanted to understand everything like you introduce & solve, always 💙💙
Congratulations on reinventing Keving Darrah's Trigboard from 2018
Very good 👍
Look forward to next
Thanks for the video. Waiting for the next one on this topic
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.
Wow! Is it really lower?? That's awesome
Even with LSD-NiMH?
The MCU - maybe. But some dev boards have auxiliary components which draw current even id the MCU is in deep sleep
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!
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
i really love this video, it taught me a lot
Super very very explained and professional keep going.
Clever. I thought about this somehow and needed "advice."
Very well explained! Thank you.
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.
For ref: I believe EEVblog circuit mentioned can be googled with the following keywords "EEVblog #262 - World's Simplest Soft Latching Power Switch Circuit"
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)
very clever combination of digital & analog electronics to improve power efficiency
Very useful 👍. Thank you.
Brilliant. Glad to be a patrion. 👌👌
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
Thankyou very useful waiting for next
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
I learned something new!
Brilliant new video as always! :D
(Please do more stuff with nixie tubes)
Thank! I will!
Not just Like,but Adorable! Awesome, lovely ... Thank you
Very useful video. Thanks!
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
1000% THIS!
Perfect! This is exactly what I need for my post box notifier :) Thank you!!
Did it worked for your notifier?
No it does not worked for me, I am now using wifi door sensor with Tuya app. Its cheap and working fine
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!
Such Awesome Job, keep on Sir
It's very useful Project ❤❤❤
Sir you are great, I wish I will be like you some days.....
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 :)
Your pfp is beutiful.
Awesome & Step by step explanation❤
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 ???
Great. Was looking for something like this.
loved this one , great effort .
Very nice. Thanks for sharing. :D
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?
We can use scr instead of transistor. But Great. I appreciate your effort to explanations.
Excellent. Smithers... Excellent.
In the circuit, transistor’s Collector and Base are connected directly to each other, short circuited. The rest is awesome. Thank you..!
Connecting two high side signals is not a short.
Just pay attention to 3:50 and observe Base and Collector short circuit.
Very nice! Thanks for sharing!
Thanks for the nice explanation!
Thanks for this, very handy circuit.
Did you ever make this using small smd components?
This is awesome video of yours man...
That is a very handy little circuit!
Ofcourse we like your video.. 👍🏻👌🏻
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
Brilliant.... Thanks a ton mate.
Great idea!
Did you ever get around to making printed circuit boards with surface mount components?
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 ?
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 🙏
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
Interesting topic. I hadn't thought about it. So many new projects start coming to mind. Thanks
Glad to hear that. maybe you can share any of your projects with us :)))
@@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
@@PGrimp great ideas ... I can add to them a GSM post notifier (no wifi) and many types of presence detection approaches (e.g. PIR)
@@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 😅
thanks - great video. did you end up building the pcb ?
Liked the tutorial , it will be good if you explain something about latches
Very interesting and usefull video !
Nice job!
I wish i had this electrical electronics knowledge in my head 😢
Very useful ! it will help me a lot.
Really useful circuit , using a solar small solar panel as a trigger or a hall sensor can make for an interesting implementation
Yes that is very interesting!
Whoa amazing!
Thank you sir very helpful
is there a reason for using specific transistors and mosfet?
or
can we use normal 2n222 and IRF9540 ?
Nice .... Superb... Very useful... 👍👍👍🙏🙏🙏
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
Very cool!!! Thank you!
@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.
Great circuit....
BTW.. which software used for circuit animation???
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.
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 ?