What will be the charging time of the capacitor and how to calculate it?
closed as off-topic by Olin Lathrop, Voltage Spike, Dmitry Grigoryev, Dave Tweed♦ Jul 14 '18 at 23:10
- This question does not appear to be about electronics design within the scope defined in the help center.
Both diode properties are available with a right click. But charge time will be almost instantaneous tracking input 40Hz peak since the ESR (diode) ~ a few Ohms with high current thus few hundred microsecond delay dV/dt is small compared to 40Hz
The 63% decay RC time constant is 170*100uF =17ms so depending on the input voltage it may stay illuminated with a half wave rectified sine current with a tail exponential decay then hold at 1.8V the threshold for a Red LED.
You may select the LED and right click add to scope and verify.
Since the diode conducts on negative peaks , the LED Anode (+) is known to be in the same polarity as the diode in series.
If the diode is a standard silicon PN diode, and the 100\$\mu\$F capacitor is a standard electrolytic capacitor, and (as you said in a comment) the input voltage is 40mV, then the capacitor will never charge to a voltage that will light an LED.
The diode will never be forward biased so the current through it will be very, very small. The leakage current through the capacitor will probably be as large as the current through the diode, so you will never obtain a significant voltage across the diode.