0
\$\begingroup\$

Problem:

I need to switch on a NE555 timer relay from a 12 VDC supply when the DC supply is switched on. Also, when I switch off the 12 VDC supply, the relay should switch on again as it is a timer relay.

What I am doing currently:

I am connecting 12 VDC to an NPN transistor. The 12 V supply gives power to the collector and the emitter emits 12 V and gives it to a 4700 μF, 25 V capacitor and also to the timer relay and the relay switches on and off (because it is a timer relay.) Now when I switch off the power supply the capacitor discharges immediately and I guess it is not allowing the timer relay to de-energize there by not switching on the relay. I have tried adding a resistor and it still doesn't work, but when I try to discharge the capacitor directly to the relay, the relay operates.

My use case:

I need to switch on and off a CPU (NUC) from the ignition of a car battery. That is, when I switch on 12 V I need an on pulse and when I turn off the 12 V supply I need an another pulse. Just a pulse is enough (like pressing the switch to on or off the CPU).

Even if my capacitor starts discharging after a 2 second delay when I switch off the 12 VDC in the circuit I have provided, it would be great.

Is there any device to delay capacitor discharge start timing or any modification needed in this circuit?

enter image description here

\$\endgroup\$
8
  • \$\begingroup\$ What is a "NE555TimerRelay"? \$\endgroup\$ Aug 2, 2019 at 15:47
  • \$\begingroup\$ Kindly find it here, robu.in/product/… \$\endgroup\$ Aug 2, 2019 at 16:15
  • \$\begingroup\$ This is a canned comment to let you know that it looks like you're trying to implement something that is non-trivial with the power-hungry NE555 but is very easy for someone using a microcontroller. \$\endgroup\$ Aug 2, 2019 at 16:15
  • \$\begingroup\$ @MarcusMüller I dont quite understand How to use a microcontroller here! Could you give more details. Also what If I use a 5v NE555 relay instead? \$\endgroup\$ Aug 2, 2019 at 16:17
  • \$\begingroup\$ do your logic on a microcontroller. The microcontroller controls the coil of a cheap, normal relay. done. Microcontroller can run off the 12 V supply, even when that fails, buffered with a small capacitor, for a long time. There's no "a NE555 relay". The website just calls their device like that. The website doesn't actually describe the device well enough for us to help you using it. \$\endgroup\$ Aug 2, 2019 at 16:29

1 Answer 1

0
\$\begingroup\$

Try this:-

schematic

simulate this circuit – Schematic created using CircuitLab

When the ignition is turned on, Q1 turns on and connects the negative supply to the timer module. Q1 is initially turned on via R2, C2 and R3, then held on by R4 after C2 has charged up. Zener diode D2 clamps the voltage at C2 to 6.8V, so any battery voltage variations (caused by eg. starting the engine) that don't drop battery voltage below ~7V should have no effect.

When the ignition is switched off the input voltage drops rapidly. Once it drops below ~7V the Zener diode stops clamping and the voltage at C2 quickly drops close to zero. Since C2 has about 6.2V across it, the other end goes to about -6.2V which turns off Q1 and the timer module.

C2 then discharges slowly through R3 and R4 until the voltage at Q1 Base rises to 0.6V, when it turns back on again. With power reconnected the time module restarts and turns its relay on until finishing its timing cycle or until C1 discharges, whichever comes first.

Notes:

  1. I replaced your transistor with a diode to ensure that C1 couldn't discharge back into the power input. Since Q1 turns off as soon as the ignition is turned off the timer module doesn't draw power so C1 holds its charge well (at least until the timer module is re-powered 2 seconds later. After that...).

  2. As well as making the circuit insensitive to battery voltage variations, D2 also prevents the Base of Q1 from going below -7V. This is important because the transistor's Base-Emitter junction breaks down when more than ~-7.5V is applied, which would upset the timing and might also damage the transistor.

  3. R3 reduces the sensitivity of Q1 to small negative voltage spikes which may get past D2.

  4. The turn off delay time can be adjusted by changing the value of C2.

This circuit works well in simulation, but whether it will work reliably in the harsh electrical environment of a motor vehicle is another matter. A more sophisticated circuit would have spike protection and filtering to ensure correct timing even with momentary supply voltage dropouts.

\$\endgroup\$
3
  • \$\begingroup\$ Thanks a lot @ Bruce Abbott. I hope this will work. \$\endgroup\$ Aug 3, 2019 at 17:32
  • \$\begingroup\$ @ Bruce Abbott I have tried this circuit, It is Working while the Power is switched ON, But its not working when power is Switched off. Same issue as before \$\endgroup\$ Aug 5, 2019 at 7:32
  • \$\begingroup\$ You said that "the capacitor discharges immediately". This circuit should prevent that, but only if the 12V supply drops rapidly to zero when the ignition is turned off. It relies on there being some other load on the ignition that pulls the voltage down to ground. If this is not the case then you might need eg. a 12V light bulb or 100 Ohm resistor across the supply to pull the voltage down. If it still doesn't work then check that Q1 is actually turning off for ~ 2 seconds when power is switched off, and that C1 stays charged during this time (note than 4.7mF is 4700uF). \$\endgroup\$ Aug 5, 2019 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.