On/Off Delay
Summary
The **On/Off Delay** component introduces configurable delays for activating and deactivating a digital output signal. It is useful for debouncing, timing control, and ensuring stable state transitions.
Description
This component delays the transition of a digital signal at its output. When the input turns **on**, the output is activated only after the specified **On Interval** has elapsed. When the input turns **off**, the output is deactivated only after the specified **Off Interval** has elapsed. It can also be initialized to a given state at startup.
Diagram:
Properties
- Enabled (boolean) – Enables or disables the delay function.
- Initial Value (boolean) – Initial state of the output on startup.
- Off Interval (µS) (default: 1000000 ≈ 1 second) – Delay time before switching off, in microseconds.
- On Interval (µS) (default: 1000000 ≈ 1 second) – Delay time before switching on, in microseconds.
Pins
Input Pins
- in (digital) – Digital input signal.
Output Pins
- out (digital) – Digital output signal with applied delays.
Categories
- File:TArduinoDigitalCategory.png Category Digital – Digital signal processing components.
- File:TArduinoClockCategory.png Category Clock – Timing and synchronization components.