Schmitt Trigger: everything you need to know about this component

Schmitt Trigger

Today we describe another new component added to our list, the Schmitt Trigger, an unknown to many who will now cease to be a mystery. And we are going to describe everything you need to know about it, such as what it is, what it is for, how this electronic device works, and even then you can integrate it with your projects with Arduino, etc.

So, let's see what this element can do for us...

Necessary prior concepts

Before starting with the Schmitt Trigger, it is necessary define a couple of concepts that will come in handy to better understand what it is and how it works. I am referring to:

  • Comparator: In electronics, a comparator is a device that compares two voltages or currents and outputs a digital signal indicating which is greater. It has two analog input terminals, and one binary digital output. This is important to note, as the Schmitt trigger is a type of comparator. Additionally, this comparator consists of a specialized high gain differential amplifier.
  • Hysteresis: Hysteresis is a property in which the state of a system depends on its history. For example, a magnet can have different magnetic moments in a magnetic field depending on how the field changed in the past, forming hysteresis curves. This property is observed in ferromagnetic and ferroelectric materials and natural phenomena such as the deformation of rubbers and shape memory alloys. Hysteresis is associated with irreversible changes, such as phase transitions, and is common in natural systems. Why should you know this? Well, because the Schmitt Trigger is a comparator circuit with hysteresis.

What is a Schmitt Trigger?

Schmitt Trigger CHIP DIP

Un Schmitt Trigger, also known as a Schmitt trigger in Spanish, is an electronic comparator circuit that converts an analog input signal into a digital output signal. It does this by applying positive feedback to generate a hysteretic switching point, meaning that the threshold for switching between the logic "high" and "low" states is different for the rise and fall of the input signal. This hysteretic behavior prevents unwanted fluctuations and provides a tolerance margin for noisy or small-jitter input signals.

The design was created for the first time Otto H. Schmitt in 1934, hence its name. Since then, this electronic component is widely used in a multitude of applications as we will see later. In addition, you should know that it is usually encapsulated in an integrated circuit or chip, usually DIP, and that it commonly consists of a operational amplifier (op-amp) With positive feedback via resistors, one non-inverting (+) input and one inverting (-) input of the op-amp are connected through the resistor chain, and an additional resistor is also included for positive feedback from the output to the inverting input.

As to hysteretic behavior, it must be said that when the input signal exceeds a certain upper threshold, the output of the Schmitt Trigger changes to "high", and if the input signal drops below a different lower threshold, the output changes to "low". The difference between the two thresholds is called the hysteresis window and is essential for hysteretic behavior. This has advantages as it avoids unwanted rapid responses due to small fluctuations or noise in the input signal. Therefore, it offers immunity to noise.

The Schmitt trigger is used to improve noise immunity in a circuit with a single entry threshold. In this case, a noisy signal near the threshold could cause rapid changes in the output due to noise. The Schmitt trigger, by having two thresholds, avoids unwanted changes, since a noisy signal near a threshold only produces a change in the output; To cause another change, the signal must move beyond the other threshold.

Un practical example It involves an amplified infrared photodiode that generates a signal that changes between extreme values. This signal is smoothed with a low-pass filter, and the filtered output is connected to the Schmitt trigger. This device ensures that the output only goes from low to high after an infrared signal excites the photodiode for longer than a known period. Once the Schmitt trigger is high, it only returns to low after the infrared signal stops exciting the photodiode for longer than a similar known period. This avoids spurious changes caused by environmental noise. Schmitt triggers are common in switching circuits, such as debouncing switches.

How the Schmitt Trigger works

Circuits with hysteresis are based on the positive feedback, making it possible to convert any active circuit into a Schmitt trigger by applying positive feedback with a loop gain greater than one. Positive feedback involves adding some of the output voltage to the input voltage. These circuits, which include an attenuator, an adder, and an amplifier acting as a comparator, can be implemented using three specific techniques.

The first two techniques are versions dual (series and parallel) of the general positive feedback system. In these configurations, the output voltage modifies the effective difference of the comparator input voltage, either by 'decreasing the threshold' or by 'increasing the circuit input voltage'. These configurations incorporate the threshold and memory properties into a single element. Instead, the third technique separates threshold and memory properties, providing greater flexibility in circuit implementation.

Utilities and applications

PCB

Schmitt Triggers can be used for several practical applications depending on the configuration, for example:

  • Analog to digital conversion- This component is effectively a single-bit analog-to-digital converter. When the signal reaches a given level, it changes from its low to high state.
  • Level detection- is capable of providing level detection. When making this application, it is necessary to take into account the hysteresis voltage so that the circuit changes by the required voltage.
  • Line reception- When bringing a data line that may have picked up noise to a logic gate, it is necessary to ensure that a logic output level only changes when the information changes and not as a result of spurious noise being picked up. The use of a Schmitt trigger allows the peak-to-peak noise to reach the hysteresis level before spurious triggering can occur.

As more specific cases, you can see them in circuits where you want to eliminate bounces in mechanical buttons, in square wave generators, in level detectors, in data line noise protection circuits, pulse generators, and the famous converters. ADC.

Use as an oscillator

A Schmitt trigger is a bistable multivibrator that can be used to implement another type of multivibrator, the relaxation oscillator. This is achieved by connecting a single RC integrator circuit between the output and input of an inverted Schmitt trigger. The output will be a continuous square wave whose frequency depends on the values ​​of R and C, as well as the threshold points of the Schmitt trigger. Since a single IC can provide several Schmitt triggers (for example, the type 4000 40106 series CMOS device contains 6 of them), an additional section of the IC can be quickly used as a simple and reliable oscillator with only two external components. .

In this case, a comparator-based Schmitt trigger is used in its inverted configuration. Additionally, a slow negative feedback is added with an RC integrative network. The result is that output automatically ranges from VSS to VDD as the capacitor charges from one threshold of the Schmitt trigger to the other.

pin out

Pinout

You must bear in mind that according to the pinout model It can change, so I recommend that you always see the manufacturer's datasheet corresponding to the model you have purchased. However, as an example, here we have a 74LS14 TTL chip with 6 triggers inside. Therefore, we have one DIP pin that will be for Vcc power, and another for ground or GND. This is how all the triggers are powered, and then it will be a matter of using the input and output that suits you.

Where to buy

Lastly, if you want buy one of these Schmitt Trigger, You can find them in specialized stores or on online sales platforms such as Amazon: