Mercedes-Benz Forum banner
1 - 20 of 82 Posts

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #1 ·
Hello, if any of you have been following my Thread "Theirs a New One Coming", you will notice I'm working on an Arduino based controller for a PWM radiator fan. One of the challenges I have come up against is getting the fan to run a predetermined amount of time after engine shut down. I was trying to do this in code and control it using the Arduino but I was finding the code very difficult and also required running the Arduino at all times including with the key off and out of the car. So I am revisiting a hardware solution and trying to implement a 555 IC for a time delay after shut down.

The problem is all of the examples I have seen on how to do this involve grounding pin 2 of the IC to make this happen. I need to do something different. I need to activate the timer when power is removed form the system as in I turned the key off. I prefer to keep hardware down to a minimum and would like to avoid installing a relay if possible. I'm also not set on the 555, but its the only solution I have found so far.

If anyone has a solution to this it would be appreciated.


Rectangle Slope Font Parallel Diagram
 

· Registered
1983 380SL R107, LH drive
Joined
·
424 Posts
Almost all the delay-on-break relays that I'm familiar with require part of the circuit to remain energized, and in your case would be parasitic as soon as you remove the ignition key.
I ended up liking this relay called Fuji, they come in different configurations. This one is H3Y-2, now made by Omron. What I like is that it's not parasitic while it waits for either a momentary pulse of 12v or ground, and it's duration of circuit open\close is adjustable. You might be able to somehow rig it that when it looses power, it kicks the timer.
 

Attachments

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #4 ·
Almost all the delay-on-break relays that I'm familiar with require part of the circuit to remain energized, and in your case would be parasitic as soon as you remove the ignition key.
I ended up liking this relay called Fuji, they come in different configurations. This one is H3Y-2, now made by Omron. What I like is that it's not parasitic while it waits for either a momentary pulse of 12v or ground, and it's duration of circuit open\close is adjustable. You might be able to somehow rig it that when it looses power, it kicks the timer.
Sound like what I already have. I'm really trying to replicate the function of this relay preferably in a solid state form on my PCB. And it only needs < 100ma current.

 

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #6 ·
Put a big capacitor on your Arduino board to keep power to it for long enough after power off. Andy
Looks like I found a good video on that. It starts at about 4:45. Also enhanced with a transistor at about 7:00. I will be playing around with it.

Thank you.

 

· Registered
1979 450SL UK spec
Joined
·
2,917 Posts
Looks like I found a good video on that. It starts at about 4:45. Also enhanced with a transistor at about 7:00. I will be playing around with it.

Thank you.

Depending on the current taken by your Arduino, you may need a big capacitor. FYI, big capacitors tend to be electrolytic.

Here is how you would work out the size you need, or at least calculate the ballpark to start playing around with.

The electrical charge on a capacitor = it's capacitance x the voltage across it.

Total charge in a system is also = the current that is flowing x the time it is flowing for.

Rearranging gives.

The capacitance needed = (current taken by your circuit x time needed for the overrun) / the Voltage of the circuit.

You would also need a series diode before your capacitor to stop it also trying to power the rest of the car.
 

· Registered
1979 450SL UK spec
Joined
·
2,917 Posts
We use "super caps", about 1 Farad I think, for running the micro and a beeper for up to a minute as a power-fail warning. They are fairly small but only handle 5V.
Supercaps are a good suggestion as they are fairly cheap for the capacitance. Three in series will be good for 16.5v but also will then give a 1/3 of the capacitance of course.
 

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #14 ·
Depending on the current taken by your Arduino, you may need a big capacitor. FYI, big capacitors tend to be electrolytic.

Here is how you would work out the size you need, or at least calculate the ballpark to start playing around with.

The electrical charge on a capacitor = it's capacitance x the voltage across it.

Total charge in a system is also = the current that is flowing x the time it is flowing for.

Rearranging gives.

The capacitance needed = (current taken by your circuit x time needed for the overrun) / the Voltage of the circuit.

You would also need a series diode before your capacitor to stop it also trying to power the rest of the car.
I'm not thinking the current will be too high. I'm estimating < 20ma to drive the three thermisters and the 3 LED's are only in use during engine start. I believe the Arduino itself will run under 20ma.

Interestingly enough I tried the two schemes in the video. The first method at ~ 4:45 with just a Cap in place would only light an LED for about 2 sec using the biggest cap I have of 2200µ. But with the second method the led stayed on for about 60 second.

I think I need to find one that will drop the voltage down to 7 volts in 60 sec when running at about 40ma. The Arduino Nano 33 BLE runs between 7 to 20V so it will shut off below that. I have only tried it with an LED so far. So next I will measure my current and see what I can work out.
 

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #16 ·

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #19 ·
I have one if you would like to try it, I bought it and never used it, you can have it for nothing if you think you can use it. It does lots of things, and may be right up your alley
Thats a lot closer to the size I need, but I need it in components that mount onto a PCB. Thanks for the offer
 

· Premium Member
1986 560SL with M120 V12 Engine, 1988 560SL Stock
Joined
·
14,961 Posts
Discussion Starter · #20 ·
Measured the current its running ~ 20ma when the LEDs blink on and settles down to about 15ma once they turn off. Thats with simulated resistors for the thermisters, simulation low temperature. Resistance gets lower at higher temperatures so current will probably see a peak of about 30ma.
 
1 - 20 of 82 Posts
Top