diff --git a/docs/advanced/spice-simulation.mdx b/docs/advanced/spice-simulation.mdx index 79a9a70..67e42cd 100644 --- a/docs/advanced/spice-simulation.mdx +++ b/docs/advanced/spice-simulation.mdx @@ -21,7 +21,7 @@ This component configures and enables the analog simulation for the board. | ------------- | ------ | ----------------------------------------------------- | | `duration` | number | The total duration of the simulation (e.g., in seconds). | | `timePerStep` | number | The time interval between simulation steps (e.g., in seconds). | -| `spiceEngine` | string | The SPICE engine to use (e.g., `"ngspice"`). | +| `spiceEngine` | string | The SPICE engine to use. Can be `"spicey"` (default) or `"ngspice"`. | Example: @@ -153,3 +153,66 @@ export default () => ( `} /> The simulation results would show the output voltage across `R1` successfully "boosted" compared to the 5V input from `V1`. The specific output voltage depends on the duty cycle of the MOSFET driver `V2` and the component values. + +## Example: RC Charging Circuit + +Here's an example of an RC circuit that forms a voltage divider with a capacitor. This also functions as a low-pass filter. Since no `spiceEngine` is specified in ``, it uses the default `spicey` engine. Voltage probes are placed at the input and output to observe the charging behavior. + + ( + + + + + + + .pin1"} to={".R1 > .pin1"} /> + .pin2"} to={".R2 > .pin1"} /> + .pin2"} to={".C1 > .pin1"} /> + .pin2"} to={"net.GND"} /> + .pin2"} to={"net.GND"} /> + .pin2"} to={"net.GND"} /> + + .pin1"} /> + .pin2"} /> + + + +) +`} /> + +The simulation results will show the voltage at the junction of `R1`, `R2`, and `C1` charging towards the Thevenin equivalent voltage of the R1-R2 divider.