Ripple analysis of an LDR optically coupled to an LED driven by PWM.
This post is split into three because of the 4-images-per-post limit.
The parts:
The finished coupler:
LED has Cathode to 0v, Anode to resistor to PICAXE output. Scoped at LED Anode.
LDR is top half of divider with 22K lower half. Scoped across 22K.
The PICAXE 14M and the divider both supplied from same 4.92v supply.
Conducted at 3 different frequencies, each at two duty cycles (80% and 5%).
Ripple values are approximate peak to peak.
Calculated resistance of LDR is about 7K5 @ 80% and 88K5 @ 5%. The LED is an old and weak standard red LED. For lower resistances, use brighter LED.
Scan: 50uS / Div.
Top trace: DC 1V / Div. (LED)
Bottom trace: AC 20mV / Div. (Divider)
4KHz @ 80% Duty (35mV ripple):
4KHz @ 5% Duty (65mV ripple):