@crutschow i needed a suggestion for microcontroller could you help me in suggesting?
Sorry, I'm not that familiar with microcontrollers.@crutschow i needed a suggestion for microcontroller could you help me in suggesting?
How would a circuit like that discharge the capacitor? A mosfet has a very high gate impedance. The next time it is powered up, how would there be a delay? So it might make sense to add a discharge resistor. Also, to avoid it being partially on, maybe use a BJT with a base zener, or a comparator.Here's a circuit using two small MOSFETs that shows very little change in delay (≈1%) for an ECU voltage between 12V to 24V.
The delay time can be varied by changing R1 and/or C1.
View attachment 157046
It discharges back through R1 and R3 when the input goes to zero.How would a circuit like that discharge the capacitor?

I'm still a little confused. How does it do that?It discharges back through R1 and R3 when the input goes to zero.
Yes, if it went to an open circuit then you would need to add a resistor (say 10kΩ) to ground at the input.Oh, never mind. I thought the voltage was completely disconnected (like removing a battery), as opposed to it being connected to ground.
So in this last Vout will be either 12V or @24V???Here's a circuit using two small MOSFETs that shows very little change in delay (≈1%) for an ECU voltage between 12V to 24V.
The delay time can be varied by changing R1 and/or C1.
View attachment 157046
Vout will essentially equal Vin.So in this last Vout will be either 12V or @24V?
Crutschow i have query of adding delay in functionality of a comparator used for presence of water in fuel(for eg diesel),Sorry, I'm not that familiar with microcontrollers.
One of the resident micro experts will need to help you with that.

We can use a single quad comparator and use it as two comparators na??Another alternate delay circuit using only one IC, five resistors, and two capacitors, that has only about a 0.1% variation in delay time for the input voltage change.
R5 and C2 determine the delay time.
U1 provides a fast discharge of C2 when ECU goes to zero.
View attachment 157148
Thanks for the suggestion.actually already worked with microcontroller...That function, delay, hysteresis, entierly within scope of UP. Thats
just A/D and maybe 10 lines of code. To setup and create test
result.
If thats the only functionality you need I would do it with ATTINY85
and bascom Basic Language.
See attached.
Regards, Dana.
As per my idea from the circuit,Another alternate delay circuit using only one IC, five resistors, and two capacitors, that has only about a 0.1% variation in delay time for the input voltage change.
R5 and C2 determine the delay time.
U1 provides a fast discharge of C2 when ECU goes to zero.
View attachment 157148
Is the delay circuit still powered solely by the input voltage or is there a separate power supply available?can you explain the process overflow
Yes i need for both high & lowIs the delay circuit still powered solely by the input voltage or is there a separate power supply available?
Do you want a delay on both the high and low transition?
So do you want the output to go between 0V and 12-24V also?Supply from ECU(maybe 12-24V)