# Experiment 1: Monostable and Astable Timing
> [!note] 555 Timer Operation
> - A low trigger at pin 2 sets the output high and opens the discharge switch at pin 7.
> - When the timing-capacitor voltage reaches approximately $2V_{CC}/3$, the output returns low and the discharge switch conducts.
> - A load from output to ground is on during the output-high interval. A load from the positive supply to output is on during the output-low interval.
> - Reset is held high during normal operation; pin 5 is bypassed to ground through a capacitor.
### Monostable: 3 s Target
> [!calculation] Monostable Pulse Width
> $t_p=RC\ln 3\approx1.1RC$
>
> For $C=4.7\,\mu\mathrm F$ and a 3 s target:
>
> $R_{ideal}=\frac{3}{1.1(4.7\times10^{-6})}=\boxed{580.3\,\mathrm{k}\Omega}$
>
> With the selected $560\,\mathrm{k}\Omega$ resistor:
>
> $t_{p,predicted}=1.1(560\times10^3)(4.7\times10^{-6})=\boxed{2.895\,\mathrm s}$
> [!figures] Figure I: Monostable LTspice Schematic
> ![[555 Timer Notebook Figures/mono-schematic.png|center|450]]
> [!figures] Figure II: Monostable Output Pulse
> ![[555 Timer Notebook Figures/mono-scope.png|center|500]]
> [!table] Table I: Monostable Timing Comparison
>
> | Target [s] | Component prediction [s] | LTspice [s] | Measured [s] |
> | ---: | ---: | ---: | ---: |
> | 3.000 | 2.895 | 2.90 | 3.29 |
> [!calculation] Monostable Error
> $t_{p,measured}=(-3.69)-(-6.98)=\boxed{3.29\,\mathrm s}$
>
> $\%\text{ difference from target}=\frac{3.29-3.00}{3.00}\times100=\boxed{+9.67\%}$
>
> $\%\text{ difference from prediction}=\frac{3.29-2.8952}{2.8952}\times100=\boxed{+13.64\%}$
> [!note] Monostable Observations
> - A brief low trigger produced one high pulse of approximately 3.29 s.
> - The displayed $1/\Delta X=303.95\,\mathrm{mHz}$ is the reciprocal of the pulse width, not a repetition frequency.
> - The measured pulse was longer than both the 3 s target and the nominal prediction. Component tolerance and cursor placement are possible contributors; their individual effects were not measured.
## Astable: 60% and 75% Targets
> [!calculation] Astable Timing Relations
> $t_H\approx0.693(R_A+R_B)C,\qquad t_L\approx0.693R_BC$
>
> $T=t_H+t_L\approx0.693(R_A+2R_B)C,\qquad f=\frac1T$
>
> $D_H=\frac{t_H}{T}=\frac{R_A+R_B}{R_A+2R_B}$
>
> Both designs use $C=100\,\mu\mathrm F$. The selected components were $R_A=5.6\,\mathrm{k}\Omega$, $R_B=12.2\,\mathrm{k}\Omega$ for the 60% target, and $R_A=6.8\,\mathrm{k}\Omega$, $R_B=3.3\,\mathrm{k}\Omega$ for the 75% target.
> [!figures] Figure III: 60% Target LTspice Schematic
> ![[555 Timer Notebook Figures/astable-60-schematic.png|center|450]]
> [!figures] Figure IV: 75% Target LTspice Schematic
> ![[555 Timer Notebook Figures/astable-75-schematic.png|center|450]]
> [!table] Table II: Component-Based Astable Predictions
>
> | Target | $R_A$ [k$\Omega$] | $R_B$ [k$\Omega$] | $t_H$ [s] | $t_L$ [s] | $T$ [s] | $D_H$ |
> | --- | ---: | ---: | ---: | ---: | ---: | ---: |
> | 60%, 2 s | 5.6 | 12.2 | 1.234 | 0.845 | 2.079 | 59.33% |
> | 75%, 1 s | 6.8 | 3.3 | 0.700 | 0.229 | 0.929 | 75.37% |
> [!table] Table III: LTspice Astable Results
>
> | Target | $t_H$ [s] | $t_L$ [s] | $T$ [s] | $D_H$ |
> | --- | ---: | ---: | ---: | ---: |
> | 60%, 2 s | 1.23 | 0.86 | 2.09 | 58.85% |
> | 75%, 1 s | 0.725 | 0.235 | 0.960 | 75.52% |
> [!figures] Figure V: 60% Target High Interval
> ![[555 Timer Notebook Figures/astable-60-high.png|center|500]]
> [!figures] Figure VI: 60% Target Low Interval
> ![[555 Timer Notebook Figures/astable-60-low.png|center|500]]
> [!calculation] 60% Target: Measured Period and Duty
> $t_H=1.165\,\mathrm s,\qquad t_L=0.875\,\mathrm s$
>
> $T=1.165+0.875=\boxed{2.040\,\mathrm s}$
>
> $f=\frac1{2.040}=\boxed{0.490\,\mathrm{Hz}},\qquad D_H=\frac{1.165}{2.040}=\boxed{57.11\%}$
>
> The period is 2.00% above the 2 s target; the duty is 2.89 percentage points below the 60% target.
> [!figures] Figure VII: 75% Target High Interval
> ![[555 Timer Notebook Figures/astable-75-high.png|center|500]]
> [!calculation] 75% Target: Graphical Period and Duty Estimates
> $t_H=0.650\,\mathrm s,\qquad t_L\approx0.22\,\mathrm s\text{ from the displayed time grid}$
>
> $T\approx0.650+0.22=\boxed{0.87\,\mathrm s}$
>
> $D_H\approx\frac{0.650}{0.87}=\boxed{74.71\%}$
>
> The low interval, period, and duty are graphical estimates; only the high interval was measured with cursors. The estimated period is approximately 13% below the 1 s target. The selected components already predict a 0.929 s period, 7.14% below target.
# Experiment 2: PWM LED Dimmer
> [!figures] Figure VIII: PWM LED Dimmer LTspice Schematic
> ![[555 Timer Notebook Figures/dimmer-schematic.png|center|500]]
> [!calculation] Ideal Diode-Steered Timing
> $R_{ch}=R_1+r,\qquad R_{dis}=R_{V1}-r,\qquad D_H\approx\frac{R_1+r}{R_1+R_{V1}}$
>
> $T\approx0.693(R_1+R_{V1})C=0.693(11\times10^3)(100\times10^{-9})=\boxed{0.7623\,\mathrm{ms}}$
>
> $f\approx\frac1T=\boxed{1312\,\mathrm{Hz}}$
>
> Ideal duty limits are $D_{min}=1/11=9.09\%$ and $D_{max}=11/11=100\%$. The 100% value is an ideal endpoint, not a measured duty.
> [!table] Table IV: Dim Setting
>
> | Quantity | Theory | LTspice | Experiment |
> | --- | ---: | ---: | ---: |
> | High duty | 9.1% | 10% | 8% |
> | Frequency [Hz] | 1312 | 1250 | 950 |
> | Period [ms] | 0.762 | 0.800 | 1.053 |
> [!table] Table V: Bright Setting
>
> | Quantity | Theory | LTspice | Experiment |
> | --- | ---: | ---: | ---: |
> | High duty | 100% ideal limit | 90% | 99% |
> | Frequency [Hz] | 1312 | 1250 | 1140 |
> | Period [ms] | 0.762 | 0.800 | 0.877 |
> [!figures] Figure IX: Dim-Setting Output Waveform
> ![[555 Timer Notebook Figures/dimmer-dim.png|center|500]]
> [!figures] Figure X: Bright-Setting Output Waveform
> ![[555 Timer Notebook Figures/dimmer-bright.png|center|500]]
> [!figures] Figure XI: Breadboard at Dim Setting
> ![[555 Timer Notebook Figures/dim-setting-photo.png|center|450]]
> [!figures] Figure XII: Breadboard at Bright Setting
> ![[555 Timer Notebook Figures/bright-setting-photo.png|center|450]]
> [!calculation] Dimmer Frequency Comparison
> $T_{dim}=\frac1{950}=\boxed{1.053\,\mathrm{ms}},\qquad T_{bright}=\frac1{1140}=\boxed{0.877\,\mathrm{ms}}$
>
> $\frac{1312-950}{1312}\times100=\boxed{27.59\%}\text{ below theory at dim}$
>
> $\frac{1312-1140}{1312}\times100=\boxed{13.11\%}\text{ below theory at bright}$
> [!note] Dimmer Observations and Limits
> - The dim waveform is predominantly low, while the bright waveform is predominantly high. The LED appeared brighter when output-high duty increased.
> - The measured duties were 8% at dim and 99% at bright. The 8% result lies below the ideal 9.1% minimum, so wiper position alone cannot explain it within the ideal model.
> - The measured frequency changed from 950 Hz to 1140 Hz between settings, a 20% increase. The practical timing was therefore not independent of the duty adjustment.
> - Simulation and experiment were not documented at matching potentiometer positions. Their numerical differences are descriptive, not controlled errors at one setting.
> - LED current and optical output were not measured, so the brightness comparison is qualitative.
> - A follow-up sweep could record $t_H$, $t_L$, frequency, and LED current at several known wiper positions. A fixed minimum timing resistance and local supply bypassing would improve a refined design.