555 countdown timer design question

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Dannyx
    replied
    Re: 555 countdown timer design question

    Originally posted by eccerr0r
    Wow that simulator is fscked. I got the timing capacitor to get a negative voltage across it somehow, not exactly how that's possible...

    Yes this can be done with one button easily with a microcontroller:
    Press on for 60 sec, press off any time, long press on = light stays on. Software is starting to be a bit complicated.

    Now to do this with a discrete circuit...

    Doh, nah forget it, my first pass does not work. Writing the software is easier
    YES, I know, I kept getting "capacitor exceeded max reverse voltage" error myself if I tried firing the 555 too quickly one cycle after another, so it made me wonder whether something is indeed wrong with the circuit or the simulator is messed up...not really possible to get a reverse voltage on it, so I believe it's the latter.
    Of course, a micro would make this a breeze ON PAPER at least, because I'm not really all that savvy with writing code beyond maybe turning a light on and off with the same button, that's why I somewhat prefer overly complicated discrete designs like that Crazy ? You bet. Doable ? Not really sure....might actually go for it considering I have transistors in my junk box, so the cost is essentially zero at this point My main concern is that the simulator will not perfectly reflect the actual working of the circuit and doesn't account for all the losses and stuff which could throw the whole "ballet" I put together there out of sync....might turn into a mess of a breadboard.

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Originally posted by budm
    So now you have THREE switches (Latch or Momentary?), I thought you want just ONE switch to do more than one function, looks like the requirement is changed.
    Well the remote actually has 4 switches, A B C and D. I changed my mind slightly and THIS is how the end product will work, so A does the countdown thing, B does the latch and C and D are essentially in parallel to stop it.

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    Hmm... will this work...
    Turned out to be a bit more tricky than I thought it would be, trying to minimize ICs...
    Attached Files

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    Wow that simulator is fscked. I got the timing capacitor to get a negative voltage across it somehow, not exactly how that's possible...

    Yes this can be done with one button easily with a microcontroller:
    Press on for 60 sec, press off any time, long press on = light stays on. Software is starting to be a bit complicated.

    Now to do this with a discrete circuit...

    Doh, nah forget it, my first pass does not work. Writing the software is easier
    Last edited by eccerr0r; 11-11-2017, 09:34 PM.

    Leave a comment:


  • budm
    replied
    Re: 555 countdown timer design question

    So now you have THREE switches (Latch or Momentary?), I thought you want just ONE switch to do more than one function, looks like the requirement is changed.
    Last edited by budm; 11-11-2017, 05:10 PM.

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Ok guys, here's the crazy, overbuilt and GROSSLY exaggeratedly complex version of this project Using nothing but trannies I managed to achieve the following: A initiates a 60 second countdown, B keeps the lamp on permanently, C and D stop the thing entirely regardless of the state.......you got that ? The relay that will be used to actually power the light is represented by the purple LED at the top.

    The operation:

    Switch (channel) B, Q3 and Q2 form a simple latch:
    -when B is closed, it drives the base of Q3 high, which drives the gate of Q2 low, turning on the FET
    -as the FET is now conducting, current flows through the 100k resistor back into the base of Q3, essentially keeping it on as if your finger was still on button B.
    -B also drives Q1 which pulls the RESET pin to GND to cancel any remaining time, if any left, on the 555 timer


    When A closes, it drives the bases of Q6 and Q9:
    -Q9 pulls the TR pin low, imitating the 60-second countdown
    -Q6 stops Q3 and therefore Q2 in case it had been latched on previously by switch B (it cancels the latch if it was switched on first). This ensures the lamp turns OFF after the countdown and doesn't stay on via the latch

    C and D are the two remaining buttons on the remote and I figured I'd have them both do the same thing - stop the whole circuit, like so (used a single switch to limit clutter as much as possible)
    -when either is pressed, it drives the base of Q4 and Q5 HIGH
    -Q4 pulls Q3 LOW and cancels the latch if it's already on
    -Q5 drives the RESET pin LOW to cancel the countdown if it's in progress
    You got that ?..........Good, all we got to do now is build it

    Cheers guys. As always, I really don't care - it's all about having fun, ain't it ?

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    I don't think it was a design constraint, though it was thrown around as an issue "what happens if you hold the switch down"...

    That's what happens when we (as engineers) get incomplete design constraints and then surprise constraints come up after we get our first designs out...

    "Back to the drawing board" as they say

    BTW, was looking at Mouser for 4013 and 4027. For 1-unit quantities, IIRC, 4013 is $0.51 and 4027 is $0.53 (USD) or something like that (looks like there are choices that are cheaper). This is "expensive" as it's getting into the cheap microcontroller territory... However in the 1000-unit quantities, the price break starts taking effect, except you still need that capacitor, resistors, and at least one extra transistor...
    Last edited by eccerr0r; 11-11-2017, 12:14 PM.

    Leave a comment:


  • Radio Fox
    replied
    Re: 555 countdown timer design question

    Originally posted by eccerr0r
    ...The caveat of my solution is that the light is turning off once RC expires, you can't hold the button down to keep it on...
    Was that a design consideration? I'm loosing track. LOL.

    How about an AND gate that keeps the relay transistor turned on if there is still a high on the 4027 clock pin? The other input to the AND connecting to the notQ output which goes high at the end of the timing cycle.

    Something like this (I've put an inverter on the clock pin to simulate a +ve going clock trigger which the 4027 requires):-

    http://tinyurl.com/yacso6tq

    The AND gate can be created using a couple of NPN transistors instead of another IC if preferred.

    I don't know how much these components cost in other countries, but in the UK, the 4027 can be got dirt cheap on Ebay.
    Last edited by Radio Fox; 11-11-2017, 05:19 AM. Reason: Additional info

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    I also wonder if the prices of these 555's and 4027's (or 4013 in this new revision which I think is cheaper than 4027) makes the microcontrollers an even better deal...

    however you assemble these analog^H^H^H^H^H^H^H hardware-only solutions, they're ready to go (wait a minute, aren't CMOS/TTL digital logic? what's this analog?) The microcontroller needs to go through a flash programming cycle...

    New version: uses more common CD4013/HEF4013/MC14013B .
    Attached Files

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    this is a fun thread, but the truth is that microcontrollers have reached the price where they simply beat-down any analog solution!!

    maybe not the ARM pcb i linked , but stuff like the PIC 10F series cost almost nothing!!

    Leave a comment:


  • budm
    replied
    Re: 555 countdown timer design question

    I would just use a NPN Transistor common Emitter to make Inverter circuit.
    Output of the Controller board is HIGH so the NPN Transistor will be on = Collector Voltage will be LO, and when controller output goes to GND hte NPN Transistor will be off so Collector Voltage will go HIGH.

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    There's another small problem which is not compatible with the remote module I'm using, though it can be EASILY overcome: from what I can make out, the 4027 requires a POSITIVE signal to trigger it, whereas the signal my board sends out is effectively a "pull to GND", therefore I THINK using a PNP is required: the remote module pulls the base of the PNP to GND, emitter-collector path becomes conductive and sends VCC into the trigger pin...just a hunch...haven't tested it.

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    I only chose the 4027 because it was the first classic CMOS (i.e. 12V tolerant and high impedance inputs) FF that came to mind...others will work. Though I did do "head spice" to make sure it works, the only caveat is that I'm not sure how the 4027 deals with the slow rise and whether it will self immolate. Something that you have to think about that simulations don't show

    I was trying to get the 555 to work but realized it was superfluous, I never liked its behavior when having to trigger it multiple times, almost made me want to try a 74ls123 or 4047, but decided against it.

    The caveat of my solution is that the light is turning off once RC expires, you can't hold the button down to keep it on.

    Yes, you can do so much more with a microcontroller.

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    just use this:
    https://www.ebay.co.uk/itm/291693366485

    32bit ARM power!!

    Leave a comment:


  • Radio Fox
    replied
    Re: 555 countdown timer design question

    Originally posted by Dannyx
    Just had a look at the past posts. You guys seemed to have ditched the 555 entirely and moved to a flip flop of sorts ? A 4027 like this one ? Now I just need to figure out how it works Meanwhile, I've been working on an overcomplicated and overengineered circuit that achieves the one-button function on the 555 as well, but the part count is ridiculous and might not work in real life, so I'll probably have to go down your route. Just for fun, I'll simulate it and share it if it works even barely
    Yep, that's the chip. Also known as CD4027 & MC14027.

    My initial thoughts were to incorporate the flip flop into the 555 circuit, but eccerr0r's idea is much neater. If your going to use a flip flop to toggle the push button switch, why not get it to do the timing as well. Much more compact.

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Just had a look at the past posts. You guys seemed to have ditched the 555 entirely and moved to a flip flop of sorts ? A 4027 like this one ? Now I just need to figure out how it works Meanwhile, I've been working on an overcomplicated and overengineered circuit that achieves the one-button function on the 555 as well, but the part count is ridiculous and might not work in real life, so I'll probably have to go down your route. Just for fun, I'll simulate it and share it if it works even barely

    Leave a comment:


  • Radio Fox
    replied
    Re: 555 countdown timer design question

    Originally posted by eccerr0r
    Annotated schematic with sample values and component designations for discussion if desired... also this is not a microwave oven, though it may still say so...(was too lazy to change the name after abandoning the microwave reverse engineer effort.)
    Nice. As well as the toggle function with a single push switch, it does the timing as well, with just half a chip.

    Along similar lines, you could do away with the shorting transistor & use the Q output to charge the cap (with the addition of a diode). The time delay is 0.7CR, where C is the cap on the R pin of the chip (22uF) & R is the resistor in parallel with the diode (330k).

    I have simulated both circuits. The only JK FF in the library is a generic TTL (5V on the outputs) -ve edge triggered one, so it starts when the switch is opened, rather than closed. I've adjusted the timing components for 5 seconds, as the simulation is not in real time. It takes around 40s on my i5 pc & around 90s on my old Athlon pc. I've replaced the relay with a LED.

    http://tinyurl.com/y97u6ev6

    http://tinyurl.com/y9emb9nf
    Last edited by Radio Fox; 11-08-2017, 09:11 AM. Reason: Extra info

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    Annotated schematic with sample values and component designations for discussion if desired... also this is not a microwave oven, though it may still say so...(was too lazy to change the name after abandoning the microwave reverse engineer effort.)
    Attached Files

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    Thrown together possible solution (push timed on, push turn off)
    Attached Files

    Leave a comment:


  • Radio Fox
    replied
    Re: 555 countdown timer design question

    Originally posted by Dannyx
    ...I'm now struggling to implement a feature to set AND reset the timer with the same button. You press the button once, the countdown starts, then if you want to cancel it before the time is up, you press the same button again and it resets it. The thing I'm actually using is in the picture (I removed the relays for hacking purposes). The relays have a common + and are switched on/off by that driver IC which is essentially a series of transistors that pull the other pin of the relays to GND. In our case, it'd pull the trigger pin to GND which is perfect (the action is momentary, so it doesn't latch the pin to GND), but I now need to figure out a way to switch that "pull to GND" from the TRIGGER to the RESET pin once the circuit is on. I've been looking at Dave's vid here which is close to what I want, except I don't have physical switch, but rather a transistor which can only pull to GND (can't switch a positive signal), so I'm trying to wrap my head around this...
    As stj says, you need to look for a flip flop or sequential switching bistable circuit to integrate into the design, so that when the trig pin is taken low, the reset pin is taken high & vice versa. There would also need to be some kind of feedback from the timer circuit to reset the flip flop in instances when the timer isn't reset during the timing period.

    Leave a comment:

Related Topics

Collapse

  • 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
  • beogeek
    820-2915-A Wont power on with battery connected
    by beogeek
    Ok so this doing my head in and hopefully someone more knowledgeable will be able to assist.

    I've got a MacBook Pro 820-2915-A it will power on without the battery connected, but when the battery is connected it will do a 2,3-second fan spin when pressing the power button and then nothing.

    After measuring and probing around I found that R7051 was bad, reading high instead of 2.2Ω so I replaced it. Still the same issue, I have the green light on the charger but it won't power on or charge the battery.

    So to cut the long story short I've replaced U7000,...
    02-26-2022, 01:29 AM
  • survivalbloke
    Acer Predator Helios 300 - will not power up if battery is CONNECTED
    by survivalbloke
    This was a no power initially. Thanks to your help, I discovered it was the first mosfet, so I replaced. Now, the device will power up only if the battery is NOT connected. As soon as I connect the battery, it shuts off. If I connected the battery while the device is off, it simply will not respond to the power button. I replaced the battery, and while I suppose the new battery could be faulty, I'm assuming it is not. I'm having the same behavior with the new battery. I measure .2v at the charging coil. Manually applying power to the + and - at the battery header, there is no charging happening....
    06-25-2025, 12:20 PM
  • muhuruu
    PS5 too many USB devices connected
    by muhuruu
    Hello. I have a problem with a PS5 console that I bought to learn electronics repair. The auction description indicated that the console had been dropped. The HDMI port and USB ports were damaged. The HDMI port was replaced by the previous owner, and after his repair, the console worked for 2 days and then became dead. After receiving the console, I replaced all the USB ports. After replacing them, the console started to turn on. On the logo screen, it displays "too many USB devices connected". My further attempts to fix the error involved replacing the Southbridge, 4 TPS2001D chips,...
    05-19-2025, 07:14 AM
  • versionlab
    Weird problem, laptop stays on when connected to another pc
    by versionlab
    Hi, I want to ask for advice about an interesting issue I've been having with a sony vaio laptop.

    Client came and said that "a desklamp touched the back of the lid while laptop was operating normally and it caused the office's circuit breaker to trip. Laptop had never turned on since".

    After taking the laptop apart (checked dc adapter everythin ok), I found a faulty MOSFET on the motherboard which I replaced. Laptop managed to turn on. However, while booting it shut down. Nothing else seemed faulty and thermals were ok. Shutting down was coming at random...
    10-26-2022, 03:43 AM
  • Loading...
  • No more items.
Working...