Order in for Same-Day Shipping (Mon-Fri)Same-Day Shipping on Orders Before (Mon-Fri) US Ship: $5.99+ · No Tariffs · No MOQ | Int'l Ship: $19.99+
US $5.99+ · No Tariffs | Int'l $19.99+ · Ships Worldwide
555 Timer Alternating LED Flasher — Railroad Crossing and Emergency Light Circuits
555 Timer Alternating LED Flasher Calculator
⚠ Calculator in Development — This tool is actively being refined. All calculations are based on standard 555 timer formulas and may differ slightly from real-world results due to component tolerances, temperature, and IC variation. Always verify your circuit with a multimeter. Found a bug or have feedback? Contact us.
An alternating LED flasher makes two LEDs take turns blinking — when one is on, the other is off, and they swap back and forth continuously. You see this pattern everywhere: railroad crossing signals, emergency vehicle lights, and warning indicators. It is one of the most useful circuits you can build with a 555 timer.
The circuit works by taking advantage of the 555 timer's output pin (pin 3). When the output is HIGH, pin 3 sources current to light LED 1. When the output goes LOW, pin 3 sinks current from VCC through LED 2. This means you get two alternating LEDs from a single 555 timer with no extra components beyond the LEDs and their resistors.
This calculator designs the complete circuit for you. Choose your power supply, pick colors for each LED, set the flash rate, and the tool calculates every component value. If the two LEDs have different forward voltages (for example, red and blue), each LED gets its own correctly sized resistor.
LED 1
LED 2
1.00 Hz
50.0% duty cycle · 60 alternations/min
1 Power Supply
Custom:V?
2 Choose Your LEDs
LED 1 — ON when output HIGH (pin 3 sources current)
The calculator will pick practical R1, R2, and C1 values to achieve the selected rate. R1 is fixed at 1kΩ.
1 kΩ
100 kΩ
10 µF
Adjust R1, R2, and C1 to set a custom flash rate. The frequency will be calculated when you press the button below.
Timing Results
Frequency
1.00 Hz
Period
1000 ms
LED 1 ON Time
693 ms
Output HIGH
LED 2 ON Time
307 ms
Output LOW
Duty Cycle
69.3%
Alternations/Min
60
f = 1.44 / ((R1 + 2×R2) × C1)
555 Timer Components
R1
1 kΩ
R2
100 kΩ
C1
10 µF
LED 1 Current-Limiting Resistor (RLED1)
Calculated Value
275 Ω
Use Resistor (E24)
300 Ω
Power Dissipation
5.5 mW
Use ¼W resistor
RLED1 = (Vsupply − 1.7V − Vf1) / If1
LED 1 connects from pin 3 to GND. The 1.7V is the 555 output HIGH saturation drop.
The nearest E24 standard value (rounded up) ensures the LED current stays at or below the target.
LED 2 Current-Limiting Resistor (RLED2)
Calculated Value
275 Ω
Use Resistor (E24)
300 Ω
Power Dissipation
5.5 mW
Use ¼W resistor
RLED2 = (Vsupply − 1.7V − Vf2) / If2
LED 2 connects from VCC to pin 3. The 1.7V is the 555 output LOW saturation drop (pin 3 sits at ~1.7V above GND when sinking).
If both LEDs are the same color with the same Vf, RLED1 and RLED2 will be the same value.
Power Consumption
555 Quiescent Current
~3–5 mA
Typical for NE555
LED 1 Current
20 mA
During HIGH time
LED 2 Current
20 mA
During LOW time
Avg. Total Current
~24 mA
9V Battery Life
~21 hours
Estimated at 500 mAh
Circuit Diagram
Component values in the diagram update automatically when you recalculate. LED 1 lights when pin 3 is HIGH (sources current to GND). LED 2 lights when pin 3 is LOW (sinks current from VCC). The 100nF capacitor on pin 5 stabilizes the internal voltage divider.
Breadboard Layout
This diagram shows how to place the components on a solderless breadboard. The 555 IC straddles the center channel. Both LED circuits are shown with their respective resistors. Component values update automatically when you recalculate.
LED 1 (left) connects from pin 3 through RLED1 to GND. LED 2 (right) connects from VCC through RLED2 to pin 3. Wire colors: red = VCC, black = GND, blue = LED 1 circuit (pin 3 source), orange = LED 2 circuit (pin 3 sink), green = timing network.
Bill of Materials
Here are the components you need, with links to the Lighthouse LEDs store. Resistor and capacitor values are based on your calculator results above.
Follow these steps to build your alternating LED flasher on a solderless breadboard. The entire circuit takes about 5–10 minutes to assemble.
1
Gather your components. You will need: a 555 timer IC, two resistors for timing (R1, R2), two LED resistors (RLED1, RLED2), one electrolytic capacitor (C1), one 100nF ceramic capacitor, two LEDs, a breadboard, jumper wires, and your power source. See the Bill of Materials below for exact values.
2
Place the 555 timer on the breadboard. Straddle the IC across the center divider so each pin has its own row. The notch or dot on the IC marks pin 1. Pin 1 is at the bottom-left when the notch faces up.
3
Connect power and ground. Run a wire from your positive supply rail to pin 8 (VCC). Run a wire from your ground rail to pin 1 (GND).
4
Tie RESET to VCC. Connect pin 4 (RESET) directly to pin 8 (VCC) or to the positive supply rail. This keeps the 555 enabled at all times.
5
Connect R1. Place resistor R1 between the positive supply rail (VCC) and pin 7 (DISCHARGE).
6
Connect R2. Place resistor R2 between pin 7 (DISCHARGE) and the junction of pins 6 and 2. One leg goes to the same row as pin 7, the other goes to a row connected to pins 6 (THRESHOLD) and 2 (TRIGGER).
7
Connect pins 6 and 2 together. Use a jumper wire to connect pin 6 (THRESHOLD) and pin 2 (TRIGGER) to the same row where R2 connects. In astable mode, these two pins must be tied together.
8
Connect C1. Place the electrolytic capacitor between the pin 6/2 junction and GND. The positive (longer) leg goes to the junction row, the negative leg to the ground rail. Watch polarity.
9
Add the bypass capacitor. Place a 100nF ceramic capacitor between pin 5 (CONTROL) and GND. This filters noise and prevents erratic flashing.
10
Connect LED 1 (pin 3 to GND). From pin 3 (OUTPUT), connect RLED1. From the other end of RLED1, connect the anode (longer leg) of LED 1. Connect the cathode (shorter leg, flat side) to GND. This LED lights when pin 3 is HIGH.
11
Connect LED 2 (VCC to pin 3). From the VCC rail, connect RLED2. From the other end of RLED2, connect the anode (longer leg) of LED 2. Connect the cathode (shorter leg, flat side) to pin 3 (OUTPUT). This LED lights when pin 3 is LOW, because current flows from VCC through the LED into pin 3.
12
Power up and test! Connect your power supply. Both LEDs should alternate — when one is on, the other is off. If both stay on or both stay off, double-check that LED 1 goes from pin 3 to GND and LED 2 goes from VCC to pin 3.
Tips & Troubleshooting
⚠ Both LEDs stay on at the same time.
This is the most common wiring mistake. Check that LED 1 goes from pin 3 to GND and LED 2 goes from VCC to pin 3. If both LEDs are wired from pin 3 to GND (or both from VCC to pin 3), they will blink together instead of alternating. You need one LED on each side of pin 3.
⚠ One LED lights but the other does not.
Check the LED polarity — the anode (longer leg) goes toward the more positive end of the circuit. For LED 2 (VCC to pin 3), the anode connects toward VCC and the cathode connects toward pin 3. Also verify RLED is not too large, which can reduce current below a visible threshold.
⚠ LEDs are not alternating — both blink together.
Both LEDs are likely wired the same direction (both from pin 3 to GND, or both from VCC to pin 3). The alternating effect requires one LED on each side: LED 1 from pin 3 to GND (sources current when HIGH), and LED 2 from VCC to pin 3 (sinks current when LOW).
⚠ Flash rate is wrong.
Double-check R1, R2 color bands and verify C1 is the correct value. Electrolytic capacitors have wide tolerances (±20%). A 10µF cap that measures 12µF will slow the rate by 20%. Use a multimeter with a capacitance mode to verify.
💡 One LED is brighter than the other.
This is expected when using different LED colors. Different forward voltages mean different amounts of current even with similar resistor values. You can compensate by adjusting RLED for each LED independently — use a smaller resistor for the dimmer LED (within its safe current rating) or a larger resistor for the brighter one.
💡 Model railroad tip.
For realistic scale railroad crossing signals, use 3mm LEDs with 30 AWG Kynar wire for clean, thin connections. Set the flash rate to 1.5 Hz for HO or N scale. Real prototype crossing signals flash at 45–65 times per minute (0.75–1.08 Hz), but slightly faster looks more natural at small scales.
Disclaimer: This calculator provides theoretical values based on ideal 555 timer behavior. Real-world results may vary due to component tolerances, breadboard contact resistance, and temperature. The 555 output saturation voltage of approximately 1.7V is typical for the NE555 in both source and sink modes. CMOS variants (TLC555, ICM7555) have lower saturation voltages and will require different RLED values. Always verify your circuit with a multimeter.