Making a latching relay with 555 timer

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 80

  • @repairfreak
    @repairfreak Рік тому +6

    Cool and simple design. I’ve built a similar circuit before with a 555, but had timer function set by the value of a capacitor/resistor combination that powered a small relay.
    For a latching switch that uses a relay to power a heavier load using a low current type push switch, one could use two momentary push switches, one a normally open, one a normally closed.
    These two push switches would be in circuit in this manner:
    Press the N.O. switch and a + battery coil voltage flows through the push switch to a D.P.D.T relay coil and to the ground through the N.C. push switch , and it clamps. To make it latch you also feed + batt coil from the out side of N.O. push switch voltage to one of the two N.O. relay contacts, you then connect a wire between the other contact of the relay to the momentary N.O. Push switches “always hot side.” When you push the norm open (N.O.) switch, relay coil voltage flows and goes through the other N.C. push switch to batt negative & relay latches.
    Summery: When the relay clamps, the one contact of the relay hooked to + then resupplies the relay coil continuously. If one then presses the norm closed (N.C) switch, the relay looses its - Neg connection to the battery and the relay drops out, “opens up.” The other N.O. relay contact of the relay can then be used to switch the hot lead or + DC of another power source to whatever load or device you are wanting to power up. There are also other relays such as T.P.T.T. Triple pole triple throw and more. Except these relays with many poles then become expensive. The resting contact state of each contact can be purchased different, with some contacts being N.C (normally closed) in unpowered state as well.
    Your circuit can do the same and with only one switch if you hook your output that powers the LED instead to a relay coil. I’m not sure how much current a 555 timer chip can supply for a relay coil, I think 0.100A (100mA)? The relay coils operating voltage and resistance would need to be selected accordingly with LED & current limiting resistor removed to operate a relay directly instead. I suppose as an alternative, one could pop in a opto isolator in place of your LED, then power a relay coil through the opto isolator’s switch side “collector” hooked direct to the positive & then through the relay coil to - Neg source of the project if the 555 cannot provide enough voltage and/or current to power the chosen relay directly. Of course Opto-Isolator’s also have max voltage and current ratings for their switch side that one would need to observe. SCR’s are also fun to use for latching circuits. 😎👍

  • @davidharms3562
    @davidharms3562 Рік тому +3

    Great explanation, appreciate the thorough schematics.

  • @TheUtuber999
    @TheUtuber999 6 місяців тому +14

    This circuit is featured on page 48 of the Engineer's Notebook II: A Handbook Of Integrated Circuit Applications by Forrest Mims (1982). It is not a latch but a countdown timer and shouldn't be relied upon to stay in the 'On' state indefinitely. Leave it with the LED on for a few minutes and you will see that it turns off by itself without the button being pressed.

    • @sho-nuff8256
      @sho-nuff8256 4 місяці тому

      Are you sure it is the same circuit, mine has been on for 30 minutes now.

    • @sho-nuff8256
      @sho-nuff8256 4 місяці тому +1

      This circuit has been on for 45 minutes now.. and I just purchased that book you mentioned. I have a few other Forrest Mims books.

    • @jp040759
      @jp040759 4 місяці тому +3

      You are incorrect. The two 10k resistor voltage divider tied to 2 and 6 holds the 555 in and indeterminate state between 1/3 and 2/3 Vcc. As long as there is power it will stay latched in one state or the the other.

    • @sho-nuff8256
      @sho-nuff8256 4 місяці тому

      @@jp040759 Thank you for the clarification.

  • @tedbastwock3810
    @tedbastwock3810 5 місяців тому +1

    The visuals here are amazing. Very well done sir. Thanks for sharing.

  • @jp040759
    @jp040759 4 місяці тому +1

    Another cool circuit with the 555 timer chip. THANX

  • @2wide332
    @2wide332 Рік тому +3

    Thank you, this is an amazing video with a good & clear explanation. Keep up the good work !

  • @tonyd1149
    @tonyd1149 Рік тому +2

    Nice work. Thank you for making and posting this video. Thank you for the schematic and explanation of function. 🙂

  • @minegamers96
    @minegamers96 Рік тому +3

    Really informative, thanks alot!

  • @acestudioscouk-Ace-G0ACE
    @acestudioscouk-Ace-G0ACE Рік тому +3

    Very well presented and explained, thank-you... I've subscribed.👍

  • @viktorgajdos9699
    @viktorgajdos9699 9 місяців тому

    Great explanation, and also a very useful circuit.

  • @DJChesley
    @DJChesley Рік тому +5

    Love it. You should make some more interesting videos on the LM505, as I see it everywhere in all sorts of different hacking videos but never understood what was so special about it!

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

      Versatility. It's special because it can be made to do so many useful things beyond what it was designed to do.

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

    Thank you, great explanation

  • @vngtechlabs
    @vngtechlabs 9 місяців тому

    Awesome effort sir. 🎉

  • @neebwill
    @neebwill Рік тому +3

    Nice video. Very succinct!

  • @TABE-O
    @TABE-O Рік тому +1

    Sweet circuit. Thank you!!

  • @onecircuit-as
    @onecircuit-as Рік тому +2

    Lovely work

  • @savvy_me
    @savvy_me 11 місяців тому +4

    Where can i buy such readymade module and what is it called????

  • @makeratul
    @makeratul 11 місяців тому

    Wow worked for me after some serious tinkering 😅

  • @Robothut
    @Robothut 7 місяців тому +2

    Would it be possible to replace the push switch with a mosfet so that a switch to one of the power supply rails could be used ?

    • @RexxSchneider
      @RexxSchneider 3 місяці тому

      Not easily. When the push-switch is open and the capacitor has charged, the capacitor is either at the positive rail or at ground, while the other side of the switch is at half the supply voltage. A mosfet has a body diode that will conduct in one direction or the other, depending on whether it's p-channel or n-channel, so it will short out one of the two conditions as soon as the voltage across it is more than around 0.6V.

  • @jolexx
    @jolexx 7 місяців тому +1

    Nice circuit, how much power does it draw when it is turned off ? I'm considering it for battery operation.

    • @RexxSchneider
      @RexxSchneider 3 місяці тому

      At 9V the LM555 typically uses around 6mA, but samples vary, and it could be twice that.

  • @S_e_r_g_ei
    @S_e_r_g_ei 11 місяців тому

    I'm watching from Russia.
    Well done! Simple and clear!
    The author, is it possible to make a similar circuit for 220 V?
    To get a pulse relay with one-button control?
    And instead of a mechanical relay, you can use a triac. After all, as a key, a triac is much more reliable than a mechanical relay!
    And if you use a MOSFET or a microchip, then power can be supplied through a low-capacity quenching capacitor, a bridge, a smoothing capacitor and a Zener diode at the desired voltage.
    And yet, there should always be a scheme! Preferably laid out separately or in the video itself, at least for 5-6 seconds. Then it will be considered a full-time job, and this is already professional and high-quality! And then, you will want to watch something else on Your channel again!
    Sincerely from Russia!
    ~~~~~~~~~~~~~~~~~~~~~
    Смотрю из России.
    Хорошо сделано! Просто и понятно!
    Автор, а можно сделать подобную схему на 220 В?
    Чтобы получилось импульсное реле с управлением от одной кнопки?
    И вместо механического реле можно использовать симистор. Ведь как ключ, симистор намного надёжнее, чем механическое реле!
    И если использовать МОСФЕТ или микросхему, то питание можно сделать через гасящий конденсатор малой ёмкости, моста, сглаживающего конденсатора и диода Зенера на нужное напряжение.
    И ещё, всегда должна быть схема! Желательно отдельно выложенная или в самом ролике, хотя бы на 5-6 секунд. Тогда это будет считаться полной работой, а это уже профессионально и качественно! И тогда, захочется снова и ещё что-то смотреть на Вашем канале!
    С уважением из России!

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

    This was exactly what I was looking for. Only in my project the momentary switch is connected to ground on one side, which I cannot change. I therefore tried to control a relay with my switch. This relay replaces your switch in the schematic. Unfortunately the logic is not stable anymore after replacing the switch with a relay? Any tips? I used the NO and C pole. Maybe the capacitor does not work with the relay?

  • @Ibrahim-ne9fo
    @Ibrahim-ne9fo 9 місяців тому +1

    Great work, brother, but I have a question: Does the circuit maintain its last state when the source current is cut off?

    • @_jonathanfilip_
      @_jonathanfilip_ 9 місяців тому +1

      No it doesn’t. When you turn it on it always starts at 0 even if it’s turned off while 1

  • @massaid88
    @massaid88 8 місяців тому +1

    Hello, greetings. I'm from Indonesia. I want to ask how many volts the LED is? and for the load on the LED, for example if I replace it with a relay, is that possible? because I will use it on 220v AC voltage.

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

    Nice video, thanks for sharing it with us, well done :)

  • @Electronzap
    @Electronzap 11 місяців тому

    Nice.

  • @LiquidSnakeSSJ4
    @LiquidSnakeSSJ4 Рік тому +2

    would someone please explain why this is more advantageous over using an appropriate resistor and a switch (without the 555 timer)- what is the benefit of adding the 555 & capacitor? cheers

    • @timharig
      @timharig Рік тому +3

      The switch is momentary. It is only closed while it is being pressed. The 555 timer adds the toggling/latching action that causes it to stay on after the button is released.

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

      In many cases it isn't more advantageous, which is why many appliances, such as table lamps, use a mechanical toggle switch. But the purpose of the circuit is to add a toggling action to the simple momentary switch.

  • @RexxSchneider
    @RexxSchneider 3 місяці тому

    This is important: if you are using bipolar 555 timers, like the NE555 or LM555, you *must* decouple the supply close to the supply pins 1 and 8 with a 100nF capacitor.
    The bipolar 555 timer 'crowbars' the supply as the device switches, drawing around 400mA for around 100ns. Without a decoupling capacitor, that can drop the supply down to ground, whereas a 100nF capacitor will limit the supply voltage drop to less than 0.4V.
    In other words, if you don't decouple the supply, using a bipolar 555 timer is very hit-and-miss, and that is probably the reason for many of the questions here in the comments section. HTH.

  • @kashif8704
    @kashif8704 Місяць тому

    Waht will the state of output when power is applied??
    Does it rest on power on or not
    And i think if we press and hold the push button output will resonate (keep changing it's state from on state to off and vise Versa)

  • @dcocz3908
    @dcocz3908 Рік тому +5

    tandy, radio shack publication 62-510 by forrest m mims iii. engineer's mini-notebook, 555 timer ic circuits cover this with some basic theory

    • @billybbob18
      @billybbob18 7 місяців тому +3

      I loved those books as a kid and still wish I had them. Forrest Mimms had some of the best material for beginners.

  • @barrdack
    @barrdack Рік тому +3

    I tried to use this circuit in practice to control a lamp from two separate switches that are 60ft apart. The circuit is so unstable it either turns on by itself or it refuses to latch and I look like an idiot trying to press the switch multiple times. I was advised to put a small cap between 5pin and ground and one in parallel to S1 to filter high frequencies. Did anyone try this and how did you fix it. Mine latches after the cap hack but not from the first try.

    • @RexxSchneider
      @RexxSchneider 3 місяці тому +1

      The circuit is missing a decoupling capacitor between the supply and ground - use 100nF close to pins 1 and 8, Without that the LM555 is very hit-and-miss when switching because of current spikes as it switches. The CMOS versions don't have this problem, but can't supply so much output current.

  • @hishamqdoumi1786
    @hishamqdoumi1786 10 місяців тому +1

    Great circuit i did it & it works perfectly,but sometimes when i turn the supply off & on again the circuit turns on by itself! How to illuminate that please?

    • @RexxSchneider
      @RexxSchneider 3 місяці тому

      There could be noise picked up on switch-on that triggers the 'on' state. It's difficult to know as it depends on layout, stray capacitance, etc. The 555 should always have a 100nF capacitor between pins 1 and 8 to ensure stable operation.
      To ensure a consistent start-up connect the reset pin (4) to the supply via a resistor (not critical but around 47K will be fine) and also via a small capacitor (not critical but around 100nF will be fine). That will give a "soft-start" at switch on, keeping the reset low for a few milliseconds and ensuring the circuit starts up in the 'off' state.

  • @lovedr.pepper
    @lovedr.pepper 5 місяців тому

    It worked fine with just one LED, but when I set a resistance value to flow 40mA to the LED, I was able to turn it on from off, but I couldn't turn it off from on.

  • @softwaredevlovers
    @softwaredevlovers Місяць тому

    Hi
    Can somebody confirm is that push button or a switch(on/off).
    Thanks.

  • @M1music811
    @M1music811 3 місяці тому +1

    Worked awesomely!
    1 question though.. 😅
    I want this on off to work as a start stop for the Casper electronics sequencer.
    Would I plug the square wave LFO(clock) into the button? And I’d have to take it back out somewhere to go back into the 4040 😅😅
    Ahh I wish I had latching buttons.

  • @gigantic9717
    @gigantic9717 3 місяці тому

    Please make circuit hold 3s to on and hold 3s to off. Thanks. 🙏🙏

  • @francescoranchi3689
    @francescoranchi3689 9 місяців тому

    Could this work with 12v input ?

  • @kyfeam
    @kyfeam Рік тому +2

    will this work with 5 volts DC?

    • @cruciallab
      @cruciallab  Рік тому +2

      Sure, the 555 operates at 4.5 to 16v.

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

    Why is resistor connected to ground?
    Isn't it supposed to come before the LED?

    • @wilhelmvonn9619
      @wilhelmvonn9619 Рік тому +4

      It doesn't make any difference.

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

      I'll assume you are referring to R4 for both questions since you didn't specify.
      1. The output of pin 3 is either at ground potential when "off" or at Vcc potential when "on". When it is at ground potential, there is no potential across R4 and the diode. When it is at Vcc potential, there is potential between Vcc and ground distributed between R4 and the diode. Therefore current flows from pin 3 through R4 and the diode to ground. If they were not connected to ground, the R4/diode circuit would be open and no current would flow through them regardless of the output of pin 3.
      In a different circuit, it might be possible to reverse the diode and connect it to Vcc. Then, no current would flow when pin 3 was "on," at Vcc potential. When pin 3 was "off," at ground potential, current would then flow from Vcc, through R4 and the diode, to pin 3. That however would not work in this circuit since it would interfere with the function of C1.
      2. The order of R4 and the diode is irrelevant. The same current that flows through one must flow through the other.

  • @aguskhusaeni
    @aguskhusaeni 10 місяців тому +2

    mine doesn't work. it can turn on but can't turn off. what's the problem ?

    • @thetooginator153
      @thetooginator153 7 місяців тому +1

      You can test the voltage at pin 6 with a multimeter to make sure the it is getting more than the 2/3 the supply voltage, which comes from the capacitor in the upper left hand corner of the diagram.
      I haven’t tried this circuit yet, but it looks like it should work. The LED turns on in your circuit, so that works. Now just make sure the switch sends >2/3 voltage to pin 6.
      This can get a little complicated, so, watch the video a few times to make sure you see how it works. This is a good way to learn how the 555 chip works, so, it’s worth your time.

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

      @@thetooginator153 great explanation!
      But i already used other circuit for my project. It has two push buttons instead of one (one for on and the other for off). It less efficient but at least it works.

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

    Doesn't matter what type of 555 circuit we use? Because I'm using it ne555 timers.

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

      No. Different manufacturers simply use their own prefix. It's the three fives that matter.

    • @RexxSchneider
      @RexxSchneider 3 місяці тому

      @@johnm2012 TI (for example) manufactures both the LM555 and the NE555, but they are pretty much the same. However, those are bipolar devices. CMOS versions also exist, e.g. LMC555, ICM7555, and others. These have much lower quiescent currents, but cannot supply as much output current, so may not always be suitable substitutes.

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

    please make lathicng hold 3 second to on and off. Thanks

  • @kuhumbuwa
    @kuhumbuwa 8 місяців тому

    🎉

  • @smaroulis
    @smaroulis Рік тому +2

    Great vid, keep it up. Ask the wife about a manicure... it has MAN in the word, can't be that bad :)

  • @lezbriddon
    @lezbriddon Місяць тому

    And I guess if you hold the switch you get oscillation?

  • @Zeddify
    @Zeddify Рік тому +4

    its NE555P. not LM555.

    • @cruciallab
      @cruciallab  Рік тому +2

      Thanks for catching that Kerim. I've updated the title.

    • @muhammadnader190
      @muhammadnader190 4 місяці тому +1

      They are the same

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

    I tried making the latching circuit but used an..... 10uF capacitor and 5 volts. the led took like 5 presses to turn off but like one press to turn on dont know why i tried many different capacitors didnt work.

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

      What value resistors did you use?

    • @RexxSchneider
      @RexxSchneider 3 місяці тому

      Put a 100nF capacitor between pins 1 and 8 to decouple the supply and you'll have much more stable operation.

  • @Bob_V
    @Bob_V Рік тому +3

    A relay and a switch would have been easier !!!!

    • @cruciallab
      @cruciallab  Рік тому +5

      It's not as cool though :)

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

      And how would say, a transistor operate such a switch?

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

      "How does a transistor...?" A transistor IS a switch. 🤦
      As for why use this instead of just a switch, this provides a toggling, debounced on/off signal with a temporary pushbutton switch and common components. It's unlikely your load would actually be a relay if you were to use this, but it provides a satisfying click sound for demonstration purposes.

    • @jjhack3r
      @jjhack3r Рік тому +4

      You’re missing the point

    • @Bob_V
      @Bob_V Рік тому +2

      @@jjhack3r I did not miss the point, this project was just another way to re-event the wheel... that is all. no bad intent on my part. Thanks for jumping out of the Croud for such a small comment !!!!