Labs / Digital · Intermediate · 35 min
555 timer astable
Calculate frequency and duty cycle of a 555 astable.
Engineering instrumentation: This lab includes an instrument-style virtual test setup and parameter-driven waveform. For physical measurements, use the Practical Bench.
Parts
- NE555 IC
- Resistors R1 and R2
- Capacitor
- LED and 330 ohm
- 9 V battery
Steps
- Wire the 555 in astable mode (pins 2 and 6 joined).
- Choose R1, R2 and C.
- Connect an LED to pin 3.
- Measure the output frequency.
Safety: check polarity and power off before changing the circuit.
ESP32 code (Arduino IDE)
// Read the 555 output on GPIO 34
volatile int n=0; void IRAM_ATTR isr(){ n++; }
void setup(){ Serial.begin(115200); attachInterrupt(34,isr,RISING); }
void loop(){ n=0; delay(1000); Serial.println(n); }Viva questions
Formula for frequency?
f = 1.44 / ((R1 + 2 R2) x C).
Can duty cycle go below 50%?
Not with the basic circuit, a diode across R2 allows it.
Pin 4?
Reset, keep it high for normal operation.