modelPowerUp
Raspberry Pi Pico on a ramping VSYS: delayed start at power-on, program stopped when the supply falls
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
VSYS rises from 0 to 3 V between 0.2 s and 0.5 s, then falls to 1 V between 1.5 s and 1.6 s. Expected result: the regulator starts when VSYS reaches its undervoltage lockout (1.8 V, at 0.38 s): the 3.3 V rail (pico.vRail) appears and the program starts at that instant — the log prints ticks_ms() = 0 there, with the simulated time of the start. GP15 then toggles every 100 ms. When VSYS falls below 1.7 V (at about 1.565 s), the regulator stops, the rail collapses, the program is stopped for good with a warning in the log, and GP15 stays at 0 V.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RPi_Pico | pico | no USB cable: supplied through VSYS | |
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Modelica.Electrical.Analog.Sources.TableVoltage | supply | VSYS: 0 V, ramp to 3 V between 0.2 s and 0.5 s, drop to 1 V between 1.5 s and 1.6 s | |
| Modelica.Electrical.Analog.Basic.Resistor | r15 | limits the current of led15 | |
| MicroPythonMCU.Peripherals.LED | led15 | GP15 (physical pin 20) |