~4m12:03
Hi Dev! – Электроника

В чем секрет NE555? Разбираемся как устроена эта микросхема и почему на ней можно сделать всё!

Jun 23, 2023

Read: ~4m · You save: 8 min

What's the Secret of the NE555? Understanding How This Microchip Works and Why You Can Do Anything With It!

Unlock the secrets of the legendary NE555 timer IC! Discover its internal workings, explore 3 operating modes, and see why it's still a favorite for countless electroni

The NE555, first released in 1971, remains a cornerstone of hobbyist electronics over five decades after its introduction. Its enduring popularity stems from its remarkable versatility, enabling the creation of a wide array of devices including power supplies, voltage converters, flashing lights, buzzers, alarms, sensors, and even Class D audio amplifiers. While not without its limitations, the NE555's primary secret to widespread adoption among electronics enthusiasts lies in its inherent simplicity and understandability. This article aims to demystify the NE555 for aspiring electronics engineers, exploring its internal architecture, operational principles, and the vast possibilities it offers.

Core Functionality: A Pulse Generator

At its heart, the NE555 is a timer IC designed to generate single or repeating pulses with precise and stable time intervals. This fundamental capability is crucial for all forms of pulse-based electronics. The generated pulses can be utilized to produce audible tones, drive LEDs, and form the basis of countless other applications. While other microchips may require complex design considerations, the NE555 allows for a more intuitive approach to circuit development, a key factor in its appeal.

Internal Architecture of the NE555

The NE555 comprises four primary internal blocks: a resistive voltage divider, two comparators, an RS flip-flop, and a buffer stage. The entire operation revolves around a resistive voltage divider composed of three 5 kΩ resistors, which gives the chip its name.

  • Resistive Voltage Divider: This network divides the supply voltage into three equal parts. The upper part connects to the positive supply, and the lower part connects to ground. The two intermediate connection points are fed into the comparators.
  • Comparators: These are devices with two inputs: a non-inverting (+) and an inverting (-). If the voltage at the non-inverting input exceeds that of the inverting input, the output is high (logic '1', equal to the supply voltage). Conversely, if the voltage at the inverting input is higher, the output is low (logic '0', connected to ground).
    • Comparator 1: Its non-inverting input is connected to the NE555's "Threshold" pin (Pin 6). Its inverting input receives two-thirds of the supply voltage from the voltage divider. The inverting input is also accessible externally via the "Control" pin (Pin 5).
    • Comparator 2: Its non-inverting input is connected to the junction of the second and third resistors in the divider, receiving one-third of the supply voltage. Its inverting input is connected to the NE555's "Trigger" pin (Pin 2).
  • RS Flip-Flop: The outputs of the comparators feed into an RS flip-flop, a logic element with two inputs (Set 'S' and Reset 'R') and two outputs. In the NE555, one inverted output is primarily used.
    • A high pulse on the 'S' input sets the flip-flop's output to '0' and maintains it until a high pulse arrives at the 'R' input, which then changes the output to '1'.
    • The flip-flop also has an additional inverted 'R' input (Pin 4, labeled "Reset"). Applying a '0' to this pin resets the flip-flop. If this pin is not used for external reset, it is typically connected to the positive supply voltage.
  • Buffer Stage: The output of the RS flip-flop drives a buffer stage, which further amplifies the signal and provides the NE555's main output. This buffer also inverts the signal from the flip-flop.

The "Discharge" pin (Pin 7) is connected to an NPN transistor. When the flip-flop output is '1', this transistor is activated, connecting Pin 7 to ground. This is used to discharge an external timing capacitor.

Modes of Operation

The NE555 can be configured to operate in several distinct modes:

1. Schmitt Trigger Mode

In this mode, the NE555 acts as a Schmitt trigger, converting analog signals into clean rectangular pulses. This is useful for debouncing switch contacts and restoring distorted digital signals.

  • Configuration: Pins 2 (Trigger) and 6 (Threshold) are connected together and serve as the input. Pin 5 (Control) and Pin 7 (Discharge) are typically left unconnected or connected to the supply as per specific circuit requirements.
  • Operation: When an analog input signal crosses the upper threshold (two-thirds supply voltage), the output switches low. When it drops below the lower threshold (one-third supply voltage), the output switches high. This hysteresis provides noise immunity.
  • Application Example: A twilight switch can be created by connecting a voltage divider consisting of a photoresistor and a potentiometer to the input. The output can control a relay to switch a light on or off based on ambient light levels, with the potentiometer adjusting the trigger point.

2. Monostable Mode (One-Shot Timer)

This mode allows the NE555 to generate a single output pulse of a precisely defined duration in response to a trigger input.

  • Configuration: Pin 6 is connected to Pin 7. A timing capacitor and resistor are connected between Pin 7 and the positive supply. Pin 2 serves as the trigger input.
  • Operation: Initially, the internal transistor connected to Pin 7 is active, discharging the timing capacitor. A brief low pulse on Pin 2 triggers the circuit. The internal transistor turns off, allowing the capacitor to charge through the external resistor. The output remains high as long as the capacitor voltage is below two-thirds of the supply voltage. Once it reaches this threshold, the comparator triggers, and the output returns to low, resetting the cycle.
  • Timing: The duration of the output pulse is determined by the values of the external resistor (R) and capacitor (C) according to the formula: T = 1.1 * R * C. Variable resistors can be used to adjust the pulse width.
  • Application Example: This mode can be used to activate a load for a specific duration, such as turning on a device for a set time.

3. Astable Mode (Oscillator)

The astable mode configures the NE555 as a free-running oscillator, generating a continuous stream of rectangular pulses. This is perhaps the most common and versatile application.

  • Configuration: The timing components (two resistors and a capacitor) are connected between the supply, Pin 7, and Pin 6. Pin 2 is connected to Pin 6.
  • Operation: The capacitor charges through one resistor towards the supply voltage. When it reaches two-thirds supply voltage, the output goes low, and the internal discharge transistor (Pin 7) activates, discharging the capacitor through the second resistor. When the capacitor voltage drops to one-third supply voltage, the output goes high, and the discharge transistor turns off, restarting the charging cycle.
  • Frequency and Duty Cycle: The frequency of oscillation is determined by the values of the two resistors and the capacitor. The duty cycle (the ratio of the 'on' time to the total period) can be adjusted by varying the resistor values.
  • Application Examples:
    • PWM Generator: By using a potentiometer in the timing circuit, a Pulse Width Modulation (PWM) signal can be generated, allowing for variable control of parameters like motor speed or LED brightness.
    • Voltage Converters: The NE555 can be used in astable mode to create stabilized boost converters, stepping up low input voltages (e.g., 5-24V) to much higher output voltages (e.g., over 300V), often incorporating feedback to the Control pin (Pin 5) for stabilization.
    • Audio Amplifiers: Class D audio amplifiers can be constructed using the NE555.

The NE555's internal structure, with its voltage divider, comparators, and flip-flop, provides a robust and understandable foundation for these diverse operational modes. The ability to generate precise timing intervals and stable pulses makes it an indispensable component for a vast range of electronic projects.

Introduction to the Legendary NE555

Introduction to the NE555, its history since 1971, and its widespread use in various electronic projects due to its simplicity and versatility. The video aims to explain its internal structure and functionality for beginners.

  • The NE555 timer IC was released in 1971 and remains popular among electronics enthusiasts.
  • It's used in diverse applications like power supplies, voltage converters, blinkers, alarms, sensors, and Class D audio amplifiers.
  • Its popularity stems from its understandability, making it ideal for beginners.
  • The NE555 functions as a timer, generating single or repeating pulses with stable time intervals.
  • Repeating pulses are fundamental to pulse technology and can be used for sound or lighting.

Internal Structure of the NE555

Detailed breakdown of the NE555's internal architecture, explaining the roles of the resistive divider (three 5kΩ resistors), two comparators, an RS flip-flop, and a buffer stage. It clarifies how these components interact to produce output signals based on input voltages.

  • The NE555 consists of four main blocks: a resistive voltage divider, two comparators, an RS flip-flop, and a buffer stage.
  • The resistive divider uses three 5kΩ resistors, dividing the supply voltage into three equal parts (1/3, 2/3, and full supply).
  • The first comparator monitors the 'Threshold' pin (pin 6) against 2/3 supply voltage and the 'Control' pin (pin 5).
  • The second comparator monitors the 'Trigger' pin (pin 2) against 1/3 supply voltage.
  • The outputs of the comparators control the RS flip-flop, which determines the output state (0 or 1).
  • The buffer stage amplifies the output signal.
  • The 'Discharge' pin (pin 7) is used to discharge an external capacitor, controlled by an internal NPN transistor.

Operating Mode 1: Schmitt Trigger

Exploration of the NE555's Schmitt trigger mode, where it converts analog signals into rectangular pulses. This section details the circuit configuration and demonstrates its use in creating a twilight switch activated by light level changes.

  • In Schmitt trigger mode, the NE555 converts analog signals into rectangular pulses.
  • This mode is useful for debouncing contacts and restoring distorted digital signals.
  • Pins 2 and 6 are connected together and serve as the input.
  • A twilight switch can be made by connecting a voltage divider with a photoresistor and potentiometer to the input.
  • The output can control a relay to switch a light based on ambient light levels, with the potentiometer setting the trigger threshold.

Operating Mode 2: Monostable (One-Shot) Mode

Explanation of the monostable (one-shot) mode, enabling the NE555 to generate a single output pulse of a specific duration. The setup involves an external resistor and capacitor to define the pulse length, triggered by a negative pulse at the input.

  • Monostable mode produces a single output pulse of a defined duration.
  • Pins 6 and 7 are connected, and a time-setting resistor (R) and capacitor (C) are connected between these pins and the supply.
  • Pin 2 acts as the trigger input; a brief low pulse here initiates the timing cycle.
  • The output remains high while the capacitor charges through the resistor.
  • The pulse duration is determined by the R and C values (T ≈ 1.1 * R * C).
  • This mode can be used to activate a load for a specific time, like turning on a relay.

Operating Mode 3: Astable Mode (Oscillator)

Focus on the astable mode, the most versatile configuration, which allows the NE555 to function as a free-running oscillator generating continuous rectangular pulses. The video references previous tutorials on PWM generators and boost converters built using this mode.

  • Astable mode creates a continuous stream of rectangular pulses (oscillator).
  • It's used to generate PWM (Pulse Width Modulation) signals.
  • Previous videos demonstrated a PWM generator with adjustable pulse width using this mode.
  • A stabilized boost converter generating over 300V from a low input voltage was also built using the NE555 in astable mode.
  • The feedback loop for stabilization was connected to pin 5 (Control Voltage).

Conclusion and Future Possibilities

Concluding remarks on the NE555's vast applications, encouraging viewers to explore further possibilities. The presenter suggests future projects like a Class D audio amplifier and invites audience participation through comments and likes.

  • The NE555 has a vast range of applications beyond the examples shown.
  • Future video ideas include building a Class D audio amplifier using the NE555.
  • Viewers are encouraged to share their own projects and experiences with the NE555 in the comments.
  • The video concludes by thanking viewers and promoting engagement with the channel.