Author Topic: 555 Timer in a car - cleaning up the 12v supply  (Read 16841 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTopic starter

  • Contributor
  • Posts: 19
  • Country: gb
555 Timer in a car - cleaning up the 12v supply
« on: August 14, 2015, 06:12:00 pm »
Hi all,

I've built a simple 555 timer circuit to give intermittent windscreen wiper functionality in an old car. The circuit works fine on a bench PSU at 14v, and works fine from the car battery with nothing else switched on, but as soon as the fuel pump comes on in the ignition position (or if I start the engine) the timer circuit fires the wiper relay at random intervals. The fuel pump and alternator are making the power line to my circuit really noisy. Can anyone suggest the best options for cleaning up the car supply?

I found two 680uF 25V caps that I put in parallel to make a 1360uF and put this across the +ve and Earth of my 555 timer circuit. This cut out the random firing of the relay completely, but the delay times are still faster than they were on the bench PSU.


I was thinking of these options:

- A much larger capacitor across the supply of my 555 circuit. I've seen suggestions online of 2200uF or 4700uF.

- A regulator like the LM7812 or LM2940 (my circuit is only drawing 150mA max)

- A DC-DC converter, or buy a regulated 12v car lighter socket adapter and rip the circuit out of it.

Thanks for your help,
Darren.
Forum newbie, but subscriber on YouTube since EEVblog #32
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5231
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #1 on: August 14, 2015, 06:45:53 pm »
Add a few ohms in series with the supply.  Without this your capacitors are making an RC lowpass filter with the fraction of an ohm impedance in the wiring.  Not very low pass.

I am assuming you are using your circuit to drive a relay which controls the wipers.  If this is the case the firing and holding current for the (presumeably 12V) relay will drive what the minimum acceptable voltage to your circuit.  I suspect that 20 or 30 ohms will be fine.  It would have to be a 1 watt or more resistor with the stated values.

Fully regulating the supply is more robust, but more complicated.
 

Offline DazTopic starter

  • Contributor
  • Posts: 19
  • Country: gb
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #2 on: August 14, 2015, 07:30:31 pm »
Thanks CatalinaWOW. Can I just check what you are suggesting? Are you saying keep the large capacitance (1360uF) in parallel with the supply, and then add a few ohms in series with the supply input to the timer circuit? Or in series with the 1360uF capacitance that is across the supply rails to the timer circuit?

Also, you mentioned a few ohms, but did you mean 20 or 30 ohms that you mentioned later on?

Yes, the 555 chip is firing a 12v relay (with flyback diode across it). I think the relay works down to around 9 or 9.5 volts.

That 1360uF capacitance across the timer circuit supply was just an experiment to see if it would smooth the supply.

Forum newbie, but subscriber on YouTube since EEVblog #32
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #3 on: August 15, 2015, 04:02:01 am »
Don't forget to put a diode into your circuit before the capacitor because without it, the purpose is defeated. When you turn the key and the 12v supply jumps around a little bit, it goes to zero and resets your wipers. The capacitor stops the 12v jumping, but if it has to run the 555 AND the rest of the car when the key is turned, it has a big job. The diode means that the cap only needs to run the 555 when the supply goes to 0, rather than the rest of the car.

You can also reduce the voltage with resistors, a voltage divider, this may make the timing closer to the bench because the supply is closer to the bench. For a car, you have plenty of electricity and the 555 doesn't take much. leave the positive for the relay (if any) on the outside of the circuit, on regular 14v supply. This will mean the 555 circuit has constant and small power consumption easy to supply from the voltage divider.

« Last Edit: August 15, 2015, 04:04:04 am by TheElectricChicken »
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #4 on: August 15, 2015, 04:09:12 am »
like this

 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5231
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #5 on: August 15, 2015, 06:03:42 pm »
What I was suggesting was 20-30 ohms in series with the line to the 12V source, keeping the capacitance as shown.

The suggestion by ElectricChicken is good.  Effectively if puts a VERY large resistance in series for the direction of current flow that you don't care about.  The other current direction gets the effective impedance of the diode, typical a couple of ohms.  While Chicken's suggestion is likely to solve your problem, you will get even better results (reducing the effect of up spikes in the supply) by putting a second capacitor across the 555 supply in the last circuit drawn by the ElectricChicken.  The RC filtering your 555 power is now the top resistor of the voltage divider, which can be pretty large.

You have said you are a noob, but none of us knows how little you know.  If you are unfamiliar with RC filters, time constants and the lot it would be worth a few minutes reading about them.  In very rough terms the product of the resistance and capacitance (Resistance in ohms, capacitance in Farads) gives a time constant in seconds.  Pulses or spikes with times much longer than the time constant tend to get through relatively unchanged in a low pass configuration like this, while those much shorter than the time constant get greatly reduced in size.  The bigger pulses and spikes I have seen on automotive circuits tend to range in length from modest fractions of a second down to the microsecond range.
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #6 on: August 15, 2015, 06:13:39 pm »
 

Offline DazTopic starter

  • Contributor
  • Posts: 19
  • Country: gb
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #7 on: August 16, 2015, 05:52:32 pm »
CatalinaWOW, Electric Chicken, thanks for your time and suggestions. I've been reading up on RC low pass filters and I'll be trying out these ideas on the car tomorrow. I found a formula giving a cut off frequency Fc=1/2xPixRC, so if I use one of my 680uF caps and a 30 ohms resistor, this should give a cutoff of 8Hz (right?). That should help with a lot of the noise I guess.

Do you think the RC low pass filter of 8Hz will do the trick without the need for a much larger capacitor across the supply?

I'll try all this out and report back. I could always try capturing the noise on a scope and see what I'm up against.

Thanks, Darren.
Forum newbie, but subscriber on YouTube since EEVblog #32
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5231
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #8 on: August 17, 2015, 05:40:19 pm »
It should help a lot, but the diode Electric Chicken suggested will give the largest single improvement.  An eight Hz low pass filter is a good choice.  Pulse widths shorter than about 10 milliseconds will be attenuated, with attenuation improving by a factor of ten for every factor of ten reduction in pulse width.  That frequency is also well below the most common source of repetitive noise (engine idle related frequencies).  Even if a bad spark plug is only firing every fourth revolution of the engine the rep rate at idle will be well above 8 Hz. 

There is no way of knowing without trying.  All car electrical systems are noisy, but yours may be very different (better or worse) than the average due to any number of factors including layout and fabrication of the wiring harnesses, history of exposure to corrosive environments, wear of components, the particular branch of the system you tapped for power, and what other things are going on in your car.
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #9 on: August 17, 2015, 08:23:15 pm »
I drew it a little better and added stuff. The most important thing I forgot was a diode across the relay  :phew:

adding a regulator, zener or 78 series would probably do a bit more than you can do by calculating filters.

* c1 is big value and 25v or more
* c2 is a small or maybe a medium and small in parallel ? 16v or more
* r1 is optional ? can't recall what it does.
* r2 unloads the regulator(s) by dissipating heat that the regulator would have to get rid of. on the regulator side, it's two or three volts more than the regulator output for 7805 7806 7809 regulators, it's not needed for 7812, just use a wire instead. For the zener, it lets enough current through to power the 555 and a bit more, but not more than the maximum power dissipation of the zener at the given 555 supply voltage, just a quarter or a half is ok.
* d2 gives the relay lots of unregulated voltage because relay doesn't care.
* d3 stops the relay spikes getting very far.
* c5 is for nothing in particular  ^-^ 16v or more
* d1 stops c1 trying to run the car when you switch off the ignition. It allows c1 to continue running the circuit until c1 gets bored and wants to go and lay down or something.



 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #10 on: August 17, 2015, 08:29:37 pm »
It is not worth buying at all, but if you scrap equipment to salvage bits and pieces then you can use "snap on ferrite cores" on the wiring running into the car. just search for "snap on ferrite cores" and you'll recognize what you've seen a lot, if you don't know. I do wonder if the same effect can be had by threading wires through some nuts ?? I don't expect either of them will do much, but it wouldn't hurt if you have them and don't know what else to do with them (I never do)
 

Offline DazTopic starter

  • Contributor
  • Posts: 19
  • Country: gb
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #11 on: August 17, 2015, 11:52:51 pm »
Thanks ElectricChicken and Catalina for the continued support. Chicken, those diagrams were very helpful, thanks, and I might be tempted to look into using a 78xx regulator. But for now, here's an update on how it went today.

I'm limited by what components I have lying around, but I managed to try the following: I connected my +12v supply into a diode (1N4148), and then into an RC low pass filter using R=30 ohms and C=680uF (giving the 8Hz cutoff that we talked about earlier). Unfortunately my relay coil is still connected directly to the 555 timer IC on the filtered side of the power supply because I couldn't find a transistor. But the good news is that the circuit with diode and RC filter behaves the same on the bench as it does in the car with the engine on! That is major progress! So:

- The timer circuit on a bench PSU without the diode & RC filter gives a relay pulse every 5.5 seconds.
- If I add the diode and RC filter on the bench, the time drops down to around 4.6 seconds. I think this is because when the relay kicks in momentarily, the voltage to the timer circuit drops by a volt (voltage divided between the 30 ohm resistor in the RC circuit and the 300 ohm relay coil). This voltage drop must be upsetting the timing.
- The good news is, if I test the timer circuit in the car with the diode and RC filter, the pulse time stays the same as it is on the bench (4.6 seconds), meaning that the diode and RC filter have seriously reduced the noise on the power line!

I think if I switch on the relay coil using a transistor, connecting the coil to the 'dirty' side of the power line as ElectricChicken suggested, then I should get my 5.5 second pulse.

My 555 timer is being used as a sink (relay coil connected between +12v and pin 3 of the 555 timer). So I guess I need to use a PNP transistor. Can you guys help me choose a sturdy PNP transistor for switching on a relay coil in an automotive environment? This coil is only 300 ohms (so say 50mA), but I might need to use a 70 ohm coil in the future (say 200mA). What transistor could switch 200mA in a car and survive all the horrible spikes and surges that we get in cars?

Thanks,
Darren.
Forum newbie, but subscriber on YouTube since EEVblog #32
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #12 on: August 18, 2015, 06:04:45 am »
Thanks ElectricChicken and Catalina for the continued support.

You're welcome.

Quote
But the good news is that the circuit with diode and RC filter behaves the same on the bench as it does in the car with the engine on!

Excellent. If it is working the way you want, stop.

Quote
My 555 timer is being used as a sink (relay coil connected between +12v and pin 3 of the 555 timer). So I guess I need to use a PNP transistor. Can you guys help me choose a sturdy PNP transistor for switching on a relay coil in an automotive environment? This coil is only 300 ohms (so say 50mA), but I might need to use a 70 ohm coil in the future (say 200mA). What transistor could switch 200mA in a car and survive all the horrible spikes and surges that we get in cars?

as a current sink yes. well if it works off the 555 now, just use that as it is. You might possibly limit the current through the relay by adding a resistor in series with it's coil, to keep the current the same as it is on the bench and in the car, so it's like the bench when it's on the higher voltage. That way the 555 won't work so hard sucking up big currents.

Which transistor ? whatever you can find in scrapped equipment. Just google the numbers on the transistors you find, or just look for something of a reasonable size physically and try it.

Do you have a relay that you can switch from the present relay ? connect the large one across the outside 14v and use the small one in the circuit to switch it on and off.

 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #13 on: August 18, 2015, 06:06:49 am »
either front of the circuit will work with either back of the circuit.
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5231
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #14 on: August 18, 2015, 08:57:00 pm »
Virtually any transistor will work.  If the circuit is operating as intended there is little or no power dissipated in the transistor.

Things you will want to look for if you try selecting a particular transistor.

1.  NPN.  While you can set the circuit up to work with a PNP, the circuits are drawn for an NPN transistor.  For a variety of reasons NPNs are the better choice.
2.  Low VceSAT.  This will assure that little power is dissipated in the transistor.
3.  VceMAX.  Should be significantly above your supply voltage - 20V or more.  Almost all transistors will meet this requirement.
4.  Low enough leakage (current through the transistor in the off state).  Needs to be below the holding current of your relay.  Again almost all transistors will meet this requirement.
5.  Gain (beta) high enough to assure saturation in the on state.  The bar is low here too.  Beta should be greater than the ratio of the relay pull in current to the current you want to pull out of the 555.  That ratio will be a small number (in the 5 to 20 range).  The vast majority of transistors have betas larger than this, though I have found a substantial number of "bargain bin" transistors that are marginal or would fail this.
6.  IceMAX large enough to drive the relay.  This requirement is the one which will cause more problems with random pulls of transistors from equipment than any other.  Transistors found in the rf front end of a radio may or may not be able to carry the current, especially if your relay requires 100 or more milliamps.

You may also want to add a resistor in series with the transistor base to limit current in this path.  This will reduce the stress on both the 555 and the transistor.  Use ohms law to select the resistor for the current you want.  Remember to check step 5 of transistor selection if you go that route.
 

Offline DazTopic starter

  • Contributor
  • Posts: 19
  • Country: gb
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #15 on: August 19, 2015, 11:56:25 pm »
SUCCESS!!!!

Hey guys, just to update you: The combination of the filter circuit to clean up the power and moving the relay off of the 'clean' power side and putting it on the 'dirty' (pre-filter) power line, and driving the relay with a transistor from the 555 timer, has worked a treat! Many thanks CatalinaWOW and TheElectricChicken for your help. I've learned loads from this, and I've now got a perfectly stable, working intermittent-wiper timer circuit in a car with a really noisy +12v rail! :-)  I'm totally over the moon!

Can somebody tell me how to add multiple photos to a single post with text between the photos? Then I can show you the final circuit and also some oscilloscope traces showing the noise before and after the filter circuit, and how the timing has improved by moving the relay off of the clean power line. Thanks.
Forum newbie, but subscriber on YouTube since EEVblog #32
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2543
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #16 on: August 20, 2015, 12:18:07 am »
ElectricChicken,
In the top circuit of your reply #9, the R2 and C2 form the most common low pass filter.  I don't know what the frequency response is for the parallel R1 and C1 configuration.
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5231
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #17 on: August 20, 2015, 12:27:36 am »
ElectricChicken,
In the top circuit of your reply #9, the R2 and C2 form the most common low pass filter.  I don't know what the frequency response is for the parallel R1 and C1 configuration.

The frequency response can be found by thinking of the R1-C1 pair as the lower impedance of a voltage divider.  The upper impedance is the combination of the diode impedance and the source impedance of the supply.  Not a potent filter until frequencies where the impedance of C1 is small with respect to the source + diode impedance.

By the way, congratulations Daz on your success.  As my university prof on circuits said "A working circuit is a thing of beauty."
 

Offline SaabFAN

  • Frequent Contributor
  • **
  • Posts: 735
  • Country: de
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #18 on: August 20, 2015, 01:23:44 am »
SUCCESS!!!!

Hey guys, just to update you: The combination of the filter circuit to clean up the power and moving the relay off of the 'clean' power side and putting it on the 'dirty' (pre-filter) power line, and driving the relay with a transistor from the 555 timer, has worked a treat! Many thanks CatalinaWOW and TheElectricChicken for your help. I've learned loads from this, and I've now got a perfectly stable, working intermittent-wiper timer circuit in a car with a really noisy +12v rail! :-)  I'm totally over the moon!

Can somebody tell me how to add multiple photos to a single post with text between the photos? Then I can show you the final circuit and also some oscilloscope traces showing the noise before and after the filter circuit, and how the timing has improved by moving the relay off of the clean power line. Thanks.

Funny quote from a Linear Technology Datasheet (I think it was the LTC1871 DC-DC Controller): Cars are the "Supply from Hell!" :D

Make sure to put a TVS-Diode in there to snuff out any Load-Dump Spike. These can reach more than 60V and last several microseconds. Since I already literally blew up an RPM-Meter circuit, I now always put a 1.5KW TVS-Diode in any circuit that comes near an Alternator.

Offline ez24

  • Super Contributor
  • ***
  • Posts: 3082
  • Country: us
  • L.D.A.
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #19 on: August 20, 2015, 01:56:46 am »
Quote
Can somebody tell me how to add multiple photos to a single post with text between the photos?

Is this possible?  I think not.  Bummer :--
YouTube and Website Electronic Resources ------>  https://www.eevblog.com/forum/other-blog-specific/a/msg1341166/#msg1341166
 

Offline Vgkid

  • Super Contributor
  • ***
  • Posts: 2710
  • Country: us
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #20 on: August 20, 2015, 02:17:47 am »
^^^
You can do it if you use an external photo hosting site.
If you own any North Hills Electronics gear, message me. L&N Fan
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 28368
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #21 on: August 20, 2015, 02:20:58 am »
I would change the 1N4148 on the supply to a more capable diode, a jelly bean 1N400* or similar.
Quote
Can somebody tell me how to add multiple photos to a single post with text between the photos?

Is this possible?  I think not.  Bummer :--
Of course it's possible, up to the forum upload limit.
Compress images to save space on Daves server and to make for faster loading for readers.

Use the Insert Image button, insert image URL between the brackets then add text to the next line and so on.

Find a pic heavy thread/post, then pretend to reply by Quoteing the post and study the syntax.
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline ez24

  • Super Contributor
  • ***
  • Posts: 3082
  • Country: us
  • L.D.A.
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #22 on: August 20, 2015, 06:18:01 am »
Quote
Find a pic heavy thread/post, then pretend to reply by Quoteing the post and study the syntax.

Good idea - thanks
YouTube and Website Electronic Resources ------>  https://www.eevblog.com/forum/other-blog-specific/a/msg1341166/#msg1341166
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #23 on: August 20, 2015, 06:54:53 am »
SUCCESS!!!!
Many thanks CatalinaWOW and TheElectricChicken for your help.

You're welcome.

Quote
Can somebody tell me how to add multiple photos to a single post with text between the photos?

Add all images as attachments. Read the new message. Then right click modify on the massage and open modify in another tab/window. On the original tab/window where you read the message, click on all attachments to make them full size (use image editor to make them not too big before you upload) right click on each large image and copy the image location. Add that to your message modification message in the places you want the images, Surrounding it with image tags.
 

Offline TheElectricChicken

  • Frequent Contributor
  • **
  • Posts: 480
  • Country: au
Re: 555 Timer in a car - cleaning up the 12v supply
« Reply #24 on: August 20, 2015, 07:09:45 am »
ElectricChicken,
In the top circuit of your reply #9, the R2 and C2 form the most common low pass filter.  I don't know what the frequency response is for the parallel R1 and C1 configuration.



Don't think of it as a low pass circuit if it is confusing, take my other list of explanations as to what each item does. It's funnier too, but still perfectly correct.

I'm not really making things based on frequency response, not even calculating. C2 is a small cap, put there really because people like small caps next to chips to decouple, but that's a long story. It's just a little cap, not worth worrying what it does to the rest of the circuit. It is mean to make the 555 happy.

r2 belongs to ZD1. If the supply is 12volts and the zener is 5v then the 7 volts needs something to drop across, and r2 is it. It supplies just enough current for the 555 and a little extra to let the zener regulate properly, maybe 1/4 of the zener's rated current is ok I guess. anything from it's rated current to zero is ok, but 1/4 gives least problems when the circuit is rattlin'

r2 belongs to 7805 and 7809, they unload the regulator so it doesn't work so hard. You can replace it with a link of wire, if the 7805 can handle all the power dissipation. Otherwise it just gives the 7805 about 7 volts to play with. A 7809 would be given 11 volts to play with. 7812 is given a wire link and the full car voltage.

R1 is optional, leave it out. Maybe it's just to discharge C1 over time ? it's just not needed.

c1 is just a battery for the whole circuit. It stores power because ignition switches are dirty, as you rotate the key, there is a lot of noise in the 12v line. c1 probably keeps power running to the circuit for a few seconds after the ignition is off. It depends what cap you find in your junk box. Just a large one with 25v or more written on it's side.
« Last Edit: August 20, 2015, 07:13:39 am by TheElectricChicken »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf