Fox T-Bird/Cougar Forums

Technical => Electrical Tech => Topic started by: TheFoeYouKnow on June 13, 2012, 08:52:09 AM

Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 13, 2012, 08:52:09 AM
One or two of you are talented electronics people, and I could use some help. I want to build an accessory delay timer for my Bird.  Such a timer would receive a pwon signal from ignition on or acc, and would power up and hold a relay.  The relay would remain energized for 10 minutes OR until a ground signal is given from a door ajar switch.  There it is. I'm an electrical specialist at a Ford dealer, so I can build it and integrate it into the vehicle very easily, but my talents don't extend into electronic design.  If anybody can help design the device, their help would be greatly appreciated.
Title: Seeking help with a circuit design
Post by: hwy73 on June 13, 2012, 07:43:52 PM
What first comes to mind when you said "10 minutes" is the relay similar to what runs the rear window defrost. It holds for about ten minutes when turned on, then shuts off, or it can be cancelled manually.  But what I think you are trying to accomplish is to have it turn on automatically when the ignition is turned off, then either time out or be cancelled by a door opening? Such as the infamous "GEM" modules or "LCM's" in late model vehicles.
Title: Seeking help with a circuit design
Post by: Thunder Chicken on June 13, 2012, 08:14:51 PM
You can probably find a time delay relay that will stay on for a set time after power is removed. That'd be your simplest option. If you really wanted to get into it you could build a time delay module using a 555 timer set up for astable operation (meaning the output stays live for a set time then goes out, as compared to stable operation which puts out a steady pulse). Have the 555 drive a relay to keep things live for your desired time, and have a second relay that resets the whole thing when the door is open. Set the second relay up to keep the circuit running when the relay is "off" (using terminal 87A on a standard bosch relay), and then killing it when the relay is live (by grounding terminal 85 or 86 through the dome light circuit).

If I get a chance I'll draw up a schematic for you, but that's a big "If" as I'm currently trying to get garage plans done up so as to obtain a permit, then I'll be busy trying to build the garage. You'll have to keep reminding me, as I will almost certainly forget...
Title: Seeking help with a circuit design
Post by: Haystack on June 13, 2012, 09:18:27 PM
Have you looked into stamp controllers, pic's or an adruino board?

Might be a bit overkill, but they are fairly customizable.
Title: Seeking help with a circuit design
Post by: jcassity on June 15, 2012, 02:19:39 AM
google RC time constants and there you have it,,, too easy.
a combination of a resistor and a capcitor in parallel will give you "TIME"
the relay will be the easy part for you,,,,,,,so there you have it, 50Cents and your out the door.

idealy you want to use a variable capacitor and variable resister and "dial in" the setting.

for free you can find these two parts on most trash circuit boards.

There are also RLC circuits (resistors, inductors and caps)

good luck ,, You are about to meet ELI the ICE man "XL" and "XC"



here is a decent link to do the math for you,,, basically your shooting for 640seconds
find the right combo of parts and you can do it for free.
http://hughestech.com/rc_calculator/

next google the resistor color code chart

there is a rhyme to remembering the color code but its no longer polictically correct.

an 800Kohm resistor and 800mico ohm capcacitor gets you close.
Title: Seeking help with a circuit design
Post by: TOM Renzo on June 15, 2012, 05:32:18 AM
Could you use a headlight timeout module. Or a dome light module that delays. Just saying.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 15, 2012, 06:56:21 AM
@Tom, I could, but I'm looking to duplicate the function of a modern cars accessory delay COMPLETELY.  I want it to kick off when I open a door.
Title: Seeking help with a circuit design
Post by: Haystack on June 15, 2012, 05:25:09 PM
Hook up another door ajar sensor.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 15, 2012, 08:44:24 PM
I can tap into the door ajar feeds I have, but what I need is a timer with a kick on trigger and a separate kick off trigger.  And I need the timer to not start until the kick on is released.
Title: Seeking help with a circuit design
Post by: Thunder Chicken on June 15, 2012, 09:10:56 PM
A 555 based circuit as I described would kick on as soon as you turned the key on and stay on as long as the key was on. Since the accessory circuit would be powered up by the key this would not be noticed, it would simply be a redundant accessory power source. Then when the key was off the 555 would hold power for a set amount of time. A ground input from the dome light circuit could reset the timer (resetting it would turn it off until the next key on cycle).
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 16, 2012, 06:18:10 AM
I was looking into a 555, but it seems 10 minutes is too long an interval.  I was referred to a 74c14.
Title: Seeking help with a circuit design
Post by: Thunder Chicken on June 16, 2012, 06:22:59 AM
i wasn't aware the 555 had any time limits. you can change the time by changing values for resistors and capacitors.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 16, 2012, 06:30:12 AM
I was reading that the caps required to get out that far gave them problems and for longer intervals, the 74c14 was more ideal.  I've never used either, thats just from my reading.  I you know different, I'd be prepared to take your word for it.
Title: Seeking help with a circuit design
Post by: flylear45 on June 16, 2012, 07:37:10 AM
If (when) you get this figured I'd love to see a circuit diagram or link to where you found the answer. It sounds like a fun little feature to add to my junk.
Title: Seeking help with a circuit design
Post by: jcassity on June 16, 2012, 05:39:17 PM
without spec sheets on the 555 timer, its still sorta mandaing a variable reisistor and capacitor....right back to the root of a timer circuit which as a resistor and capacitor anyway.  so why not just use a reisistor and capacitor.
Title: Seeking help with a circuit design
Post by: Haystack on June 16, 2012, 10:13:20 PM
I still perfer stamp and pic controllers. My dad programmed his adruno (sp?) To run sequental turn signals, among other things.
Title: Seeking help with a circuit design
Post by: rodsterh on June 17, 2012, 10:34:24 AM
Quote from: TOM Renzo;392381
Could you use a headlight timeout module. Or a dome light module that delays. Just saying.


Awhile back I built this circuit in order to keep my cooling fan running for a delayed amount of time after I shut off the engine, using a 555 timer.  Worked pretty well but had a few bugs (features). To build a robust circuit for automotive specs it takes more than a simple R and C.  Diodes and caps are needed to protect the timer output and dampen spikes. One 'feature' my delay had was when I hit the door locks, there was spike that triggered the timer and started it running again. I was bummed at first then decided I liked the 'feature' to manually turn on the fan again. (I should have worked for MSoft :hick:)

One concern I had was the specs of the Radio Shack components I was using. Not sure if they were designed to handle the temp/voltage in an auto application. Think about how hot your car gets during the day and check the specs of some components.

There is a website that has simple 555 timer circuits where you can plug in the delay desired and it will give you the R and C. If you search 555 timer you should be able to find it. But again, in an automotive application it's a bit more complicated then a simple lab bench circuit.

Quote from: TOM Renzo;392381
Could you use a headlight timeout module. Or a dome light module that delays. Just saying.


I wanted to go this route using the latest parts from a junkyard car but didn't know what to look for and if I found it, the details and pin-out.

I'm still interested in a design to replace my current 555 design so if someone comes up with something feel free to share it here.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 17, 2012, 10:03:06 PM
I found a java applet that's proving to be very handy, and I've got everything working in the simulator, but I can't figure out how to interrupt the 555 with the door ajar signal, and have the timer NOT continue when I take the signal away.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 17, 2012, 11:23:10 PM
I think I got it.  Now I have to work out the finer details, including component specs, and a parts list.  Anyone interested in my circuit for the hell of it, or for verification, can find the simulator I used here: http://www.falstad.com/circuit/
click: File, Import, and paste the data from the .txt file in the box, then click the Import button.  You can start the sim by clicking the switch labeled IGN SW, which will power up the 555's trigger and the Accessory Delay relay.  Once you click again to turn off the ignition feed and kill the trigger signal, the 555 responds by feeding the Accessory delay relay's trigger terminal, and keeping it on for 10 minutes (30 seconds in the sim, so as not to offend my ADD), or until you simulate a door opening by clicking the switch labeled DOOR AJAR SW, which is a momentary contact to ground (momentary is in order to verify that no minimum door open time is required) which grounds a npn transistor, cutting the reset feed AND the source to the 555.  Anybody who has ACTUALLY worked with this stuff before should let me know if I'm on the right track.  Thanks.

X
Title: Seeking help with a circuit design
Post by: jcassity on June 18, 2012, 03:22:13 AM
I wouldnt choose that method because in some cases simple is just better, but hey, if you can walk away with something you learned then thats great.
The actual size Cap and Resistor for your application might be roots of 8 so an 800kohm resister and an 800uF cap would be more applicable to 10min or 640sec.
Parts
relay
Variable Resistor (or 800kohm), (color band should be GREEN,BLACK,BLACK, Orange if set value resistor is chosen)
Variable Capacitor or just a standard one as shown (800uF)
Door Jam switch (open with door closed like your OEM)
Door Jam switch (closed with your door closed)
optional amring switch

Condition 1 as shown "door closed"
-Manual switch 1 (ms1) is closed , consider this optional "arming" switch.
-your door is closed, ACC is selected and desired load is on via the relay
-S1 has continuity and is mounted in your door jam (works opposite of OEM switch)
-Relay coil obtains ground through the series RC circuit to ground
-at approx 10min the capacitor will reach stead state and the circuit is open.
-The relay will de-energize because the 10min interval has been met.
-S2 is open (same type of switch as your oem door jam switch)


Condition 2 as shown "door open"
-MS1 is closed (again an optional "arming" switch)
-ACC is still selected and desired load still on from previous condition via the relay.
-your door is open
-S1 door jam switch opens (again opposite from your oem door jam switch)
-Relay will de-energize if less than 10min have passed due to RC circuit and you desired load on the relay will power down
-S2 closes and discharges the capacitor so it can reset itself for a new cycle


---capacitors (sorta like a battery) act like wires during thier *initial* charge up so they conduct like one initially.
They will eventually match the source voltage and the difference in potential will be null, the cap will fully charge and prevent current flow at the specified combination of resistive and capacitive combinations.
Title: Seeking help with a circuit design
Post by: jcassity on June 18, 2012, 03:50:20 AM
Quote from: rodsterh;392551
To build a robust circuit for automotive specs it takes more than a simple R and C.  Diodes and caps are needed to protect the timer output and dampen spikes.

A little advice, keep it simple when at all possible.  Only swag in a digital or buttstuffog input to ADIO devices when all else fails and your forced into TTL logic cirucits.  They work like a charm but sounds like your problem was planning out the total circuit insuring there was complete circuit isolation on the retrofit you did.  Your power sounded dirty or a momentary backfeed from an obscure source.

We made it to the moon with simple circuits and tubes, this isnt rocket science.  Your saying it can not be done but yet its happening all around you and was the first time delay system for wipers, still basically is in our cars so why it can not be done is a mysterious statement.
Title: Seeking help with a circuit design
Post by: jcassity on June 21, 2012, 01:46:08 AM
sorry i forgot to mention this, didnt want to get too deep into the high level details but here it is.

your total resistance with the resistor plus the ohm value of the relay coil must equate to around 800kohms.  ITs hard to predict what the relay coil will be as it depends on which one you choose.  Some relays coils have blocking diodes and if you read approx .3 to .6 ohms one way then flip your leads and have like 200kohms the other way, then you have a blocking diode.  This is relevant because timing is everythign.  this is why i suggested a variable resistor so you can dial it it.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 21, 2012, 08:00:43 AM
I used an extra relay because diodes weren't giving me what I wanted.  I have some 15 amp PCB relays in my tool box, I'll use one of those for the isolation relay, and I'll use a plain 1x1 relay externally for the actual accessory delay relay.  I could use an 800k R, I'll just have to go back to the 555 calculator to get a new value for the Cap.  The control Cap has to stay at 10nF.  I need to use a transistor for the door ajar signal switching, because it's easier to work into the circuit with the way the vehicle is set up, and because I don't really have any current to speak of on the reset pin. The transistor kills the reset pin, the Acc Dly drops and cuts the output AND drops the Vcc power, which was a big deal to figure out when I was working out the diagram.  You wouldn't believe how long it took me to realize that if I didn't want the 555 to keep counting when I cut the reset, I'd have to kill the Vcc power, too.  I'll probably try to start building next week, once I talk to another guy I know about what voltage values the caps need to be, what the specs on the output diode need to be and what I'll need for the transistor,
Title: Seeking help with a circuit design
Post by: Quietleaf on June 23, 2012, 11:31:04 PM
If 10 mins is too long for a 555, what about using a 556 and chaining the two timers?
Title: Seeking help with a circuit design
Post by: Quietleaf on June 23, 2012, 11:41:49 PM
I suppose an easy way to control when the circuit shuts off could be to drive a 555 at 1/60 Hz and have it drive a 4017 decade counter. When output 9 goes hi, 10 minutes have elapsed. Or if that frequency is still too low for the 555, chain two decade counters (output 9 of the first one supplying clock input to the second one) and drive the 555 at 1/6 Hz (pulse every 6 seconds).
Title: Seeking help with a circuit design
Post by: jcassity on June 24, 2012, 11:10:42 AM
I went back and customized the sketch i had lying around for another application to suit yours, i thought you would figure it out.
The RC formula is T=RxC ,,,,,  t=time, R=resistance, C=capcitance

T= 800000ohms x .0005farads , = 640seconds, which divided by 60sec  = 10.667 min delay.

You just have to make sure the resistivity of the relay coil + the resistor fall somewhere in the 80kohm range,, again a variable resistor.

Not sue what needs your design has that are not capable of being controlled by the RC circuit, did your needs change from you original post?  If not, you dont need the headache your experiencing (told you so  : )  ) by over complicating this.

You should consider powering the design off your existing platform voltage source which is 12v and this does the trick.

anything beyond that and i would be suggesting a quad NAND gate for logic highs and lows with a user supplied 5v isolated source.  5v does exist on your dash by the way.... if its not dirty which it likely is as there is plenty of AC harmonics on our alternators.


I went back and corrected my post and drawing for this specific application, btw, 500nF caps arent really a common choice in the wattage range your application would box into. 

Good luck and have fun, and if all else fails, fall back to simplicty and try out the rc time constant option you have now, you wont need the 555 timer anymore.
Title: Seeking help with a circuit design
Post by: jcassity on June 24, 2012, 11:22:28 AM
oh yeah,forgot to add,

when I build or design something, i have to consider risk on what we call "SPOF"
You should consider reducing "single points of failure" when too many parts are integrated into a design.

as i said before, keep it simple with long lasting results, thats the end game at the end of the day.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on June 24, 2012, 11:41:10 AM
Actually, I got it.  I had my prototype working yesterday.  I ran it at 30 seconds for verification, then, since I'm using a breadboard, I swapped the resistor and ran it just a couple tics past 10 minutes. Also, the npn transistor kill switch works awesome. I can't wait to get it on some project board, and into a small project box.  I may build another with a surface mount 555 on a sparkfun dip14 breakout board, so that I can build the whole thing on the small breakout, and then mount the acc delay reay externally.  Before you reply that a 555 is 8 pins, I'd use a breakout with extra pins so that I can use the extra pins for mounting the components.
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on July 10, 2012, 11:58:47 AM
I built an on-board prototype last week with relays for kill and isolation, and yesterday I completed what I've decided is my finished product with transistors for isolation and kill and only a 4 pin 60A relay for the Accessory Delay.  I think the second looks nicer and works more quietly.  I've only run them on the bench so far, but they both work.  Maybe later in the week I'll get one installed.  I've noticed (happily) that everything I want to run with it is all on the same output from the ignition switch (radio, windows, clock, courtesy lamps, and moonroof), and that I'll be cutting down the current running through the switch by at least half.  Less current through our ignition switches is a very good thing.  Sorry for such large pics, but some guys will want a detailed look at it.
XXX
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on July 10, 2012, 12:44:08 PM
Special thanks to Thunder Chicken, your idea got me going in the right direction, and to jcassity, even though I didn't go with your simple version, it was very helpful to have somebody explain the finer points to me.  My final RC values were 549k ohms and 1000uF with a 10nF as the constant and 2.2k ohms between kill trigger and kill power to make the transistor act like a nc relay.  Somebody asked for a diagram when I figured it out, so here it is. 


X
Title: Seeking help with a circuit design
Post by: rodsterh on July 14, 2012, 01:36:20 AM
Very nice.  Basically the same ckt I used but I can see an improvement I can make.  :hick:

The simulator is neat but seems to be a little flaky if the wires aren't connected exactly.  The NPN in your example was misbehaving.

Can you also provide the part #s of the components you used?
Title: Seeking help with a circuit design
Post by: flylear45 on July 14, 2012, 09:33:32 AM
Quote from: TheFoeYouKnow;394132
Special thanks to Thunder Chicken, your idea got me going in the right direction, and to jcassity, even though I didn't go with your simple version, it was very helpful to have somebody explain the finer points to me.  My final RC values were 549k ohms and 1000uF with a 10nF as the constant and 2.2k ohms between kill trigger and kill power to make the transistor act like a nc relay.  Somebody asked for a diagram when I figured it out, so here it is. 


X


Love it. Nice work guys!
Title: Seeking help with a circuit design
Post by: flylear45 on July 14, 2012, 09:35:50 AM
Quote from: rodsterh;394319
Very nice.  Basically the same ckt I used but I can see an improvement I can make.  :hick:

The simulator is neat but seems to be a little flaky if the wires aren't connected exactly.  The NPN in your example was misbehaving.

Can you also provide the part #s of the components you used?



Yeah, a materials list would be helpful to us electrical noobs. :bowdown:
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on July 14, 2012, 09:48:06 AM
S5D, 2222 NPN transistors, 1000uF cap, 10nF cap, 549k resistor, 2.2k resistor, a large cube relay, a 2x4 project box and a 204-0006-01 schmartboard.  That's about it.  See the diagram I left a page back.
Title: Seeking help with a circuit design
Post by: flylear45 on July 17, 2012, 04:42:44 PM
Just got a DEI 528T  unit to play with. Would hold for 1-90 seconds after door switch activation, then cut off. I THINK?
Title: Seeking help with a circuit design
Post by: TheFoeYouKnow on January 15, 2013, 12:23:28 PM
Never got around to installing after verification.