What is a 555 timer, time constants, digital counting and binary calculations.

Part ofDesign and TechnologyElectronic and microelectronic control systems

Key points

  • Understanding DIL ICs means knowing how dual-in-line integrated circuits function and identifying pin one.
  • The 555 Timer IC is a versatile IC used for timing, producing astable (continuous pulses) and monostable (single pulse) outputs.
  • Astable mode produces continuous pulses and is used in LED flashers, clock circuits, and motor control.
  • Monostable mode produces a single pulse when triggered, with the duration controlled by resistor and capacitor values.
  • The time constant is the time period for which the output remains high or low, influenced by capacitance and resistance.
  • Digital signals and binary involve recognising high (on) and low (off) voltage levels, and understanding binary counting and conversion.
Back to top

How to use dual-in-line (DIL) integrated circuits

Understanding dual-in-line (DIL) integrated circuits is important for working with electronics. This involves knowing how they function and identifying pin one. The 555 timer IC (integrated circuit) can produce two types of outputs: and . It is essential to interpret the output waveforms for these circuits and perform basic calculations for their outputs.

Two dual-in-line (DIL) integrated circuits with Notch and Pin 1 labelled
Image caption,
DIL with notch and Pin 1 labelled

The functions of a 555 timer

A 555 timer on a blue circuit board with the notch and pin 1 at the top
Image caption,
A 555 timer integrated circuit on a blue circuit board

The 555 timer is a versatile integrated circuit (IC) that can control timing in electronic circuits. It's one of the most widely used ICs due to its reliability and flexibility.

This timer can operate in two main modes:

  1. astable (continuous pulses)
  2. monostable (single pulse)
A 555 timer on a blue circuit board with the notch and pin 1 at the top
Image caption,
A 555 timer integrated circuit on a blue circuit board
A typical 555 timer diagram with pins numbered 1-8
Figure caption,
A typical 555 timer diagram with pins numbered 1-8

Astable Mode:

  • produces continuous output pulses
  • output switches continuously between high and low
  • used for led flashers, clock circuits and motor control

How the 555 astable circuit works:

Circuit diagram of a 555 astable IC in low state and high state
Figure caption,
Circuit diagram of a 555 astable IC in low state and high state

Describe how the circuit works:

555 astable waveforms

The 555 astable waveform - voltage plotted against time
Figure caption,
The 555 astable waveform - voltage plotted against time - showing the square wave
  • Square wave: alternates between high (on) and low (off) states.
  • Sharp transitions: creates clear, rectangular pulses.
  • Continuous cycle: repeats the pattern without stopping.

How to calculate the output time of an astable 555 circuit:

\( \text T = \frac{1}{\text f}\)

Where:

  • \( \text T\) = time period in seconds (s)
  • \(f\) = frequency in Hertz (Hz)

But, to find the frequency for an astable 555 timer another equation is needed:

\(f = \frac{1.44}{(R_1+2R_2)C}\)

Where:

  • \(f\) = frequency in Hertz (Hz)
  • \(R_1\) = resistance in ohms (Ω) of the top resistor
  • \(R_2\) = resistance in ohms (Ω) of the middle resistor (VR1 in the example above)
  • \(C\) = capacitance in Farads (F)

Based on the 555 astable LED circuit diagram above:

\(R_1\) = 1kΩ (1,000Ω)
\(R_2\) = 10kΩ (10,000Ω)
\(C\)= 1000μF (0.001F)

\(f = \frac{1.44}{(R_1+2R_2)C}\)

\(f = \frac{1.44}{(1000+20000)\times 0.001}\)
\(f = \frac{1.44}{(21000)\times 0.001}\)
\(f = \frac{1.44}{(21)}\)

\(f = 0.0686 \text {Hz}\)

Now that the frequency has been calculated, the time period can be found:

\( \text T = \frac{1}{\text f}\)

\( \text T = \frac{1}{0.086}\)

\( \text T = 14.58\)

The time for this astable 555 timer to flash/pulse the red LED (low) and then flash the blue LED (high) will take 14.58 seconds

How the 555 monostable circuit works:

555 monostable alarm circuit with variable resistor, NPN transistor, capacitor and 9v power source
Figure caption,
A circuit diagram of a 555 monostable alarm circuit

555 monostable waveforms:

The 555 monostable waveform - voltage plotted against time - showing the square wave
Figure caption,
The 555 monostable waveform - voltage plotted against time - showing the square wave
  • Single pulse: produces one output pulse when triggered.
  • High state: pin 3 goes high (on) for a set period.
  • Return to low: after the time period, the output returns to low (off).
  • Controlled duration: the length of the high state is determined by the resistor (R) and capacitor (C) values.

How to calculate the output time of a monostable 555 circuit:

Time = 1.1 × Capacitor × Resistor

\(\text T = 1.1 \times C \times R\)

Where:

  • \(\text T\) = time period in seconds (s)
  • \( R\) = resistance in ohms (Ω)
  • \( C\) = capacitance in Farads (F)

Based on the 555 monostable alarm circuit diagram above:

\( C\) = 100μF (0.0001F)
\( R\) = 50kΩ (50,000Ω)

\(\text T = 1.1 \times C \times R\)
\(\text T = 1.1 \times 0.0001 \times 50000\)
\(\text T = 5.5\) seconds

When triggered, this monostable 555 timer will turn on the buzzer for 5.5 seconds.

Back to top

What is the time constant?

In a 555 timer circuit, the time period for which the output remains high or low is influenced by two key components: capacitance (C) and resistance (R). The capacitor stores electrical energy, and the resistor controls the rate at which the capacitor charges or discharges.

A 555 timer circuit with capacitor and resistor
Figure caption,
A 555 timer circuit diagram with capacitor and resistor

The time constant (T) is a measure of how quickly the capacitor charges through the resistor. A larger capacitance or resistance results in a longer time constant, meaning the capacitor takes more time to charge or discharge, thus extending the time period of the timer.

To find the time constant, the formula below is used:

Time Constant T = R × C

Where:

  • \(\text T\) = Time constant in seconds
  • \(R\) = Resistance in ohms (Ω)
  • \(C\) = Capacitance in farads (F)

Example:

  • Resistance (\(R\)): 10kΩ (10,000Ω)
  • Capacitance (\(C\)): 100µF (0.0001F)

\(\text T = R \times C\)

\(\text T = 10,000\text Ω \times 0.0001\text F\)

The capacitor will take 1 second to charge to about 63% of the supply voltage through the resistor

Back to top

Digital signals and counting

How to recognise high and low voltage levels

Recognising high and low voltage levels is crucial because it allows us to understand how digital devices process and store information. This binary representation is used in everything from simple logic gates to complex computer systems.

  • High voltage (1): represents an ‘on’ state, typically a higher voltage (eg, 9V)
  • Low voltage (0): represents an ‘off’ state, typically a lower voltage (eg, 0V)
  • Digital signals: use these two states (on/1 and off/0) to perform operations and communicate information

Understanding binary

Understanding binary is essential for working with digital electronics because it is the basis for all computer operations. It helps in designing circuits, programming, and troubleshooting digital devices.

  • Binary System: uses base 2, with only two digits (0 and 1)
  • Binary counting: is the process of counting in the binary number system. It starts from 0 and increases by 1, just like decimal counting, but only uses the digits 0 and 1.

An example of binary counting:

0 in binary = 0 in decimal
1 in binary = 1 in decimal
10 in binary = 2 in decimal
11 in binary = 3 in decimal
100 in binary = 4 in decimal
101 in binary = 5 in decimal
110 in binary = 6 in decimal, etc.

  • Binary addition: similar to decimal addition but only uses 0 and 1.

An example of binary addition:

Add binary numbers 1011 and 1101

1011
+1101
=?

  1. Rightmost column: 1 + 1 = 10 (write down 0, carry over 1)
  2. Next column: 1 + 0 + 1 (carry) = 10 (write down 0, carry over 1)
  3. Next column: 0 + 1 + 1 (carry) = 10 (write down 0, carry over 1)
  4. Leftmost column: 1 + 1 + 1 (carry) = 11 (write down 1, carry over 1)

1011
+1101
=11000

Therefore, 1011 (binary) + 1101 (binary) = 11000 (binary).

Converting between decimal and binary numbers

  • Decimal to binary: divide the decimal number by 2, record the remainder, and repeat until you reach 0. The binary number is the remainders read in reverse order.

Example:
Decimal 10 to binary

  1. 10 ÷ 2 = 5 (remainder 0)
  2. 5 ÷ 2 = 2 (remainder 1)
  3. 2 ÷ 2 = 1 (remainder 0)
  4. 1 ÷ 2 = 0 (remainder 1)
    Binary = 1010
  • Binary to decimal: each digit represents a power of 2, starting from the right (e.g., 1, 2, 4, 8, 16, etc.)

Example:
Binary 1011 to decimal:

  1. Rightmost bit (1): (2⁰ = 1)
  2. Next bit (1): (2¹ = 2)
  3. Next bit (0): (2² = 4) (ignored because the bit is 0)
  4. Leftmost bit (1): (2³ = 8)
  5. Total value: (8 + 0 + 2 + 1 = 11)
  6. The binary number 1011 equals the decimal number 11
Back to top

Test yourself

Back to top

More on Electronic and microelectronic control systems

Find out more by working through a topic