timer 555
timer_555Calculates timing parameters for the ubiquitous NE555 / LM555 timer IC in astable (free-running oscillator) and monostable (one-shot pulse) modes. In astable mode, computes frequency, period, duty cycle, and HIGH/LOW durations from R1, R2, and C using f = 1.44 / ((R1 + 2·R2) · C). In monostable mode, computes pulse width from R and C using t = 1.1 · R · C. Standard 555 astable duty cycle is always >50%; for 50% duty cycle use a diode across R2. Useful for generating clock signals, PWM, delays, and debounce circuits. Chain from ohms_law for power calculations or resistor_color_code for component selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Operating mode. 'astable' produces a continuous square wave. 'monostable' produces a single timed pulse. | |
| r1_ohm | Yes | Resistance R1 in ohms. In astable mode this is the charge-path resistor between Vcc and the discharge pin. In monostable mode this is the timing resistor. | |
| r2_ohm | No | Resistance R2 in ohms (astable mode only). Charge/discharge resistor between the discharge and threshold pins. Required for astable mode. | |
| c_farad | Yes | Timing capacitor in farads. Typical values range from 1 pF to 1000 µF. Use scientific notation, e.g. 1e-6 for 1 µF. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Operating mode used for calculation. | |
| r1_ohm | Yes | R1 value used in ohms. | |
| r2_ohm | Yes | R2 value used in ohms (null for monostable). | |
| c_farad | Yes | Capacitor value used in farads. | |
| period_s | Yes | Total period in seconds (astable only, null for monostable). | |
| c_display | Yes | Human-readable capacitor value string (e.g. '100 nF', '4.7 µF'). | |
| time_low_s | Yes | Output LOW duration in seconds (astable only, null for monostable). | |
| time_high_s | Yes | Output HIGH duration in seconds. In astable this is the charge time; in monostable this is the pulse width. | |
| frequency_hz | Yes | Output frequency in Hz (astable only, null for monostable). | |
| duty_cycle_pct | Yes | Duty cycle as a percentage (astable only, null for monostable). Always > 50% for standard 555. |