velxio/frontend/src/simulation
David Montero Crespo 9b0b4bc038 fix(examples): night-light LDR shorted AO to VCC — "1M" is milliohms in SPICE
100d-auto-night-light shipped `dark: "1M"` meaning 1 megaohm. The value
parser follows the SPICE convention where M is MILLI and mega is `Meg`,
so the dark resistance became 0.001 ohm. With the divider's top leg a
short, AO sat at VCC: `ldr.read()` returned 4095 on every sample, the
sketch's `light < 500` branch never ran, and the lamp LED never lit.
Dragging the lux control changed nothing either, because every lux value
still divides a short (measured n1 = 3.299999996 V, which is exactly what
100k / (100k + 0.00011) predicts).

The netlist snapshot had frozen the bug in place:

  - R_night-ldr_ldr vcc_rail n1 0.00011111111111111112
  + R_night-ldr_ldr vcc_rail n1 111111.11111111111

Diagram now says "1Meg" (regenerated from test/test_100_days), and the
mapper clamps a sub-1k dark resistance to the documented 1Meg default
with a console warning naming the milli/mega trap — a photoresistor that
reads as a short is always this mistake, and it fails in the most
confusing way possible: the part looks alive, it just never moves.
2026-08-17 03:39:47 +02:00
..
customChips
…
digital
…
displays fix(epaper): persist the window union across refreshes (fix partial-refresh tears) 2026-08-06 16:53:00 +02:00
parts fix(ntc): the temperature sensor read wrong on 3.3V boards, and three examples decoded backwards 2026-08-03 07:33:20 +02:00
spice fix(examples): night-light LDR shorted AO to VCC — "1M" is milliohms in SPICE 2026-08-17 03:39:47 +02:00
verify fix(spice): per-voltage supply rails — VIN/5V no longer clamped to the 3.3V logic rail 2026-08-15 08:29:39 +02:00
AVRSimulator.ts spice: seed INPUT_PULLUP pins to their resting level on pull enable 2026-07-31 20:51:42 +02:00
Esp32Bridge.ts fix(gateway): keep in-browser WiFi boards reachable through the IoT gateway 2026-08-14 19:45:39 +02:00
Esp32BridgeFactory.ts
…
Esp32C3Simulator.ts
…
Esp32MicroPythonLoader.ts feat(flash): MicroPython web-flash seam (firmware install + raw-REPL upload) 2026-08-11 22:55:47 +02:00
HD44780Decoder.ts
…
I2CBusManager.ts
…
Interconnect.ts fix(uart): el enganche de serie sobrevive a recrear el simulador 2026-07-29 20:55:05 +02:00
LogicFamilies.ts
…
MicroPythonLoader.ts
…
PinManager.ts fix(compile): user_libs_all gets the -Werror relaxations too 2026-08-12 14:38:49 +02:00
PinResolver.ts
…
PioPeripheral.ts
…
RP2040Simulator.ts feat(components): DS3231 RTC module + GPS NEO-6M NMEA talker 2026-07-31 20:38:06 +02:00
RaspberryPi3Bridge.ts feat(pi): salida de pantalla para las Pi + arreglo del guard de connect 2026-07-30 01:09:04 +02:00
RiscVCore.ts
…
RiscVSimulator.ts
…
SensorUpdateRegistry.ts
…
SignalRouter.ts
…
SpiBus.ts
…
Stm32Bridge.ts
…
UsiI2cBridge.ts fix(sim): drive the slave ACK in the USI I2C bridge (blank SSD1306 on ATtiny85) 2026-08-11 05:19:31 +02:00
esp32-signals.ts
…
piSlaveScanner.ts fix(pi): perifericos completos en la familia Pi — entradas, buses y pines 2026-07-29 17:05:39 +02:00
rp2040-bootrom.ts
…
sensorControlConfig.ts Merge remote-tracking branch 'origin/master' into v3.2-worktree 2026-08-01 04:23:55 +02:00