0
\$\begingroup\$

Problem: I need to switch ON a NE555 timer relay from 12v DC supply When the DC supply is Switched ON. Also, when I switch OFF the 12v DC supply, the relay should switch ON again as it is a timer relay.

What I am doing currently: I am connecting 12V DC to an NPN transistor. The 12v supply gives power to the collector and the emitter emits 12v and gives it to a 4700uf/25v 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 as I guess it is not allowing the timer relay to de-energize there by not switching on the relay. I have tried adding 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 12v I need an ON pulse and when I turn OFF the 12v supply I need an another Pulse. Just a Pulse is enough( Like pressing the switch to ON or OFF the CPU).

Maybe If even my capacitor starts discharging after a 2 second delay when I switch off the 12v DC in the circuit I have provided, 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\$

bumped to the homepage by Community 2 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • \$\begingroup\$ What is a "NE555TimerRelay"? \$\endgroup\$ – Peter Bennett Aug 2 at 15:47
  • \$\begingroup\$ Kindly find it here, robu.in/product/… \$\endgroup\$ – joshua divine blessing Aug 2 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\$ – Marcus Müller Aug 2 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\$ – joshua divine blessing Aug 2 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\$ – Marcus Müller Aug 2 at 16:29
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\$
  • \$\begingroup\$ Thanks a lot @ Bruce Abbott. I hope this will work. \$\endgroup\$ – joshua divine blessing Aug 3 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\$ – joshua divine blessing Aug 5 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\$ – Bruce Abbott Aug 5 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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