Rain Pulse Simulator
Simulates the supplied STM32 rising/falling edge callbacks against timestamped CSV input.
Input CSV
One event per row: 0,timestamp_ms for rising, 1,timestamp_ms for falling. A header row is optional.
Callback constants
0Detected pulses
0Accepted edges
0Lockout-filtered edges
0Ignored by state/timing
Timeline
Rising edge
Falling edge
Detected pulse (accepted high interval)
Filtered edge
Scroll to zoom · Drag to pan · Shift+scroll to pan
The green interval spans the rising and falling edges that caused the counter to increment. Hover is not required; exact timestamps are listed below.
Detected pulses
Run a simulation to see detected pulses.
Event processing log
Run a simulation to see event details.
Simulation behaviour
- Uses the same strict comparisons as the C code: elapsed time must be greater than the configured threshold.
- The global edge lockout is applied before the state machine and updates its last-valid-edge timestamp only for accepted edges.
- A rising edge while already in the pulse state resets the rising timestamp, matching the supplied callback.
- A falling edge with a pulse width less than or equal to the minimum hold time does not leave the pulse state.
- A falling edge while idle updates the last-falling timestamp.
- The initial last-valid and last-falling timestamps are both zero, matching the static C initialisation.