Print Page | Close Window

component values in circuit shown here?

Printed From: the12volt.com
Forum Name: Car Security and Convenience
Forum Discription: Car Alarms, Keyless Entries, Remote Starters, Immobilizer Bypasses, Sensors, Door Locks, Window Modules, Heated Mirrors, Heated Seats, etc.
URL: https://www.the12volt.com/installbay/forum_posts.asp?tid=132825
Printed Date: June 10, 2024 at 11:10 AM


Topic: component values in circuit shown here?

Posted By: carwirer
Subject: component values in circuit shown here?
Date Posted: November 29, 2012 at 9:10 PM

I'm looking at building one of these circuits: https://www.the12volt.com/relays/relaydiagram22.html. My electronics knowledge is fairly basic, so I have a few questions:

- what type of capacitor is the 10K uf cap... and what voltage rating is needed?

- what's the wattage of the resistor (and how would I calculate that with Ohm's law in this instance?)

- is the diode on the feed side (inbound from the turn signal on left) a 1N4001 type or could I use a 1N4004 there as I need in the relay?

Bonus question: the instructions mention changing the cap value to get a "longer output" ... am I correct in assuming that the output it's referring to is once the turn signal input is cut off and it does a final discharge? Or do I need to play with the cap value to make sure it doesn't drop the output even while the turn signal continues to send a pulse?

Thanks!



Replies:

Posted By: oldspark
Date Posted: November 29, 2012 at 9:47 PM
Electrolytic caps cover that 10uF range. Though available as 16V, I'd suggest a 25V (or higher) rating.


You needn't worry about the resistor - it is in parallel with the relay coil and has negligible effect. (If anyone disagrees, please chime in - eg, to dampen any oscillation?)
But for future ref, the power dissipated from a resistor V*V/R or I*I*R. EG, in this case assume 15V hence 15V x 15V / 10,000R (R = Ohms) = 225/10000 = 0.0225W. Hence a common 1/2W (0.5W) is fine. Even a 1/4W resistor is 0.25W which is 10x more than required.

BTW - the above formulas come from Ohms Law V=IR and Power P = VI. You could either calculate I from V=IR => I = V/R = 15V/10k and then substitute that into P=VI, but you might see that's the same as V*V/R as I used directly.


And yes, the output or delay time is the time ON after power (+12V) is removed.
The cap discharges thru the relay's coil (probably around 250R). The bigger the cap, the more the charge and hence the longer time thru that same (coil) resistance.
The relay will turn on as soon as the next +12V pulse arrives (ignoring any cap charge-up delay caused by the LHS input diode).


Be wary of relay chatter that might occur.




Posted By: i am an idiot
Date Posted: November 29, 2012 at 9:50 PM
10K microfarad = 10,000 microfarad




Posted By: oldspark
Date Posted: November 29, 2012 at 9:54 PM
Yeah, sorry - my Bad. I was thinking 10mF. Thanks ye that thinks he's the idiot!

But yes, it's 10,000uF




Posted By: carwirer
Date Posted: November 29, 2012 at 10:00 PM
Thanks... I did that calc on the resistor wattage but it came out so small I thought I must have done it wrong.

When you mention relay chatter... you're suggesting that it might open when the cap discharges if the next pulse from the turn signal doesn't get there soon enough to keep the cap charged?

Can I use a 1N4004 diode in both spots or does the LHS one need to be a 1N4001?




Posted By: i am an idiot
Date Posted: November 29, 2012 at 10:25 PM
The only difference between a 4001 and 4004 is the rated voltage. For any application here, they are identical devices.




Posted By: oldspark
Date Posted: November 29, 2012 at 10:26 PM
x2 on the calcs. But after a while you realize 10k "big" & 12V "small".
And rough sanity checks like 10x10/10000 = 1/100 & 20*20/1000 = 4/100.

The chatter occurs if the voltage "bounces" between the relay's drop out & pull in voltages - say 5V & 8V.
The bounce can occur because of the nature of LC or RLC circuits which typically oscillate. (L is the inductance from the relay coil.)
It's not always a problem - it depends on the relay characteristics and component values involved.
Plus that spike suppression diode (across the coil) reduces the negative spike (caused when current is cut to the coil).


And Dang! I forgot the diodes.
Yes, use 1N4004. Or 1N4007 - both are common, and both are rated for 1A. (1N4004 is rated for 400V "PIV"; 1N4007 for 1,000 PIV.)

The 1N4001 has a 1A 50V rating and though okay for the "series" input diode, it is probably under-rated for the RHS "parallel" spike suppression diode - de-energisation spikes are typically 100V or more (try it and see!).
Besides, the IN400x range has generally been reduced to the 4004 & 4007 - it's a 2 sizes fits all production philosophy.
A higher 1N400x end-number exceeds lower numbered ratings.




Posted By: carwirer
Date Posted: November 29, 2012 at 11:02 PM
Thanks all... I think I'm all set to build this now.




Posted By: howie ll
Date Posted: November 30, 2012 at 3:36 AM
Standardise on 1N4004, it's the most commonly available and the PIV withstands coil spikes on relays. This will also protect solid state equipment, mandatory on alarms IMO.

-------------
Amateurs assume, don't test and have problems; pros test first. I am not a free install service.
Read the installation manual, do a search here or online for your vehicle wiring before posting.




Posted By: carwirer
Date Posted: November 30, 2012 at 9:14 AM
If I understand correctly: when you cut the power, the energy in the coil can cause a reverse spike into the circuit back into other components... and that's why we need a diode?

Thanks,




Posted By: howie ll
Date Posted: November 30, 2012 at 11:00 AM
Exactly and it can be in excess of 200 volts.
Mr. Idiot has a lovely suggestion for testing if you don't believe that but it's rather painful as I discovered 40 years ago!
Usually across the coil, convention says 86 POS (+) side and 85 NEG (-).
In fact as long as you know how you're wiring it it doesn't matter.
Diode cathode band to POS (+).

-------------
Amateurs assume, don't test and have problems; pros test first. I am not a free install service.
Read the installation manual, do a search here or online for your vehicle wiring before posting.




Posted By: carwirer
Date Posted: November 30, 2012 at 12:37 PM
OK... last question: It looks like the diode goes across (in parallel) with the coil. Can't the surge still bounce back through the coil itself if it's big enough? Or does it follow the path of least resistance and just die in the diode?

Almost seems to me that you'd be better off setting it up in series before the coil to just make sure the surge can't come back through (then again, I am very light on anything but simple concepts here :-) .





Posted By: howie ll
Date Posted: November 30, 2012 at 12:50 PM
Actually I do it in series as you suggested.
In fact I sometimes go "belt and braces" and do BOTH.
But then I buy my diodes by the hundred.

-------------
Amateurs assume, don't test and have problems; pros test first. I am not a free install service.
Read the installation manual, do a search here or online for your vehicle wiring before posting.




Posted By: oldspark
Date Posted: November 30, 2012 at 5:42 PM
The spike suppression diodes are always across the coil (with the band end towards +ve; if the wrong way the diode smokes as it shorts +12V to GND).

The series (input) diode in this circuit is to stop the capacitor discharging thru other loads off the input supply. (Hence it can only discharge thru the relay coil (and any parallel resistor or path) at a known rate or "time constant".

Though that series diode stops a +ve spike injection back into the source power/circuit, I'm not sure about stopping any -ve or GND surge. As I recall, it doesn't and there can be problems, but I'd want to review that. (But not now, its required 5 seconds of thought is just to taxing ATM.)


The main spike that the coil produces is when power is removed.
The coil tries to keep the current flowing, hence it produces a big voltage spike - just like an ignition coil.
That spike is -ve, ie, its GND end is (say) 100-200V more +ve than its +12V end.
But once that spike exceeds the diode's forward voltage drop ie ~0.6V, the diode conducts and "shorts out" that 50V or 200V whatever spike.


The spike is actually making the -ve (GND or 0V) more +ve than the +12V supply.
It's that reverse-bias that can breakdown many electronic components that should only be supplying or seeing a +ve voltage to/from the system. They may only be 50V PIV rated components (transistors, MOSFETs, 1N4001s, etc) and not expecting to see a 100V or 200V -ve spike.

And I think the last para contains the solution to whether a series diode is adequate.
Keep in mind that whether the +12V goes -ve or the GND goes +ve by 50-200V etc doesn't matter, it's all the same relative to any component across those supplies (aka supply or power rails) - though the component's other connections may have an impact on whether they are damaged.




Posted By: carwirer
Date Posted: November 30, 2012 at 6:55 PM
Very informative gents, thanks.

I'm a little surprised that more automotive relays don't have these built right in as I can see it being a problem these days with multiple computers in a vehicle. I think I'll be using them in any of the work I do from now on :-)




Posted By: oldspark
Date Posted: November 30, 2012 at 7:52 PM
You are very astute. There are relays with inbuilt diodes - hence the convention that 86 is +ve and 85 is negative.

However I prefer to add my own because:
- why pay them to do it?
- why have to worry about a polarity convention for an otherwise non-polar device?
- some relay circuits do no have a polarity (ie, their +ve & -ve across the coil may swap);
- how do you replace an internal blown diode? (ie, just add your own external $0.05 1N4004).


Most of the time the spike quenching diode is not needed.
And IMO, spike sensitive stuff should itself be protected - ie, have their own diode(s). In fact many ICs have that - most inputs and outputs have 2 reverse biased diodes - one to its +ve rail, the other to its -ve rail, hence clipping voltages to ~0.3V to ~0.6V above and below the supply rails.


Incidentally, it seems that inbuilt-diode relays are now less common. Many instead have a parallel resistor (usually ~10kΩ ?) which is supposed to absorb some of the spike. (But does it?)
I still prefer raw coils. I'll add diodes if desired. I won't bother with resistors.

And any circuit I build will have its own protection. Relay diodes are usually then only to reduce electrical noise from the relay whether radiated or likely to be "seen" by dash bulbs or voltmeters and other sensing circuits etc.




PS (the next day) - the testing that Howie alluded to (courtesy of Mr (Not!) Idiot) I assume is to simply touch the (-ve?) coil terminal/wire as it is de-energised.
It's something I managed to avoid for decades until this year after my steering-wheel horn ring failed - I merely used an alligator clip to touch the horn relay's ground wire.
It worked fine a couple of times, but later I must have been touching the relay GND as it de-energised. I fitted a dash-mounted push button that night! posted_image posted_image
Maybe I should have tried a suppression diode across the coil, but the button was the proper interim solution.
But thanks to Howie and Mr Idiot, I might consider this "new" method of testing the integrity of spike suppression relays. However I strongly suspect upon finding my first failed diode that I'll build some LED tester instead! posted_image


FYI - I recently read that the current rating of such "across coil reverse biased diodes" should be double that of the coil.
IE - with most car relays being 250mA or less, that means a 500mA diode.
Hence the 1 Amp rated 1N400x series is ideal. The 1N4003 with 200V PIV rating should handle most spikes, but the now "standard" 400V 1N4004 adds extra voltage capability. So too the highest PIV in the series - the 1,000V 1N4007 - not that it's likely to be an advantage, but both the -04 & -07 are the common standardised and hence cheapest versions. (The others seem to have been dropped from production.)





Print Page | Close Window