Delay on-instant off with 555 timer

Collapse
X
Collapse
+ More Options
Posts
 
  • Time
  • Show
Clear All
new posts
  • Dannyx
    CertifiedAxhole
    • Aug 2016
    • 3912
    • Romania

    #1

    Delay on-instant off with 555 timer

    Good day folks. I'm trying to build a little circuit for a project of mine which requires pressing a button to toggle an output in the following fashion: if the button is held for around 5s, the output goes high. When the button is released, the output goes low instantly. If the button is released before the output actually goes high, the next press of the button should require 5s again before the output goes high again. This last bit is important, because what I was able to find was THIS circuit which uses the 555 timer to create a delayed-on circuit.

    There's a couple of caveats I'm facing though: obviously you can see there's no button there - the countdown essentially starts when power is first applied to the whole circuit, so I'm not quire sure where I should drop the button. I guess I could cut VCC to the whole circuit using a SPDT. Even after the fact, I simulated this circuit and although it works, there's still the problem I mentioned earlier: if the button is released too soon, before the output actually swings high, the next press turns it on instantly, since the capacitor is still charged and pin 2, TR, is pulled to GND immediately. I cannot figure out how to overcome this...I tried coming up with various ways to "discharge" that cap so it'd be ready for a new cycle, but couldn't find one that works.

    Most circuits I've seen work in the completely opposite way: the turn-on is instant and they SLOOWLY discharge the cap to get a delayed-OFF...

    Any ideas on how to achieve such result ? Thanks.

    EDIT: here's another idea I came up with and simulated and seems to work. I ditched the 555 entirely and used a MOSFET instead. I got the idea after watching THIS here video which coincidentally or not also talks about a delayed on>instant off scenario towards the end.
    Attached Files
    Last edited by Dannyx; 08-11-2019, 12:25 PM.
    Wattevah...
  • budm
    Badcaps Legend
    • Feb 2010
    • 40746
    • USA

    #2
    Re: Delay on-instant off with 555 timer

    How about this, using SPDT switch?
    Attached Files
    Last edited by budm; 08-11-2019, 02:01 PM.
    Never stop learning
    Basic LCD TV and Monitor troubleshooting guides.
    http://www.badcaps.net/forum/showthr...956#post305956

    Voltage Regulator (LDO) testing:
    http://www.badcaps.net/forum/showthr...999#post300999

    Inverter testing using old CFL:
    http://www.badcaps.net/forum/showthr...er+testing+cfl

    Tear down pictures : Hit the ">" Show Albums and stories" on the left side
    http://s807.photobucket.com/user/budm/library/

    TV Factory reset codes listing:
    http://www.badcaps.net/forum/showthread.php?t=24809

    Comment

    • Dannyx
      CertifiedAxhole
      • Aug 2016
      • 3912
      • Romania

      #3
      Re: Delay on-instant off with 555 timer

      Thanks. So use the switch as a means to "reset" the FET ?

      BTW, the simulator is HERE if you wish to mess around
      Wattevah...

      Comment

      • budm
        Badcaps Legend
        • Feb 2010
        • 40746
        • USA

        #4
        Re: Delay on-instant off with 555 timer

        When SW is in N.C. (released), the cap is discharged through 100 Ohms so the relay will be off almost instantly.
        Last edited by budm; 08-11-2019, 02:10 PM.
        Never stop learning
        Basic LCD TV and Monitor troubleshooting guides.
        http://www.badcaps.net/forum/showthr...956#post305956

        Voltage Regulator (LDO) testing:
        http://www.badcaps.net/forum/showthr...999#post300999

        Inverter testing using old CFL:
        http://www.badcaps.net/forum/showthr...er+testing+cfl

        Tear down pictures : Hit the ">" Show Albums and stories" on the left side
        http://s807.photobucket.com/user/budm/library/

        TV Factory reset codes listing:
        http://www.badcaps.net/forum/showthread.php?t=24809

        Comment

        • Dannyx
          CertifiedAxhole
          • Aug 2016
          • 3912
          • Romania

          #5
          Re: Delay on-instant off with 555 timer

          What if I drop the resistor instantly and just short the cap out ? Arcing at the contacts ? I'm not going to do that, but I'm just curious.
          Wattevah...

          Comment

          • budm
            Badcaps Legend
            • Feb 2010
            • 40746
            • USA

            #6
            Re: Delay on-instant off with 555 timer

            You can do that but it is not good practice. If you have good meter that can capture the discharge current then you can see what it is with and without resistor.
            Never stop learning
            Basic LCD TV and Monitor troubleshooting guides.
            http://www.badcaps.net/forum/showthr...956#post305956

            Voltage Regulator (LDO) testing:
            http://www.badcaps.net/forum/showthr...999#post300999

            Inverter testing using old CFL:
            http://www.badcaps.net/forum/showthr...er+testing+cfl

            Tear down pictures : Hit the ">" Show Albums and stories" on the left side
            http://s807.photobucket.com/user/budm/library/

            TV Factory reset codes listing:
            http://www.badcaps.net/forum/showthread.php?t=24809

            Comment

            • petehall347
              Badcaps Legend
              • Jan 2015
              • 4426
              • United Kingdom

              #7
              Re: Delay on-instant off with 555 timer

              will a diode work i wonder ?

              Comment

              • Dannyx
                CertifiedAxhole
                • Aug 2016
                • 3912
                • Romania

                #8
                Re: Delay on-instant off with 555 timer

                I was thinking the same thing.
                Wattevah...

                Comment

                • budm
                  Badcaps Legend
                  • Feb 2010
                  • 40746
                  • USA

                  #9
                  Re: Delay on-instant off with 555 timer

                  Think about it, all we want is to discharge the caps down to basically 0V, so using diode the cap will not discharge to 0V because when the Voltage is <Vf of the diode it will no longer conduct, so basically the Voltage on the cap will go down to about 0.6V. So why do want to use diode, and what is the reason? The 50K is still in circuit so it will still keep on discharging the cap but it will take a long time to fully discharge charge the cap.
                  Last edited by budm; 08-11-2019, 11:11 PM.
                  Never stop learning
                  Basic LCD TV and Monitor troubleshooting guides.
                  http://www.badcaps.net/forum/showthr...956#post305956

                  Voltage Regulator (LDO) testing:
                  http://www.badcaps.net/forum/showthr...999#post300999

                  Inverter testing using old CFL:
                  http://www.badcaps.net/forum/showthr...er+testing+cfl

                  Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                  http://s807.photobucket.com/user/budm/library/

                  TV Factory reset codes listing:
                  http://www.badcaps.net/forum/showthread.php?t=24809

                  Comment

                  • Dannyx
                    CertifiedAxhole
                    • Aug 2016
                    • 3912
                    • Romania

                    #10
                    Re: Delay on-instant off with 555 timer

                    Just realized a time-delay relay would work just as well. Sure it's a bit bulky, but more fool-proof.
                    Wattevah...

                    Comment

                    • R_J
                      Badcaps Legend
                      • Jun 2012
                      • 9535
                      • Canada

                      #11
                      Re: Delay on-instant off with 555 timer

                      Originally posted by Dannyx
                      Just realized a time-delay relay would work just as well. Sure it's a bit bulky, but more fool-proof.
                      If thats the case maybe there is a solid state time delay relay that would work and be less bulky

                      Comment

                      • Curious.George
                        Badcaps Legend
                        • Nov 2011
                        • 2305
                        • Unknown

                        #12
                        Re: Delay on-instant off with 555 timer

                        Originally posted by R_J
                        If thats the case maybe there is a solid state time delay relay that would work and be less bulky
                        Or, a 25c microcontroller that lets you change your mind, later, as to how the circuit should operate in a variety of circumstances (e.g., is there a dead time that should be enforced after the cycle completes but before it can be triggered, again?)

                        Comment

                        • Dannyx
                          CertifiedAxhole
                          • Aug 2016
                          • 3912
                          • Romania

                          #13
                          Re: Delay on-instant off with 555 timer

                          Correct. That would work too for the "overkill" version, but would require a dedicated supply to run. The relay method COULD work straight off 230v. True, I haven't offered a description of the purpose of the build, that's why you guys are free to suggest any possible implementation of this idea, from simple to "scientific".
                          Wattevah...

                          Comment

                          • eccerr0r
                            Solder Sloth
                            • Nov 2012
                            • 8691
                            • USA

                            #14
                            Re: Delay on-instant off with 555 timer

                            Untested, I should just stick it in the simulator but too lazy.
                            Attached Files

                            Comment

                            • petehall347
                              Badcaps Legend
                              • Jan 2015
                              • 4426
                              • United Kingdom

                              #15
                              Re: Delay on-instant off with 555 timer

                              2 switches or rather one . and 2 relays .plus your timer circuit . will let you wire it up .

                              Comment

                              • eccerr0r
                                Solder Sloth
                                • Nov 2012
                                • 8691
                                • USA

                                #16
                                Re: Delay on-instant off with 555 timer

                                Oh...btw, if you had a NC momentary switch, there is a trivial solution
                                I guess the assumption is that we had a NO switch.

                                Comment

                                • budm
                                  Badcaps Legend
                                  • Feb 2010
                                  • 40746
                                  • USA

                                  #17
                                  Re: Delay on-instant off with 555 timer

                                  Yep, SPST N.C. will work too, N.C. will short out the timing cap until the sw goes open when pushed.
                                  Never stop learning
                                  Basic LCD TV and Monitor troubleshooting guides.
                                  http://www.badcaps.net/forum/showthr...956#post305956

                                  Voltage Regulator (LDO) testing:
                                  http://www.badcaps.net/forum/showthr...999#post300999

                                  Inverter testing using old CFL:
                                  http://www.badcaps.net/forum/showthr...er+testing+cfl

                                  Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                                  http://s807.photobucket.com/user/budm/library/

                                  TV Factory reset codes listing:
                                  http://www.badcaps.net/forum/showthread.php?t=24809

                                  Comment

                                  • Curious.George
                                    Badcaps Legend
                                    • Nov 2011
                                    • 2305
                                    • Unknown

                                    #18
                                    Re: Delay on-instant off with 555 timer

                                    Originally posted by Dannyx
                                    Correct. That would work too for the "overkill" version, but would require a dedicated supply to run.
                                    Your "dedicated power supply" could be an LED and a 1/4W resistor. If an HE device, it might even light up to indicate "power supply ON". And, you can EXACTLY time those 5 seconds -- or 327 seconds (instead of relying on temperature compensated RC's to do the timing).

                                    Comment

                                    • Dannyx
                                      CertifiedAxhole
                                      • Aug 2016
                                      • 3912
                                      • Romania

                                      #19
                                      Re: Delay on-instant off with 555 timer

                                      Originally posted by eccerr0r
                                      Untested, I should just stick it in the simulator but too lazy.
                                      What simulator do you use for this ? Just curious.
                                      Wattevah...

                                      Comment

                                      • eccerr0r
                                        Solder Sloth
                                        • Nov 2012
                                        • 8691
                                        • USA

                                        #20
                                        Re: Delay on-instant off with 555 timer

                                        Originally posted by Dannyx
                                        What simulator do you use for this ? Just curious.
                                        For me, "Headspice"¹. You use whatever you want to simulate it.





                                        ¹ - simulated in my head.

                                        Comment

                                        Related Topics

                                        Collapse

                                        • Astonished
                                          Fixing the Charge Circuit of the Batteries of the DC Motor
                                          by Astonished
                                          Hi friends of electronics

                                          What you see in the video and pictures attached is the circuit for charging the batteries of a DC motor.

                                          The problem is that this circuit cannot charge the batteries (3 1800mAH NiMH batteries) any more. When the circuit was OK, its green LEDs lit up one at a time to show that the batteries have charged more. But now that the circuit is flawed, LEDs light up as you see in the video and at the same time successive beeps are heard.

                                          Please help me fix this circuit.

                                          (the datasheet of the IC: https://pdf.datasheet.live/28...
                                          01-28-2025, 06:24 AM
                                        • Tarot Superstars
                                          Short Circuit tester
                                          by Tarot Superstars
                                          Hello.
                                          I have seen a short circuit tester made with 3 * 9V batteries, a voltage limiter component and a resistor connected to the probes of a multimeter.
                                          The theory is that the meter becomes sensitive enough to read very low resistances and the lowest resistance to ground on a circuit is likely to be a short circuit in that area.

                                          Link
                                          The Amazing $1 Short Finder Upgraded! Convert ... - YouTube
                                          https://www.youtube.com/watch?v=0eixDdCpiO4

                                          My multimeter isn't normally sensitive to very small resistance, but when I put a 1 mega ohm resistor...
                                          09-25-2023, 09:11 AM
                                        • DeanWy
                                          WD Sentinel DS5100 (NAS) boot issues
                                          by DeanWy
                                          Hi all,

                                          I have a Western Digital Sentinel DS5100 NAS system which has stopped working. It has dual BIOS. I bought the system second hand with an already broken primary BIOS (it rebooted multiple times until second BIOS was used).

                                          It worked until recently. The system was idle in Windows Server 2012 and a BSOD occurred, I think it was 'critical process died'. Thereafter it didn't boot, it just sat there with no video output and fan speed at 100% (there's a proprietary Windows driver by WD which controls the fan, outside of that it always runs at 100%).

                                          There...
                                          07-30-2024, 04:13 AM
                                        • M1NEBLANK SHOW
                                          MSI B250 Gaming M3 Short circuit in CPU power supply circuit
                                          by M1NEBLANK SHOW
                                          Hello. MSI B250 Gaming M3 board, short-circuit on the power supply. Found a problematic mosfet VQ1
                                          (N-PK616BA_PDFN8-HF) soldered it out - short circuit is gone. I replaced VQ1 + VQ5 (N-PK632BA_PDFN8-HF). VQ1 was replaced with PK618. After starting attempt VQ1 is lit again. What can be the problem? In the driver?

                                          Schematic and Boardview here
                                          ...
                                          04-04-2025, 03:57 PM
                                        • прямо
                                          Viper22A 5VSB circuit
                                          by прямо
                                          So I have a cheap non working ATX PSU that I was learning to repair a decade ago. At the time, it blew the main fuse, bridger rectifier, NTC, and primary 9A 900V MOSFET. Replaced all except the MOSFET. 5VSB came back online. Then I poked around in it so much, measuring components one by one to a point I accidentally made the 5VSB circuit primary side went bang. Blown the AP8022 (Viper22A) PWM chip, along with a low resistance resistor and the PC817 opto isolator. I replaced them all.

                                          In the process of poking around, I also lost a zener diode that stabilize the voltage coming from...
                                          01-13-2024, 07:05 PM
                                        • Loading...
                                        • No more items.
                                        Working...