Electrical – How to fade LEDs switched by a 555 timer when supply is cut

555circuit-designlogic-gatesoperational-amplifierswitching

Based on the well-known Inventable.eu article, I combined their CMOS timer PWM with adjustable duty cycle with logic that switches the supply to the timer circuit. Only when the gate conditions (AND; both signals are true) are satisfied is 12V supplied to the rest of the circuit.

The following image represents the circuit I have built:

Circuit comprising a 5V voltage regulator, comparator with photo resistor, an AND gate combining the output of the comparator and the output of an external logic signal to produce a signal to switch a pFET that turns on a 555 CMOS timer configured to dim 12V LED strips using PWM.

My problem is achieving a ramp down effect when the 12V supply to the timer sub-circuit is shut off. My first attempt was an RC network at the base of Q4, but this only delayed the switch off and did not produce the desired fade out effect. For my second test, I added a 1000uF capacitor in parallel with the 560uF listed in the schematic. The resulting delay was too short.

My question: how to introduce a delay without compromising the pulse switching Q5. One possible solution is outlined here, but I am unsure how this could be adapted, and want some other options before salvaging the necessary opto isolator device.

Can you please explain in your answer how your solution interacts with the timer's PWM and the rest of the circuit, particularly the high side switching at Q2. Thank you.

Update: based on Mr. Tony Stewart's comments, it appears my design may simply be incompatible with any sort of off-ramp. While there are perhaps options involving the 555's reset in place of the high side switch, I prefer keeping it as-is, if only for the lower current consumption.

Best Answer

If you dont want to use an MCU. I think you should give a shot at Farad super capacitors.

For your application it is hard to find a super capactior that can operate on 12 V so you have to make different combinations of capacitors (series/parallel).

If you use 5V LED strips it would be way better since there are already 1F 5V super capacitors available. Then you should make your calculations to find out how many capacitors you should use.

Have a look here and here to find the super capacitor that meets your needs.

Related Topic