Phone

    00852-6915 1330

ic Related Articles

Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips

Resistors

In-Memory Computing Technology Overview

IntroductionIn-memory computing (IMC), a technique of future computing, stores data in RAM to run calculations entirely in computer memory. With the rise of the big data era, faster data processing capabilities are required. Computer memory and storage space are also growing exponentially to adapt to large-capacity data collection and complex data analysis, which promotes the development of AI (artificial intelligence), and then derives emerging stuff, that is, in-memory computing.In-memory Computing (IMC) ExplainedCatalogIntroductionⅠ Memory Wall: Processor /Memory Performance GapⅡ Developing RequirementⅢ What Is In-memory Computing?3.1 In-memory Computing Definition3.2 Four Realization MethodsⅣ Driving Force of In-memory Computing and Market Prospects4.1 In-memory Computing for AI4.2 In-memory Computing Product Outlook4.3 In-memory Computing Market and ProspectⅤ ConclusionⅠ Memory Wall: Processor / Memory Performance GapThe von Neumann architecture has occupied the dominant position in computer system when the computer invented. This kind of calculation method is to store the data in the main memory first, and then fetch the instructions from the main memory to execute them in order when running. We all know that if the connecting speed of the memory cannot keep up with the performance of the CPU, the computing will be limited. This is a memory wall. At the same time, in terms of efficiency, the von Neumann architecture also has obvious shortcomings. It consumes more energy to read and write data than to calculate once time.Figure 1. Von Neumann Architecture DiagramThe performance of computer processors has developed rapidly based on Moore's Law, and has been directly improved with the invention of transistors. The main memory of the computer uses the DRAM. It is a high-density storage solution based on capacitor charging and discharging. Its performance (speed) depends on two aspects, namely the reading/writing speed of the capacitor charging and discharging in the memory and the interface bandwidth between the devices. The read/write speed of capacitor charging and discharging has increased with Moore’s Law, but the speed is not as fast as the processor. In addition, the interface between DRAM and the processor is a mixed-signal circuit, and its bandwidth increasing speed is mainly restricted by the signal integrity of the traces on the PCB. This has also caused the performance improvement of DRAM to be much slower than that of the processor. At present, the performance of DRAM has become an huge bottleneck of overall computer performance, the so-called "memory wall".  It blocks the computing performance improvement.Figure 2. Moore's Law Effect Ⅱ Developing RequirementIn the current AI technology, with the increasing amount of data and calculations, the original von Neumann architecture is facing more and more challenges. Rely on expanding CPU, the hardware architecture can’t have a large amount of calculation. Also the larger storage capacity is heavily rely on the past architecture, it is also very unsuitable for AI. When the memory capacity is large to a certain extent, it can only show that certain technologies need innovation. In order to solve the "memory wall" problem, future computers are not based on computing memory, but the in-memory computing, thereby reducing the cost of data access in the calculation process.Figure 3. Conventional Computing vs In-memory Computing Ⅲ What Is In-memory Computing?3.1 In-memory Computing DefinitionIn-memory computing (or in-memory computation) is a technique based on RAM data storage and indexing, which proposed by the MIT research group, and its main purpose is to accelerate the convolution calculation. We know that convolution calculations can be expanded into weighted accumulation calculations. From another perspective, it is actually a weighted average of multiple numbers. Therefore, the circuit realizes the weighted average of the charge domain. The weight (1-bit) is stored in SRAM, and the input data (7-bit digital signal) becomes an analog signal through the DAC. According to the corresponding weight in the SRAM, the output is multiplied by 1 or -1 in the analog domain, which averaged in the analog domain, and finally read out by the ADC as a digital signal. Specifically, since the weight of the multiplication is 1-bit (1 or -1), it can be controlled by using a switch and a differential line simply. If the weight is 1, the capacitor on the side of the differential line is charged to the required output value. Otherwise, let the other side of the differential line be charged to this value. As for average, connect several differential lines together in the charge domain.Of course, there is more than one circuit for in-memory calculation, and the calculation accuracy is not limited to 1-bit. However, we can see the above examples that the core idea of in-memory calculations is generally to convert calculations into weighted calculations. Store the weights in the memory unit, then modifications on the core circuit of the memory (such as the readout circuit) are made. So that the process of reading is like a process in which the input data and weights are multiplied in the analog domain, that is, convolution. Because convolution is a core part of AI and other calculations, in-memory computing can be widely used in such applications. In-memory computing uses analog circuits for calculations, which is the difference compared with traditional digital logic calculations.In more traditional architectures, there are some multiply-accumulate circuits (MAC) for tensor math, especially the matrix multiplication. These architectures attempt to arrange the MAC in a way that moves weights and activations to the appropriate location. Activations are calculated from the previous neural network layer. Multiplication usually involves activations and weights, both must be moved to the place where multiplies them. In-memory computing makes use of it. Therefore, if the weights are stored in memory, the memory can access through activations to obtain multiplication and accumulation. The only difference from the actual memory is that the in-memory computing concatenates all word lines at once, instead of decoding the input to get one word line only.Figure 4. In-memory Computing Diagram3.2 Four Realization MethodsThe attempt is to enter the analog domain and treat the storage unit as an analog unit instead of a digital unit to reduce consumption. We have already got a way to use simulation on the front end of the inference engine. That is in-memory computing. Therefore, we take digital data, using a DAC to convert it to an analog value, and then driving a memory with these analog content to obtain an analog bit-line output, finally using an ADC to convert the result back to a digital format. However, the in-memory computing is still in the exploratory stage, and there are many specific implementation methods to study, currently there are three types: RRAM, Flash, SRAM, and DRAM.Based on RRAMRRAM is the most common method of doing this, because it is easy to use by applying Ohm's law to a series of resistors, but it still has the problem of relying on RRAM. The relationship between programming and resistance is non-linear, which requires more work to be done to make viable calculation circuits in RRAM memory for market. So it is just an idea, and the specific plan is still under study. Based on FlashNOR Flash memory has a more traditional word-line/bit-line structure. It is both resistive and capacitive. Generally, the memory cell is a transistor that is turned on or off. However, if it is partially conductive, it can be used as a resistor. The resistance depends on the amount of charge on the floating gate of the memory cell (capacitor). When running all the time, the cell will conduct to its maximum capacity. During this process, it does not conduct at all, however, it can be partially programmed. There is a problem is that you cannot precisely control the number of electrons. Moreover, the response to any number will vary with the process and temperature and other variables.Two companies are studying this method. Microchip owns their memBrain array, thanks to their acquisition of SST, and Mythic is a start-up company dedicated to an inference engine that uses in-memory computing with flash memory. Both companies said that they are using extensive calibration techniques to deal with this change.Another issue, flash cells will lose electrons over time. Electrons will flow around, which brings up an interesting topic: on this type of memory array, data retention and durability will be like.From the application point of view, it depends on whether it is to be used in cloud computing or edge inference engine. At the edge, it may perform certain fixed reasoning functions throughout the life cycle of the device. Therefore, if there are enough arrays, then you will load the weights for the first time and don't need to program it anymore (unless you do a update), because the flash memory is non-volatile. Although you still need to move activations, there is no need to move the weights, which will be stored permanently in the array. This would indicate that data durability (number of times the device can be programmed before cumulative damage accelerates electron leakages to an unacceptable level) does not matter, it only need to program once.In contrast, in cloud applications, the device is likely to be shared as a general-purpose computing resource, so this requires reprogramming for each new application. This means that battery life becomes more important in the cloud. Mythic claims to have a 10K write cycle, and has observed that even if it is reprogrammed every day, it will last for more than 10 years.If set an analog value for it and use an analog value in the cell, then in theory, each electron is important. However, if there is enough electron migration, you need to refresh the storage unit, or compensate for electrons change in some way. Because the same analog input today will produce different results than a year ago. The calibration circuit can also deal with some aging problems. However, for data retention, Mythic said they do perform regular updates of the weight values stored in flash memory. This will make persistence the main wear-out mechanism rather than data retention. Microchip stated that its data retention time is TBD, but it is likely to reprogram the device quarterly or annually to restore the unit.So they need a large number of high-quality ADCs and DACs to keep the signal-to-noise ratio (SNR) within a scope of accurate reasoning, which is the focus of designing work. Mythic claims that they provide a novel ADC, so that Microchip can share it to reduce the number required. Although ADC does consume energy, it also greatly reduces overall system consumption. Based on SRAMThis idea came from a lecture at Hot Chips at Princeton University. By definition, SRAM is a bistable unit. Therefore, it cannot be in an intermediate state, how should this be handled? And the DACs and ADCs that need to be corrected more over than the array in terms of area and power consumption.The point of this problem boils down to the question of how to simulate. They explained that this method uses more than one-bit line for calculation. Since the unit is still a digital value, it takes several bit lines to perform a calculation. The bit line can be split, and different groups perform different multiplications. The following figure illustrates it.Figure 5. Bit LineWith 8 inputs at a time, so the input vector is sliced and several consecutive multiplications are carried out to obtain the final results. The bit line charge is deposited on the capacitor. When ready to read, the charge is read out and sent to the ADC for conversion back to the digital domain. Their basic unit structure is as follows:Figure 6. Bit CellThese capacitors may affect chip size issues, but they said that the metal above the cell can be used. Of course, one cell is now 80% larger than the standard 6T SRAM cell (even without capacitors), but they say that their overall circuit is still much smaller than a required circuit based on standard digital implementation. In addition, since their basic array operations are still in digital form, they are less sensitive to noise and changes, which means their ADCs can be simpler and consume less power.Figure 7. Chip SizeBased on DRAMThis idea refers to not using a lot of power to obtain DRAM content, and in some way incorporate calculations into the CPU or other computing structures and directly run it on the DRAM die, which is what UPMEM does. A simple processor is built on the DRAM die, also the architecture will not compete with Xeon chips, they call this set "processing in memory" or PIM.Figure 8. PIM ChipInstead of bringing data to calculations, they bring calculations to data. The runtime is performed by the CPU in DRAM chip. That is, there is no need to move the data to any location outside of the DRAM chip, just send the calculating result back to the host system. Also, since ML calculations usually involve a lot of reduction, less data required for calculations. Although this does require some minor changes to the DRAM, they did not change the manufacturing process. Under this case, a standard DRAM module will provide multiple opportunities for distributed computing. At the same time, it becomes complicated to use this function to write a program.They said that a server using PIM offload will consume twice as much power than a standard server connected to a DRAM module without PIM. However, with a throughput of 20 times, it still provides them with a 10 times energy efficiency advantage. In addition, this method can help defend against side-channel security attacks. Thus a group of computing threads originally contained in one or more CPUs flows to DRAM. Therefore, it is necessary to check all DRAMs and figure out where thread is in some way, but this will be a difficult task. Ⅳ Driving Force of In-memory Computing and Market Prospects4.1 In-memory Computing for AIPeople have recognized the problem of "memory wall" for a long time, but why is in-memory computing only raised in the past two years? So we have to analyze the boost behind its rise.The first motivation is the rise of AI based on neural networks, especially the hope that AI can be popularized in mobile and embedded devices. So that in-memory computing with a high energy efficiency ratio has attracted attention. In addition, neural networks have a high tolerance for errors in calculation accuracy. Therefore, errors introduced in simulation calculations of in-memory computing can often be accepted. That is to say in-memory computing and AI are good partners for each other.The second motivation is the new memory. For in-memory computing, the memory characteristics often determine the efficiency of in-memory computing. Therefore, new memories improvement will often drive the development of in-memory computing. For example, the recently popular ReRAM uses resistance modulation to store data, so the readout of each bit uses a current signal instead of a traditional charge signal. In this way, it is a very natural operation for current to accumulate (combining several currents directly to achieve the sum of currents, even without additional circuits). That is to say, ReRAM is very suitable for in-memory calculations. From the perspective of memory promotion, new memories are also willing to catch up with the AT trend. Therefore, new memory manufacturers are also happy to see in-memory computing based on their own memories to accelerate AI development, which will broaden the memory market. 4.2 In-memory Computing Product OutlookChip products for in-memory computing are expected to come in two forms. The first form is sold as a memory IP with computing functions. Such memory IP may be traditional SRAM, or new memory such as eFlash, ReRAM, MRAM, and PCM.The second form is to directly build AI acceleration chips based on in-memory calculations. For example, Mythic plans to make PCIe accelerator cards based on flash memory, that is, access data with the main CPU through the PCIe interface. The weight data is stored on the Mythic memory chip, so that when the data is sent to the Mythic IPU, the calculation can be directly read out. In this way, the action of reading the weights data is eliminated.Figure 9. Mythic is a Pcie Accelerator 4.3 In-memory Computing Market and ProspectWhat impact will in-memory computing have on the AI chip market? First of all, we see that in-memory computing uses analog calculations, so its accuracy will be affected by the low signal-to-noise ratio. Usually the upper limit of accuracy is about 8-bit, and it can only do fixed-point calculations not the floating-point calculations. So in-memory computing is not suitable for the AI training market that requires high calculation accuracy. In other words, the main battlefield of in-memory computing is the AI inference market. For example, it is more suitable for embedded artificial intelligence, which has high requirements for energy efficiency not the accuracy. In fact, in-memory computing is actually most suitable for occasions where large memory is needed. For instance, flash is inherently required in IoT and other scenarios, so if you can add the in-memory computing to flash, it is quite suitable. However, introducing in-memory computing in a large storage memory may not appropriate. Based on this analysis, we believe that in-memory computing may become an important part of embedded AI (such as smart IoT) in the future. Ⅴ ConclusionWith the rise of AI and new memories, in-memory computing has also become a new hot spot. Based on the unique characteristics of the memory, it combines with analog calculations in memory, thereby greatly reducing the memory read and write operations in AI. Although the accuracy of calculation in the memory is limited by analog calculation, it is also suitable for embedded AI applications that pursue energy efficiency most and can accept a certain loss of accuracy. Frequently Asked Questions about In-Memory Computing Technology1. Why do we need in memory computing?In-Memory Computing provides super-fast performance (thousands of times faster) and scale of never-ending quantities of data, and simplifies access to increasing numbers of data sources. 2. What does in memory mean?An in-memory database is a type of purpose-built database that relies primarily on memory for data storage, in contrast to databases that store data on disk or SSDs. ... Because all data is stored and managed exclusively in main memory, it is at risk of being lost upon a process or server failure. 3. How does in memory computing work?In-memory computing means using a type of middleware software that allows one to store data in RAM, across a cluster of computers, and process it in parallel. Consider operational datasets typically stored in a centralized database which you can now store in “connected” RAM across multiple computers. 4. What is in memory computing in SAP HANA?An In-Memory database means all the data from source system is stored in a RAM memory. In a conventional Database system, all data is stored in hard disk. It provides faster access of data to multicore CPUs for information processing and analysis. 5. How is data stored in memory?Normally memory is described as a storage facility where data can be stored and retrieved by the use of an address. This is accurate but incomplete. A computer memory is a mechanism whereby if you supply it with an address it delivers up for you the data that you previously stored using that address. 6. What is in memory data processing?In-memory processing is the practice of taking action on data entirely in computer memory (e.g., in RAM). ... Since the storage appears as one big, single allocation of RAM, large data sets can be processed all at once, versus processing data sets that only fit into the RAM of a single computer. 7. What is in memory database processing and what advantages does it provide?The major advantage of systems using in-memory databases vs traditional database systems is: its performance speed. ... Source data is loaded into the system memory in a compressed and format. Therefore, in-memory processing reduces disk seek time for accessing data and streamlining the work involved in processing queries. 8. What is big data computing?Big data computing is an emerging data science paradigm of multi dimensional information mining for scientific discovery and business analytics over large scale infrastructure. ... Big data is characterized by 5V's such as volume, velocity, variety, veracity, and value.
kynix On 2020-11-30   10466
Resistors

What is a RC Filter Circuit?

IntroductionAs we all know, the most basic passive linear components are resistors (R), capacitors (C) and inductive components (L). These components can be used to form 4 different circuits: RC circuit, RL circuit, LC circuit and RLC circuit. They have some important properties for analog electronics, and can be used as passive filters. In practice, capacitors (and RC circuits) are usually used instead of inductors to form filter circuits. This is because capacitors are easier to manufacture with smaller size. This article mainly introduces the RC Circuit in series and parallel state.RC circuit (resistor–capacitor circuit), also called RC filter or RC network, has a resistor and a capacitor in series connection. When connected to a DC voltage source, the capacitor charges exponentially in time. That is, a capacitor can store energy, and when a resistor placed in series with it will control the rate at which it charges or discharges. This produces a characteristic time dependence that turns out to be exponential.RC Circuits Basic ExplainedCatalogIntroductionⅠ RC Circuit Basics1.1 What is RC Circuit?1.2 RC Circuit CharacteristicsⅡ How to Calculate RC Circuit?Ⅲ RC Circuits Classification3.1 Series and Parallel Circuits3.2 Example: RC Low Pass FilterⅣ Visualizing Filter Response4.1 Frequency Response4.2 Low Pass Filter Phase Shift4.3 Second-order Low-pass FilterⅤ ConclusionⅠ RC Circuit Basics1.1 What is RC Circuit?For a RC circuit (resistor-capacitor circuit), the primary composes of a resistor and a capacitor. According to the arrangement of resistors and capacitors, it can be divided into a RC series circuit and a RC parallel circuit. In addition, simple RC parallel circuits cannot resonate, because resistor does not store energy. However, LC parallel circuits can resonate. RC circuits are widely used in analog circuits and pulse digital circuits. If a RC parallel circuit connected in series in the circuit, it can attenuate low-frequency signals, and if it connected in parallel in the circuit, it can attenuate high-frequency signals. That is filtering.RC circuit is common element in electronic devices. It also play an important role in the transmission of electrical signals in nerve cells. A capacitor can store energy and a resistor placed in series with it will control the rate at which it charges or discharges.Figure 1. Passive Low-pass RC Circuit1.2 RC Circuit CharacteristicsIn the analog circuit, the passive RC filter circuit can be divided into a low-pass filter circuit and a high-pass filter circuit according to the connection and size of the capacitor.The low-pass filter circuit is somewhat equal to the integrator circuit (capacitor C is in parallel at the output.), but both circuits are applied to different requirements. The integrator circuit mainly uses the integration effect of the capacitor C when it is charged. In the case of square wave input, periodic sawtooth wave (triangular wave) will generate, so the capacitor C and resistor R are selected according to the square wave. While the low-pass filter circuit bypasses the higher frequency signal (because XC=1/( 2πfC), when f is larger, XC is smaller, which is equivalent to a short circuit), so the value of capacitor C is determined by referring to the value of the low frequency. For the filter circuit of the power supply, theoretically the larger the value of C, the better.Figure 2. Low Pass Filter CircuitThe high-pass filter circuit has the same form as the differential circuit or the coupling circuit. In the pulse digital circuit, due to the different relationship between RC and pulse width, it is divided into a differential circuit and a coupling circuit. In an analog circuit, choosing an appropriate capacitance C value can pass higher frequency signals selectively, even block DC and low-frequency signals. For example, a capacitor connected in series with a tweeter, is to prevent the low pitch from entering the tweeter to avoid burnout. What’s more, in the multi-stage AC amplifier circuit, the high-pass filter circuit is also a coupling circuit.Figure 3. High Pass Filter CircuitⅡ How to Calculate RC Circuit?From a mathematical point of view, suppose that the RC circuit has been connected to a DC power supply with a voltage value of U0. The voltage on the capacitor is equal to the power supply’s, and at a certain moment t0 the left end S of the resistor is grounded, then the capacitor discharges. In the theoretical analysis, the time t0 is taken as the zero point of time.According to KVL's law, establish the circuit equation: The initial condition is .This is a first-order homogeneous differential equation, and its general solution is .After substituting into the original equation: The characteristic equation is .The characteristic root is .According to , get .Therefore, the required initial value of the differential equation is It can be seen that the voltage attenuation speed on the capacitor depends on the , and its size only depends on the circuit structure and component parameters.When the unit of resistance is Ω and the unit of capacitance is F, the unit of product RC is seconds (s), which is represented by τ, then the capacitor voltage can be written as .tτ2τ3τ4τ5τ...∞uc(t)Uo0.368Uo0.135Uo0.05Uo0.018Uo0.0067Uo...∞0The τ time constant is the time it takes for the capacitor voltage to drop to 1/e=36.8% of the initial value. Specifically, it is the time required to charge the capacitor, through the resistor, from an initial charge voltage of zero to approximately 63.2% of the value of an applied DC voltage, or to discharge the capacitor through the same resistor to approximately 36.8% of its initial charge voltage. When t=4t, the capacitor voltage is very small, and it is generally considered that the circuit enters a steady state, which is also called the zero input response of the RC first-order circuit. Ⅲ RC Circuits Classification3.1 Series and Parallel CircuitsRC Series CircuitIn circuit, the capacitor cannot flow DC current, and R & C have an obstructive effect on the current. So the total impedance is determined by the resistance and capacitive reactance, and it changes with frequency. RC series circuit has a turning frequency: f0=1/2πR1C1. When the input signal frequency is greater than f0, the total impedance is basically unchanged, and it is equal to R1.RC Parallel CircuitThe RC parallel circuit can pass both DC and AC signals. It has the same turning frequency as the RC series circuit: f0=1/2πR1C1. On the one hand, when the input signal frequency is less than f0, the total impedance of the circuit is equal to R1, on the other hand, when the input signal frequency is greater than f0, the capacitive reactance of C1 is relatively small, and the total impedance is the sum of resistance and capacitance. In addition, when the frequency is high to a certain level, the total impedance is zero.Introduction to Parallel RC CircuitWhat’s more, as frequency increases, the capacitor will act like a short circuit to high frequency current in its path. At low frequencies, the capacitor tends to block current flow.3.2 Example: RC Low Pass FilterCircuit AnalysisTo create a passive low-pass filter, we need to combine the resistor elements with the reactance elements. That is a circuit consisting of a resistor and a capacitor or an inductor. Theoretically speaking, the RL low-pass topology is equivalent to the RC low-pass topology in terms of filtering ability. However, in practice, RC circuits are more common.Figure 4. RC Low-pass FilterAs shown in the figure, connecting a resistor in series with the signal path and a capacitor in parallel with the load, an RC low-pass response can be generated. In the figure, the load is a single part, but in actual circuits, it may be more complicated, such as the input stage of an analog-to-digital converter, amplifier, or oscilloscope to measure the response of the filter.If a resistor and a capacitor form a frequency-dependent voltage divider circuit, we can intuitively analyze the filtering function of the RC low-pass circuit.Figure 5. Change RC Low-pass Filter into a Voltage DividerWhen the frequency of the input signal is low, the impedance of the capacitor is high than the resistor. Therefore, most of the input voltage will drop on the capacitor (and both ends of the load, which is in parallel with the capacitor). When the input frequency is higher, the impedance of the capacitor is lower than the impedance of the resistor, which means that the resistor voltage decreases and less voltage is transferred to the load. Therefore, low frequencies pass and high frequencies are blocked.Cutoff FrequencyWhere the filter does not cause significant attenuation for a frequency range is called the passband, and the opposite is called the stopband. Analog filters, such as RC low-pass filters, always gradually transit from the passband to the stopband. This means that it cannot be recognized that the filter stops passing the signal and starts blocking one frequency of the signal. This is why the cutoff frequency concept introduced.When checking the frequency response graph of the RC filter, the signal spectrum is "cut" into two halves of the image, one of which is retained and one is discarded. Because as the frequency moves from below the cutoff point to above the cutoff value, the attenuation gradually increases.The cut-off frequency of the RC low-pass filter is actually the frequency at which the input signal amplitude is reduced by 3dB (this value is chosen because a 3dB reduction is equal to a 50% reduction in power). Therefore, the cutoff frequency is also called -3dB frequency. The term bandwidth refers to the width of the passband of the filter. For a low-pass filter, its bandwidth is equal to the -3dB frequency (as shown in the figure below).Figure 6. Cutoff Frequency -3dBFilter Response CalculationWe can discuss the theoretical behavior of the low-pass filter by a typical voltage divider. The output of the resistor divider is expressed as following:The RC filter uses an equivalent structure, using a capacitor XC replace R2. Then we need to calculate the total impedance and place it in the denominator, so there is The reactance of a capacitor represents the opposite amount of current, but unlike resistance, the opposite amount depends on the frequency of the signal passing through the capacitor. Therefore, we must calculate the reactance at a specific frequency. The equation we use for this as follows: In the above design example: R≈160Ω and C=10nF. We assume that the magnitude of VIN is 1V, so we can simply remove VIN from the calculation. First, let's calculate the amplitude of VOUT with a sine wave frequency: While suppressing noise, the amplitude of the sine wave is basically unchanged. Because the cutoff frequency (100kHz) we chose is much higher than the sine wave frequency (5kHz).Let’s see how the filter successfully attenuates the noise component.The noise amplitude is only about 20% of its original value. Ⅳ Visualizing Filter Response4.1 Frequency ResponseThe most convenient way to assess the effect of a filter on a signal is to examine the frequency response graph. That is Bode plot, which has amplitude (in decibels) on the vertical axis and frequency on the horizontal axis; the horizontal axis usually has a logarithmic scale so that the physical distance between 1Hz and 10Hz is the same as 10Hz to 100Hz and 100Hz to 1kHz. This configuration allows us to quickly and accurately evaluate the behavior of the filter over a large frequency range.Figure 7. Bode PlotEach point on the curve represents the amplitude that the output signal is 1V and the frequency is equal to the corresponding value on the horizontal axis. For example, when the input frequency is 1MHz, the output amplitude (assuming the input amplitude is 1V) will be 0.1V (because -20dB corresponds to a tenfold reduction factor).The curve in the passband is almost completely flat, and then as the input frequency approaches the cutoff frequency, it starts to drop faster. Finally, the rate of change of attenuation becomes stable, that is, for every ten times the input frequency increases, the amplitude of the output signal decreases by 20dB. 4.2 Low Pass Filter Phase ShiftThe way in which the filter modifies the amplitude of various frequency components in the signal has been discussed above. However, in addition to amplitude effects, reactive circuit elements always involve phase shifts.The concept of phase refers to the value of the periodic signal at a specific moment in the cycle. Therefore, when we say that a circuit causes a phase shift, we mean that it creates a misalignment between the input signal and the output signal. That is the input and output signals no longer start and end their periods at the same time. The phase shift value, such as 45° or 90°, indicates how much misalignment has been created.Each reactance element in the circuit introduces a 90° phase shift, but this phase shift does not occur at the same time. The phase of the output signal is the same as the amplitude of the output signal, and it changes gradually as the input frequency increases. In the RC low-pass filter, we have a reactive element (capacitor), so the circuit will eventually introduce a 90° phase shift.As with the amplitude response, the phase response can be most easily evaluated by examining the graph on the horizontal axis which represents the logarithmic frequency. The following description is the general pattern.The phase shift is initially 0°, and it gradually increases until it reaches 45° at the cutoff frequency. During this part of the response, the rate of change is increasing. With time, the phase shift continues to increase, but the rate of change is decreasing. As the phase shift approaches 90°, the change of rate becomes very small.Figure 8. Phase Shift4.3 Second-order Low-pass FilterAs above mentioned, we have assumed that the RC low-pass filter consists of a resistor and a capacitor. This configuration is a first-order filter. The "order" of passive filters is determined by the number of reactive components (ie capacitors or inductors) in the circuit. Higher-order filters have more reactive components, which lead to more phase shift and steeper roll-off.Second-order filters are usually built a resonant circuit consisting of inductors and capacitors (this topology is called "RLC", or resistor-inductor-capacitor circuit). However, it is also possible to create a second-order RC filter. As shown in the figure below, all we need to do is to cascade two first-order RC filters.Figure 9. Second-order Filter CircuitAlthough this topology can produce a second-order response, it is not widely used. Because its frequency response is usually not as good as a second-order active filter or a second-order RLC filter.Frequency ResponseWe can try to create a second-order RC low-pass filter by designing a first-order filter based on the required cutoff frequency, that is connecting two first-order stages in series. This set has a similar overall frequency response, with a maximum roll-off of 40dB/decade instead of 20dB/decade.However, we cannot simply connect these two stages together and analyze the circuit as a second-order low-pass filter. In addition, even if we insert a buffer between the two stages so that the first RC stage and the second RC stage can be used as independent filters, the attenuation at the original cut-off frequency will be 6dB instead of 3dB. Because the two stages work independently.Figure 10. Frequency Response of RC-RC FilterA limitation of the second-order RC low-pass filter is that the designer cannot tune the conversion from passband to stopband by adjusting the Q factor (this parameter indicates the degree of damping of the frequency response.) of the filter. If two identical RC low-pass filters are cascaded, the overall transfer function corresponds to the second-order response, but the Q factor is always 0.5. When Q = 0.5, the filter is at the boundary of over-damping, which results in a "sag" frequency response in the transition region. While second-order active filters and second-order resonant filters do not have this limitation, designers can control the frequency response of the transition region. Ⅴ ConclusionAll electrical signals contain a mixture of requiring frequency and unwanted ones. Undesirable frequency components are usually caused by noise and interference, and in some cases they have a negative impact on the performance of the system.Filters are circuits that react to different parts of the signal spectrum in different ways. The low-pass filter is designed to pass low frequency components and block high frequency components. The output voltage of an RC low-pass filter can be calculated by considering the circuit as a voltage divider (frequency-independent) composed of resistance and reactance.The graph of amplitude (in dB, on the vertical axis) vs. log frequency (in Hz, on the horizontal axis) is a convenient and effective way to check the theoretical behavior of the filter. You can also use phase and log frequency graph determines the amount of phase shift that will be applied to the input signal.The second-order filter provides a steeper roll-off, and its response is useful when the signal cannot provide broadband separation between the desired frequency and the unwanted one. You can make a second-order RC low-pass filter by connecting two identical first-order RC low-pass filters, but the overall -3 dB frequency will be lower than expected.In RC filtering circuit, the capacitor can store energy, and the resistor placed in series with it can control the charge-discharge rate. And this produces a characteristic time dependence that turns out to be exponential. Frequently Asked Questions about RC Filter Circuit1. What does an RC filter do?RC circuits can be used to filter a signal by blocking certain frequencies and passing others. The two most common RC filters are the high-pass filters and low-pass filters; band-pass filters and band-stop filters usually require RLC filters, though crude ones can be made with RC filters. 2. What is RC filter in electronics?A resistor–capacitor circuit (RC circuit), or RC filter or RC network, is an electric circuit composed of resistors and capacitors. ... A first order RC circuit is composed of one resistor and one capacitor and is the simplest type of RC circuit. 3. How do you calculate RC circuit?The (real value) impedance is the real part of the complex impedance Z. For a series RC circuit, we get Z=√R2+(1ωC)2 Z = R 2 + ( 1 ω C ) 2 . We see that the amplitude of the current will be V/Z=V√R2+(1ωC)2 V / Z = V R 2 + ( 1 ω C ) 2. 4. What is RC circuit used for?The RC circuit has thousands of uses and is a very important circuit to study. Not only can it be used to time circuits, it can also be used to filter out unwanted frequencies in a circuit and used in power supplies, like the one for your computer, to help turn ac voltage to dc voltage. 5. What is RC series circuit?A circuit that contains pure resistance R ohms connected in series with a pure capacitor of capacitance C farads is known as RC Series Circuit. A sinusoidal voltage is applied and current I flows through the resistance (R) and the capacitance (C) of the circuit.
kynix On 2020-11-21   19694
Resistors

Ideal Op-Amp Circuit Characteristics Update

IntroductionOperational amplifier (op amp for short) is basically a voltage amplifying device designed to be used with components like capacitors and resistors, between its in/out terminals, or is simply a linear Integrated Circuit (IC) having multiple-terminals. In electronics, the open-loop voltage gain of the actual operational amplifier is very large, which can be seen a differential amplifier with infinite open loop gain, infinite input resistance and zero output resistance. In addition, it has positive and negative inputs which allow circuits that use feedback to achieve a wide range of functions. And meanwhile, it can be further simplified into an ideal op amp model, referred to as an ideal op amp (also called ideal OPAMP).CatalogIntroductionⅠ Ideal Op Amp Characteristics1.1 Infinite Input Resistance1.2 Zero Output Impedance1.3 Infinite Open-loop Gain1.4 Infinite Common-mode Rejection Ratio1.5 Infinite BandwidthⅡ Assumptions of Ideal Op AmpⅢ Working Characteristics of Ideal Operational Amplifiers3.1 Work in Linear Region3.2 Work in Nonlinear RegionⅣ Analysis of Ideal Operational Amplifier CharacteristicsⅤ Balanced Resistance Presets5.1 The Role of Balanced Resistance5.2 Input Balancing Resistor ExplanationⅥ Ideal Op Amp EquationsⅦ Several Common Op Amp CircuitsⅧ Difference Between Ideal Op-amp and Practical Op-ampⅠ Ideal Op Amp CharacteristicsWhen analyzing various application circuits of operational amplifiers, the integrated operational amplifier is often regarded as an ideal operational amplifier. The so-called ideal op amp is to idealize various technical indicators of op amps, and it must have the following characteristics.Characteristics of An Ideal Op-Amp1.1 Infinite Input ResistanceThe input terminal of an ideal operational amplifier does not have any current to flow in. In electronics, op amps are voltage gain devices. They amplify a voltage fed into the op amp and give out the same signal as output with a much larger gain. In order for an op amp to receive the voltage signal as its input, the voltage signal must be dropped across the op amp. If you know the concept of a voltage divider, voltage drops primarily across components with high impedances, proportionally according to ohm’s law by the formula V=IR. So the greater the resistance (or impedance) of a device, the greater the voltage drop across that device is. To make sure that the voltage signal drops fully on the op amp, it must have a very high input impedance, so that the voltage drops fully across it. If it had a low input impedance, the voltage may not drop across it and it would not receive the signal. This is why op amps must have high-input impedances.It’s also easy to make the input impedance lower (put a resistor in parallel) or the source impedance higher (put a resistor in series).Figure 1. Ideal Op Amp Symbol and Transfer Characteristic Curve 1.2 Zero Output ImpedanceThe output of an ideal op amp is a perfect voltage source, no matter how the current flowing to the amplifier load changes, the output voltage of the amplifier is always a certain value, that is, the output impedance is zero. In practice, zero output impedance is actually a distinct property from infinite input impedance, but for a very long time infinite input impedance was approached only with compromises in offset voltage and noise. 1.3 Infinite Open-loop GainIn an open-loop state, the differential signal at the input has an infinite voltage gain. This feature makes the operational amplifier very suitable for practical applications with upper negative feedback configuration. 1.4 Infinite Common-mode Rejection RatioAn ideal operational amplifier can only respond to the difference between the voltages at both ends of V+ and V-. In addition, the same part of the two input signals (ie common mode signal) will be completely ignored. What’s more, a high CMRR is required when a differential signal must be amplified in the presence of a possibly large common-mode input, such as strong electromagnetic interference (EMI). An example is audio transmission over balanced line in sound reinforcement or recording. 1.5 Infinite BandwidthThe ideal operational amplifier will amplify the input signal of any frequency with the same differential gain, which will not change with the change of signal frequency.Ⅱ Assumptions of Ideal Op AmpThe op amp can be considered a voltage controlled current source, or it is an integrated circuit that can amplify weak electric signals. Based on it, for an ideal OPAMP, what is the relationship between it and these electrical signals?First, assume that the current flowing into the input of the op amp is zero. This assumption is almost completely correct for FET op amps, because the input current for FET op amps is below 1pA. But for dual high-speed op amps, this assumption is not always correct, because the input current of it can sometimes reach tens of microamperes.Second, assume that the gain of the op amp is infinite, so the op amp can swing the output voltage to any value to meet the input requirements. It means that the output voltage of the op amp can reach any value. In fact, when the output voltage is close to the power supply voltage, the op amp will saturate. Maybe this hypothesis does exit, but needs a limit in practical. For example, at higher frequencies, the internal junction capacitors of transistor come into play, thus reducing the output and therefore the gain of amplifier. The capacitor reactance decreases with increase in frequency bypassing the majority of output. The opamp is in saturation state.Figure 2. Op Amp SaturationFor example, as per datasheet of LM741, large signal voltage gain is 200V/mv. It means an open loop gain of 200,000. If you operate an op-amp in open-loop condition(i.e. without negative feedback) ,even microvolts of input voltage (input offset voltage of LM741 is 3mv) will drive the output to saturation.In most of the amplifier circuits op-amp is configured to use negative feedback which greatly reduces the voltage gain (i.e. closed loop gain). In oscillators and schmit triggers, Op-amp is configured to use positive feedback. Comparator circuit is an example of the circuit which utilizes open-loop gain of op-amp. Its output will be always at saturation either positive or negative saturation. In an integrator circuit, the DC gain should be limited by adding a feed back resistor in parallel with capacitor ;else the output will get saturated .Even in amplifier circuits, the amplitude of the input signal and the voltage gain of the circuit should be balanced so that the output voltage does not exceed power supply voltage . For example for a non-inverting amplifier with a voltage gain of 100, the maximum permissible input voltage will be 150 mv if the VCC is 15 Volts. If you apply a signal of 200 mv ,the op-amp output will goto saturation as the required output will be 20 volts which exceeds the VCC of 15 Volts.Third, the assumption of infinite gain also means that the input signal must be zero. The gain of the op amp will drive the output voltage until the voltage (error voltage) between the two input terminals is zero. The voltage between the two input terminals is zero. The zero voltage between two input terminals means that if one input terminal is connected to a hard voltage source like ground, the other input terminal will also be at the same potential. In addition, since the current flowing into the input terminal is zero, the input impedance of the op amp is infinite.Fourth, of course, the output resistance of an ideal op amp is zero. An ideal op amp can drive any load without any voltage drop due to its output impedance. At low currents, the output impedance of most op amps is in the range of a few tenths an ohm, so this assumption is true in most cases. Ⅲ Working Characteristics of Ideal Operational Amplifiers3.1 Work in Linear RegionWhen the ideal op amp works in the linear region, the output and the input voltage show a linear relationship. Where u0 is the output voltage of the integrated op amp; u+ and u- are the voltages at the non-inverting input terminal and the inverting input terminal, respectively. Auo is the open loop differential voltage magnification. According to the characteristics of the ideal op amp, two important characteristics of the ideal op amp in the linear region.1) Zero differential input voltageSince the open-loop differential voltage magnification of an ideal op amp is equal to infinity, and the output voltage is a certain value, the voltage values at the non-inverting input terminal and the inverting input terminal are approximately equal. Just like short circuit between input and output, but it is fake. Because it is an equivalent short circuit, not a real short circuit, so this phenomenon is called "virtual short".2) Zero input currentSince the open-loop input resistance of an ideal op amp is infinite, no current flows into the op amp at either input. At this time, the current at the non-inverting input terminal and the inverting input terminal are both equal to zero. Like an disconnection, but an equivalent disconnection, so this phenomenon is called "virtual break". Virtual short and virtual break are two important concepts for analyzing the ideal op amp working in the linear region.In fact, the ideal operational amplifier has the characteristics of "virtual short" and "virtual break". These two characteristics are very useful for analyzing linear amplifier circuits. The necessary condition for virtual short is negative feedback. When negative feedback is introduced, at this time, if the forward terminal voltage is slightly higher than the reverse terminal voltage, the output terminal will output a high voltage equivalent to the power supply voltage after the amplification of the op amp. In fact, the op amp has a respond time changing from the original output state to the high-level state (the golden rule of analyzing analog circuits: the change of the signal is a continuous change process). Due to the feedback resistance of the reverse end change will inevitably affect its voltage, when the reverse end voltage infinitely close to the forward end voltage, the circuit reaches a balanced state. The output voltage does not change anymore, that is, the voltage at the forward end and the reverse end is always close. (Note: The analysis method is the same when the voltage decreases.) 3.2 Work in Nonlinear RegionWhen the op-amp operates in the nonlinear region, the output voltage no longer increases linearly with the input voltage, but saturates. The ideal op amp also has two important characteristics when operating in the nonlinear region.1) When u+ ≠ u-, the output voltage of the ideal op amp reaches the saturation value.When u+ > u-, the op-amp operates works in positive saturation region with a positive output voltage.When u+ < u-, the op-amp operates works in negative saturation region with a negative output voltage.Ideal op amp operates in the nonlinear region, u+ ≠ u-, there is no “virtual short”.2) The input current is equal to zero.Although the input voltage u+ ≠ u- above, the input current is considered to be zero. Ⅳ Analysis of Ideal Operational Amplifier CharacteristicsAs for Op-amp, there's probably a description like this: three-terminal element (circuit structure with double-ended input, single-ended output), ideal transistor, high-gain DC amplifier.(1) High input resistanceUnder this situation, the current flowing into the input terminal is close to 0, almost no signal source current is used, which is close to the voltage control characteristic. And virtual break is derived from this.(2) Lower output resistanceIt has the characteristics of adapting to any load. And the impedance of the subsequent load circuit will not affect the output voltage.(3) Infinite voltage amplification(4) Under a certain supply voltage condition, the amplifier can only work in closed-loop (negative feedback) mode, and the actual amplification is limited. Because op-amps themselves don't have a 0V connection but their design assumes the typical signals will be more towards the center of their positive and negative supplies. Thus, if your input voltage is right at one extreme or forces the output toward one supply, chances are it won't work properly. Working in open-loop mode is the like a comparator, and the output is high level orlow level.In the closed-loop (limited amplification) state, the amplifier is randomly compare the potentials of the two input terminals. The output stage makes immediate adjustments when they are not equal. So the final purpose of amplification is to make the potentials of the two input terminals equal. And virtual short is derived from this. Ⅴ Balanced Resistance Presets5.1 The Role of Balanced Resistance1) A suitable resistance is generally required to ensure that the input impedance is matched.2) In order to reduce the input current imbalance, the in-phase resistor should be equal to the parallel value of the two resistors at the reverse end in theory. In practice, as a result of the closed loop, especially in deep negative feedback conditions, the misalignment is not obvious at the output. And there is no need of in-phase grounding resistor when the misalignment is not the main problem. Because a balanced resistor is the starting point for an ideal op amp. In-phase grounding resistance is useful for bipolar op amps, and has no meanings for MOS-type op amps.3) Ground input termination resistance: it is necessary for impedance matching and high frequency setting.4) Bias current and offset current.For operational amplifiers with bias current greater than offset current, input resistance matching can be reduced, and precision circuits can compensate bias current to a minimum. If the bias current and offset current are similar, the matching resistance will increase the error.5) Set for the bias current at the input, the purpose of which is to equalize the impedance of the invertingand non-inverting inputs, so that two inputs with equal bias currents are assumed to have equal voltage drops, thereby counteraction can be made. 5.2 Input Balancing Resistor ExplanationA op-amp is connected to an inverting amplifier:Set the input resistance for R1, feedback resistance for Rfi,Assume that the non-inverting end is not connected to a balanced resistor, but grounded directly.Set the input bias current for the op-amp IB (same voltage in inverting and non-inverting end).The current flows through R1 and Rf are represented by I1 and If.Inverting voltage is V-, The op-amp gain is A.Use KCL in the inverting end (set the input signal to 0).Where (0-V-)/R1- (A+1)V- /Rf=IBFrom the above equation, it follows that V-=-(IB×R1×Rf/(Rf+(A+1)R1))At this time, the output voltage of the op-amp is Vo=A×(IB×R1×Rf/(Rf+(A+1)R1))The above formula can be approximated as Vo=IB×((A×R1)/Rf)If the in-phase terminal passes through a resistor R2 to ground and R2=R1/Rf, then the voltage at the in-phase terminal is V+=-IB×R2KCL is applied to the inverted terminal, where (0-V-)/R1+(A×(V+-V-)-V-)/Rf=IBAt this time the output voltage of the op-amp is Vo=0. Ⅵ Ideal Op Amp EquationsUnderstanding the basic conditions of an ideal op amp, and combining it with the Kirchhoff's current law (KCL) node voltage method and the superposition theorem of the node, is an effective method to analyze the ideal op amp circuit.As shown below, find the output voltage uoFigure 3. OPAMP Circuit1) Equation based on KCLFrom the concept of virtual break, i+=i-=0, then i1=i2, i3=i4, so (a)Based on virtual break, u+=u-, then (b)2) Node voltage methodList the node voltage equations for node 1 and node 2, and get (c)Note: Because the output current of the op amp is unknown at 1) and 2), it is not possible to list the KCL equation or node voltage equation at the output of the op amp. In addition, the op amp output uo in 2) should be treated as an independent voltage source. 3) Superposition theoremWhen there are multiple signal inputs, choosing the superposition theorem to solve can simplify the analysis and calculation process. The size of the output signal uo can be regarded as the superposition of the output signal obtained by the independent action of u1 and u2. When u1 acts alone, the u2 terminal is grounded, and the op amp output is: (d)Therefore, the final output of the operational amplifier is:   (e) Ⅶ Several Common Op Amp CircuitsNon-inverting Amplifier CircuitA non-inverting amplifier is an op-amp circuit configuration which produces an amplified output signal. It provides a high input impedance along with all the advantages gained from using an operational amplifier. Inverting Amplifier CircuitAn inverting amplifier (also known as an inverting operational amplifier or an inverting op-amp) is a type of operational amplifier circuit which produces an output which is out of phase with respect to its input by 180 degrees out of phase with respect to input signal. In the following figure, two external resistors to create feedback circuit and make a closed loop circuit across the amplifier. Op-amp as AdderAn adder circuit can be made by connecting more inputs to the inverting op amp. The circuit diagram of a summing amplifier is as shown in the following figure. Differential AmplifierDifferential amplifier is an analog circuit with two inputs and and one output in which the output is ideally proportional to the difference between the two voltages. It is a very useful op-amp circuit and by adding more resistors in parallel with the input resistors as shown in the following. Composite AmplifierThe composite amplifier is termed as a combination of multiple operational amplifiers that are cascaded together with a negative-feedback loop around the entire network. The resistance in the circuit is generally selected at the K ohm level, the ratio of the resistance affects the gain and bias, in addition, the supply current, frequency response and capacitive load driving capability of the op amp determine their specific values in circuits. If it is used in a high-frequency circuit, the resistance needs to be reduced to obtain a better high-frequency response, but it will increase the input bias current, thereby increasing the current of the power supply. Ⅷ Difference Between Ideal Op-amp and Practical Op-ampIdeal op amps use no power, have infinite input impedance, unlimited gain-bandwidth and slew rate, no input bias current, and no input offset. They have unlimited voltage compliance.Practical op amps consume some power, have very high input impedance have limited gain-bandwidth and limited slew rate, have some input bias current and input offset voltage. Voltage compliance is limited by the power supply rail, or frequently even less.Still practical op amps are very useful because most of the limitations listed above are way better than what your circuit needs.For an ideal amplifier, it does not draw any current at all from its input. Assuming a two input amplifier the signal current in both input probes is zero. In other words the input impedance must be infinite. The output, should operate as the output of an ideal voltage source. This means that the potential between the output and the ground must be A(v2−v1), no matter how much current would a load connected to the output would draw. In other words the output impedance must be zero.For a real amplifier, the input impedance must be as large as possible while the output impedance must be as low as possible.In fact, An op-amp in real life, however, cannot operate with zero current flow. Frequently Asked Questions about Ideal Op Amp1. What is characteristic of ideal opamp?Ideal op amps will have infinite voltage gain, infinitely high impedance, zero output impedance, its gain is independent of input frequency, it has zero voltage offset, its output can swing positive or negative to the same voltages as the supply rails, and its output swings instantly to the correct value. 2. How does an ideal op amp work?An operational amplifier, or op amp, generally comprises a differential-input stage with high input impedance, an intermediate-gain stage, and a push-pull output stage with a low output impedance (no greater than 100 Ω). ... Open-loop voltage gain runs very high, on the order of 1 million. 3. Why are op amps not ideal?Op-amps with FET inputs have an Ibias that is so small that this method becomes less practical. Instead of measuring the voltage drop across a resistor, one can monitor the change in voltage across a capacitor as it is charged by the bias current. 4. How are real op amps different from ideal op amps?In real op amps, the amplified signal will not fully reach the DC supply rails. They will fall short of it. In an ideal op amp, the output will swing instantly to the amplified voltage value. There will be no time delay between the time the voltage is input into the op amp till the time it is output. 5. What are the four main ideal characteristics of an open-loop op amp?An ideal op amp is usually considered to have the following characteristics:Infinite open-loop gain G = vout / vInfinite input impedance Rin, and so zero input currentZero input offset voltageInfinite output voltage rangeInfinite bandwidth with zero phase shift and infinite slew rateZero output impedance R
kynix On 2020-11-06   6760
Resistors

Humidity Sensor: Working, Types, Application and Arduino Guide

IntroductionThe humidity sensor is a sensor that measures relative humidity, absolute humidity, or dew point. At present, such sensors are widely used, and are gradually developing in the direction of excellent environmental resistance, long life, and low price. This article will introduce the working principle, type, classification, application of humidity sensor, and an Arduino tutorial on real-time temperature and humidity monitor. In addition, some basic knowledge like the calculation of relative humidity and absolute humidity is also covered. Let’s waste no more time! The humidity sensor is a sensor that measures relative humidity, absolute humidity, or dew point. At present, such sensors are widely used, and are gradually developing in the direction of excellent environmental resistance, long life, and low price. This article will introduce the working principle, type, classification, application of humidity sensor, and an Arduino tutorial on real-time temperature and humidity monitor. In addition, some basic knowledge like the calculation of relative humidity and absolute humidity is also covered. If you are only interested about the Arduino guide, you can jump to that part from the category, and the video below is about the accuracy test of different temperature and humidity sensor for arduino, which can help you to choose the best one. Let’s waste no more time!Check this video to look for the best temperature and humidity sensor for ArduinoCatalogIntroductionCatalogI How do Humidity Sensors Work?1.1 Humidity1.2 Absolute Humidity and Relative Humidity1.3 How Humidity Sensors WorkII Classification and Common Types of Humidity Sensors2.1 Classification2.2 Comparison of Resistive and Capacitive Humidity Sensors2.3 Four Types of Humidity Sensors with More Applications2.4 Commonly Used Humidity Sensor ModelsIII Application of Humidity Sensors3.1 Typical Uses3.2 Application FieldsIV Arduino Entry Project: Real-time Temperature and Humidity Detector4.1 Hardware Preparation4.2 Software Preparation4.3 Circuit Connection4.4 Implementation CodeⅤ FAQI How do Humidity Sensors Work?1.1 HumidityBefore learning the humidity sensor, let's take a look at what humidity is. Humidity, a physical quantity indicating the degree of air dryness. At a certain temperature, the less water vapor contained in a certain volume of air, the drier the air; the more water vapor, the more humid the air. The degree of air humidity is called "humidity". In this sense, it is often expressed by physical quantities such as absolute humidity, relative humidity, comparative humidity, mixing ratio, saturation difference, and dew point; if it represents the percentage of the weight of water vapor in the wet steam to the total weight (volume) of the steam, it is called the humidity of the steam. The humidity that the human body feels comfortable with is: the relative humidity is lower than 70%. So the question comes again, what is the relative humidity?Figure1. What is Humidity?1.2 Absolute Humidity and Relative HumidityThe degree of dryness and humidity of the air, or the physical quantity that indicates how much water vapor it contains, is called humidity. The mass of water vapor contained in a unit volume of air is called absolute humidity. Because it is difficult to directly measure the density of water vapor, it is usually expressed by the pressure of water vapor. The absolute humidity of the air does not determine the speed of water vapor on the ground and the perception of humidity. People call the absolute humidity of air at a certain temperature and the percentage of saturated air pressure at the same temperature as relative humidity. To be more specific, absolute humidity refers to the mass of water vapor contained in a certain volume of air, and its unit is generally g/m3. The maximum absolute humidity is the highest humidity undersaturation. Absolute humidity is only meaningful together with temperature, because the amount of humidity that can be contained in the air varies with temperature, and the absolute humidity is also different at different temperatures, because the volume of air also changes with temperature. But the closer the absolute humidity is to the highest humidity, the smaller its change with temperature. The following is the formula for calculating absolute humidity:The symbols are:e-vapor pressure, the unit is Pascal (Pa)-The gas constant of water = 461.52J/(kg K) T-Temperature, the unit is Kelvin (K)m-the mass of water dissolved in the air, in kilograms (kg)V-The volume of air, in cubic meters (m). Relative humidity (RH)A hygrometer is recording relative humidity. The relative humidity is the ratio between absolute humidity and maximum humidity. Its value shows how high the saturation of water vapor is. Air with a relative humidity of 100% is saturated air. Air with a relative humidity of 50% contains water vapor that reaches half the saturation point of air at the same temperature. Water vapor in the air with a relative humidity of more than 100% generally condenses.  As the temperature increases, the air can contain more water, that is to say, the relative humidity will decrease when the temperature increases with the same amount of water vapor. Therefore, while providing relative humidity, temperature data must also be provided. The dew point can also be calculated from the relative humidity and temperature. The following is the formula for calculating relative humidity:The symbols are:ρw-absolute humidity, in grams/cubic meterρw,max-the highest humidity, the unit is g/m3e-water vapor pressure, the unit is PascalE-saturated vapor pressure, the unit is Pascals-specific humidity, the unit is g/kgS-the highest specific humidity, the unit is g/kg 1.3 How Humidity Sensors WorkGenerally, humidity sensors use the following four methods to detect humidity or condensation:(1) Measure the change in electrical impedance or capacitance caused by moisture absorption, separation, or condensation of moisture-sensitive materials.(2) Measure the difference in gas thermal conductivity due to changes in humidity.(3) Measure the change in the resonance frequency of the crystal vibrator due to changes in humidity or condensation.(4) Measure the attenuation and light absorption and reflection caused by alpha rays passing through water droplets due to changes in humidity.For example, the characteristic of a humidity-sensitive resistor is to cover a film made of moisture-sensitive material on the substrate. When water vapor in the air is adsorbed on the moisture-sensitive film, the resistivity and resistance value of the element will change. One characteristic can measure humidity.Figure2. How a polymeric membrane humidity sensor worksII Classification and Common Types of Humidity Sensors2.1 ClassificationAt present, there are many types of humidity sensors on the market, and their application ranges are also different. They are roughly divided into the temperature and humidity ranges used, which can be listed in the following table.IndustryScope of applicationOperating temperature and humidity rangeUsesTemperature(℃)Humidity(%PH)Home appliancesAir conditioning machine5~40 40~70 Air conditioning equipmentDryer800~40Clothes dryingElectronic range5~1002~100Food heating and conditioning controlVTR-5~6060~100Prevent condensationCarAutomatic anti-fog-20~8050~100Prevent condensationMedical treatmentTreatment device10~3080~100Respirator systemIncubator10~3050~80Air conditioning equipmentIndustryFiber10~3050~100SilkDryer50~1000~50Kiln industry, wood dryingPowder moisture5~1000~50Ceramic raw materialsDry food50~1000~50Food preservationElectronic Components Manufacturing5~400~50Magnetic head, LSI ICAgriculture, Forestry and LivestockHouse air conditioning5~400~100Air conditioning equipmentTea smoke anti-frost-10~6050~100Prevent condensationReptile feeding5~400~50Increase humidity, health managementTestConstant temperature and humidity tank-5~1000~100Precision measurementRF detector-50~400~100High-precision meteorological measurementHygrometer5~1000~100Control recording deviceOtherSoil moisture-20~500~100Plant cultivation, soil and sand collapseIn the above, we have introduced four methods for detecting humidity or condensation. These measurement methods must be selected according to the different test environments. The most commonly used measurement method on the market is the first one because its measurement and signal selection methods are quite simple and cheap. It can be divided into the following six categories if it is distinguished by the difference of its manufacturing materials:(1) Electrolytes such as LiCl.(2) Semiconductor materials such as Se and Ge.(3) MgCr2O4, ZnCr2O4, TiO2, SnO2 and other metal oxide fusion products.(4) Porous metal oxide film such as Al2O3.(5) A material made by dispersing conductive powder in a polymer material such as nylon.(6) Organic or inorganic polymer electrolyte membrane. Sensors made of moisture-sensitive materials can be roughly divided into 7 categories:(1) Electrolyte humidity sensor(2) Polymer humidity sensor(3) Ceramic humidity sensor(4) Crystal oscillator humidity sensor(5) Semiconductor humidity sensor(6) Thick-film humidity sensor(7) Condensation humidity sensorClassificationMoisture Sensitive MaterialDetection methodElectrolyteLiCl+Polyviny1 Alcho1 PolystyreneResistorSulfated filmResistorPotassium sulfate membraneResistorLiC1 saturated solutionResistorSemiconductorSe (Ge or Si) vapor deposition filmResistorSi+SiO2+PAPA (Polyamino Phenylacetylene)ResistorMetal oxides (ceramics)Fe3O4 Colloid coating filmResistorCr2O3 Ni2O3 Fe2O3ResistorGlass ceramic filmCapacitorFe2O3-K2O ceramicResistorZnO-Li2O-V2O5 ceramicResistorMg Cr2O4 type ceramicCapacitorPolymersAl2O3+ epoxy resinResistor or CapacitorMulti-emulsion resin filmCapacitor Organic materialCelluloid+CarbonResistorButyr CellaloseCapacitorResin carbonResistorPolyamid+ crystal oscillatorResonance frequency2.2 Comparison of Resistive and Capacitive Humidity Sensors(1) Resistive humidity sensorThe resistive humidity sensor is a sensor that uses the electrical characteristics of the humidity sensor (such as resistance value) to change with humidity to measure humidity. The humidity sensor is generally immersed in an insulating material with a hygroscopic substance, or through evaporation, It is made by coating and other processes to prepare a layer of metal, semiconductor, polymer film and powdered particles.  During the moisture absorption and dehumidification process of the moisture-sensitive element, the conduction state of the ion H+ decomposed by water molecules changes, so that the resistance value of the element changes with humidity.Figure3. Resistive humidity sensorAdvantage1) Compared with the capacitive type, the structure is simpler, and it is easier to achieve mass production and low price.2) There is no need to consider the capacity between the leads like capacitive sensors, so the sensor can be stretched at will, with greater design freedom.3) Since the characteristic is a logarithmic change (the degree of change is large), the humidity change is small for the resistance change. (According to this point, for example, the degree of influence of the deviation of the electrode on the characteristics is small, and the instability is also small. Even if there is a slight change, it is difficult to show when converted to humidity.) Disadvantages1) The temperature characteristic is larger than that of the capacitive type (0.5%rh/℃), and temperature compensation is usually required.2) Since the characteristic is a logarithmic change, if the logarithmic conversion is not processed, the linear characteristic will not be obtained.3) The low humidity range is difficult to detect due to high resistance. (About 20% rh is the limit) In addition, it is easily affected by interference. (2) Capacitive humidity sensorA capacitive humidity sensor is a commonly used instrument in humidity sensors. It uses polymer humidity and humidity-sensitive capacitors as the basic humidity-sensing component, and uses a single-chip microcomputer to analyze, process, display and remotely transmit the measurement results. The measurement accuracy is ±2.5 %. The capacitive humidity sensor is mainly composed of a glass substrate, a lower electrode, a humidity-sensitive material, and an upper electrode. The two lower electrodes are connected in series with the humidity-sensitive material and the two capacitors formed by the upper electrode. Humidity-sensitive material is a high molecular polymer whose dielectric constant changes with the relative humidity of the environment.  When the environmental humidity changes, the capacitance of the humidity sensor changes accordingly, that is, when the relative humidity increases, the humidity sensitive capacitance increases, and vice versa (the capacitance is usually between 48 and 56 pf). The sensor's conversion circuit converts the humidity-sensitive capacitance change into a voltage change, which corresponds to a change in relative humidity from 0 to 100% RH, and the output of the sensor changes linearly from 0 to 1v.Figure4. Capacitive soil moisture sensorAdvantage1) Generally speaking, low humidity starting from 0% rh can be detected.2) The capacitance value is relatively close to linear, and no logarithmic change is required.3) The temperature characteristic is smaller than that of the resistance type (about 0.05~0.1%rh/℃), and temperature compensation is not required for general use.4) In order to increase the capacitance value, the structure is made into a thin film, and there are more products with a faster response speed than the resistance type. Disadvantage1) If the sensor is extended with a lead wire, the capacitance value will change, so it is not suitable to extend the sensor alone. Also, if it is assembled into the device, it is difficult to change the position by the lead wire, so the design freedom is small.2) The amount of change is relatively small, but a small change in capacitance will cause a large error. Therefore, inexpensive sensors have a large deviation. (The sensors used for measurement also have very high accuracy, but these estimation formulas have been processed.)3) The fact that the amount of change is small can be said in terms of dependence. But a small change in capacitance will produce a large error. Therefore, a sensor with poor reliability will have a large humidity change.4) Although the amount of change is small, the deviation and temperature characteristics of other circuit parts will have a greater influence, so be careful when selecting circuit parts. 2.3 Four Types of Humidity Sensors with More Applications(1) Lithium chloride humidity sensor● Resistive lithium chloride hygrometerCertain metal salts (such as lithium chloride LiCI) have strong moisture absorption properties in the air, and their moisture absorption is a certain function of the relative humidity of the air, that is, the greater the relative humidity in the air, the more the moisture absorbed by the lithium chloride. At the same time, the electrical conductivity of lithium chloride, that is, the size of the resistivity changes with the amount of moisture absorption, the more water absorbed, the smaller the resistivity, and vice versa.  Therefore, the relative humidity of the air can be determined according to the change in resistivity of lithium chloride. Lithium chloride resistance hygrometer is a meter made of the characteristics of resistivity change after lithium chloride absorbs moisture. The first lithium chloride electric humidity sensor based on the principle of resistance-humidity characteristics was developed by F.W.Dunmore of the American Bureau of Standards. This kind of element has high precision, simple structure, low price, suitable for a series of advantages such as measurement and control of normal temperature and humidity. ● Dew point lithium chloride hygrometerThe dew-point lithium chloride hygrometer was first developed by Forboro Company in the United States. This type of hygrometer is similar to the above-mentioned resistive lithium chloride hygrometer, but its working principle is completely different. In short, it uses the saturated vapor pressure of a saturated aqueous solution of lithium chloride to work with temperature. (2) Carbon humidity sensorThe carbon humidity sensor was first proposed by EKCarver and CWBreasefield in the United States in 1942. Compared with commonly used sounding elements such as hair, casing and lithium chloride, the carbon humidity sensor has a fast response speed, good repeatability, The advantages such as no erosion effect and narrow hysteresis ring are eye-catching. The uncertainty of measurement using carbon humidity sensor does not exceed ±5%RH, the time constant is 2~3s at positive temperature, the hysteresis is generally about 7%, and the specific resistance stability is also better. (3) Alumina hygrometerThe outstanding advantage of alumina sensor is that the volume can be very small (for example, the humidity sensor used in the radiosonde is only 90μm thick and 12mg weight), high sensitivity (the lower limit of measurement reaches -110℃ dew point), and the response speed is fast (generally 0.3 s to 3s), the measurement signal is directly output in the form of electrical parameters, which greatly simplifies the data processing program, and so on. In addition, it is also suitable for measuring moisture in liquids. (4) Ceramic humidity sensorCeramic humidity sensor is also called metal oxide humidity sensor, because its humidity sensing material is made of metal oxide powder through pressure molding and sintering into ceramics. Due to the degree of sintering, many porous objects can be obtained, and water vapor will be adsorbed on the porous surface to form an adsorption layer, and the H+ ions in the adsorption layer will form current carriers due to the adhesion of water vapor. When the humidity is high, the current attached to the layer of water vapor in the adsorption easily flows. The ceramic humidity sensor utilizes this property to convert the humidity change into the output of the impedance value change.Figure5. Heating purification type ceramic humidity sensor2.4 Commonly Used Humidity Sensor ModelsAt present, the main manufacturers and typical products producing integrated humidity sensors are Honeywell (HIH-3602, HIH-3605, HIH-3610), Humirel (HM1500, HM1520, HF3223, HTF3223), Sensiron (SHT11, SHT15) type). These products can be divided into the following four types: Linear voltage output integrated humidity sensorTypical products are HIH3605/3610, HM1500/1520. Its main feature is the use of constant voltage power supply, built-in amplifier circuit, can output a volt-level voltage signal proportional to the relative humidity, fast response, good repeatability, and strong anti-pollution ability. Linear frequency output integrated humidity sensorThe typical product is HF3223 type. It adopts a modular structure and is a frequency output integrated humidity sensor. The output frequency is 8750Hz (type value) at 55%RH. When the relative humidity changes from 10% to 95%, the output frequency is reduced from 9560Hz to 8030Hz . This kind of sensor has the advantages of good linearity, strong anti-interference ability, easy to be equipped with digital circuits or single-chip computers, and low price. Frequency/temperature output integrated humidity sensorThe typical product is HTF3223. In addition to the functions of HF3223, it also adds a temperature signal output terminal and uses a negative temperature coefficient (NTC) thermistor as a temperature sensor. When the ambient temperature changes, the resistance value changes accordingly and is drawn from the NTC terminal, and the temperature value can be measured with a secondary meter. Single-chip intelligent humidity/temperature sensorIn 2002, Sensiron took the lead in the world to successfully develop the SHT11 and SHT15 intelligent humidity/temperature sensors. The overall dimensions are only 7.6 (mm) × 5 (mm) × 2.5 (mm), and the size is similar to that of a match head. Before leaving the factory, each sensor has been precision-standardized in the temperature room, and the standard coefficients are compiled into corresponding programs and stored in the calibration memory.  The relative humidity can be automatically calibrated during the measurement process. They can not only accurately measure relative temperature, but also temperature and dew point. The measurement range of relative temperature is 0-100%, the resolution is up to 0.03%RH, and the highest accuracy is ±2%RH. The measuring temperature range is -40℃~+123.8℃, and the resolution is 0.01℃. The accuracy of measuring dew point is <±1℃. When measuring humidity and temperature, the digits of the A/D converter can reach 12 and 14 bits respectively.  Using the method of reducing the resolution can increase the measurement rate and reduce the power consumption of the chip. The products of SHT11/15 have good interchangeability, fast response speed, strong anti-interference ability, do not need external components, adapt to various single-chip microcomputers, and can be widely used in medical equipment and temperature/humidity adjustment systems.Figure6. HTS221 Capacitive Digital Humidity SensorIII Application of Humidity Sensors3.1 Typical UsesWork in any industry is inseparable from the air, and the humidity of the air is directly related to work, life, and production, making the monitoring and control of humidity more and more important. The main applications of humidity sensors are as follows: (1) Climate monitoringWeather measurement and forecasting are of great significance to industrial and agricultural production, military and people’s lives, and scientific experiments. Therefore, humidity sensors are essential humidity measuring equipment. For example, resin swelling humidity sensors have been used in meteorological balloon humidity measuring instruments. on. (2) Greenhouse breedingModern agriculture, forestry, and animal husbandry industries have a considerable number of greenhouses. The humidity control of the greenhouse is as important as temperature control. Controlling the humidity in a suitable range for the growth of crops, trees, livestock and poultry is one of the conditions for reducing pests and diseases and increasing yield. (3) Industrial productionIn the textile, electronics, precision machinery, ceramic industry and other sectors, air humidity directly affects the quality and output of products, and must be effectively monitored and regulated. (4) Storage of goodsVarious items have certain adaptability to the environment. If the humidity is too high or too low, the product will lose its original performance. For example, in high-humidity areas, electronic products are seriously damaged in the warehouse, non-metal parts will become moldy, and metal parts will corrode and rust. (5) Use protection of precision instrumentsMany precision instruments and equipment have higher requirements for the working environment. The environmental humidity must be controlled within a certain range to ensure their normal operation and improve work efficiency and reliability. For example, the working humidity of the telephone program-controlled switchboard is better at 55% ±10%. Too high temperature will affect insulation performance, and too low temperature will easily generate static electricity and affect normal operation.3.2 Application Fields(1) Humidity measurement system● When the temperature is below 70°C (usually above -40°C), if the environment is clean, use a polymer sensor, and use a ceramic sensor (heating cleaning regeneration type) for serious pollution. Because of its heating and cleaning process, it cannot be measured continuously and consumes a lot of energy (1-10W). However, it has a long life and can choose a sensor with a longer heating and cleaning cycle during use, such as a chloroapatite ceramic sensor, which is washed once every 2 to 3 months. In addition, the internal heating type consumes less energy than the external heating type. ● Measure the humidity in the range of 70~100℃, use ceramic sensors with heating and cleaning, and perform linearity and temperature compensation to improve accuracy. In order to achieve higher accuracy, a microcomputer is required. Frequent heating and cleaning are required at high temperature and humidity. For example, when the RH is above 80%, it needs 30S cleaning once. It is best equipped with an automatic heating cleaning device. ● Measure the humidity in the range of 100~150℃. In the world, ceramic humidity sensors are mostly used to make high temperature humidity meters. (2)Automatic control of industrial processesIn order to improve product quality and energy-saving, ceramic humidity sensors are usually used for control in product drying systems, reactor humidity control, boiler water vapor leakage detection, integrated circuits, or air conditioning in magnetic head processing plants; the humidity control of various air conditioning systems, medical systems can be carried out with polymer or ceramic humidity sensors. (3) Steam leak detection systemIn thermal power stations, nuclear power plants, steam locomotives, boilers and other high-temperature and high-pressure equipment, in order to prevent gas leakage and prevent personal accidents, humidity sensors can be used for leak detection. (4) Other systemsIn-home appliances, the humidity sensor can be used for humidity measurement of humidifiers, dehumidifiers, air conditioners, wine cabinets, clothes dryers, etc.IV Arduino Entry Project: Real-time Temperature and Humidity Detector4.1 Hardware PreparationArduino UNO oneA temperature and humidity sensorOne PCF8574T adapter board1602LCD oneA piece of breadboardSeveral connecting lines4.2 Software PreparationArduino IDE4.3 Circuit ConnectionThis project directly uses the PCF8574T adapter board to drive the 1602 LCD display, which will save a lot of Arduino IO ports and save a lot of wiring troubles. PCF8574T adapter board contains four interfaces: VCC, GND, SDA and SCL. Make these connections respectively: VCC - 5V, GND - GND, SDA - A4, SCL - A5. The temperature and humidity sensor contains 3 pins, viewed from the side with the mesh, from left to right are DATA, VCC, and GND. Make connections like this: DATA - A0, VCC - 3.3V, GND - GND.Figure7. Circuit Connection4.4 Implementation CodeFigure8. Experiment Result/** Use temperature and humidity sensor to detect information and display it on the LCD*/#include "Wire.h" // Import libraries needed to drive LCD#include "LiquidCrystal_I2C.h"#include "dht.h" // Import dht library for temperature and humidity sensor#define dht_pin A0 // Connect the data port of the temperature and humidity sensor to A0dht DHT;// Set up LCDLiquidCrystal_I2C lcd(0x27,16,2); // 0x27 is the address of the I2C busvoid setup() {// Delay waiting for system initializationdelay(1000);// Initialize LCDlcd.init();// Turn on the screen backlightlcd.backlight();// LCD screen displays Humidity(%):lcd.print("Humi(%): ");// LCD screen displays Temp(C):lcd.setCursor(0, 1);lcd.print("Temp(C): ");}void loop() {// Read the data of the temperature and humidity sensorDHT.read11(dht_pin);// LCD displays the collected temperature and humidity datalcd.setCursor(8,0);lcd.print(DHT.humidity,1);lcd.setCursor(8,1);lcd.print(DHT.temperature,1);delay(1000);} After the code is compiled without any problem, click the button to upload it to the Arduino UNO board. After the programming is no problem, you can observe the result on the LCD. If there is no change in the humidity, you can try to breathe a sigh of relief at the sensor and you can observe the change in value.Ⅴ FAQ1. What are humidity sensors?A humidity sensor (or hygrometer) senses, measures and reports both moisture and air temperature. The ratio of moisture in the air to the highest amount of moisture at a particular air temperature is called relative humidity. Relative humidity becomes an important factor when looking for comfort. 2. How do humidity sensors work?Humidity sensors work by detecting changes that alter electrical currents or temperature in the air. ... A capacitive humidity sensor measures relative humidity by placing a thin strip of metal oxide between two electrodes. The metal oxide's electrical capacity changes with the atmosphere's relative humidity. 3. How many types of humidity sensors are there?There are three primary types of humidity sensors employed which are defined around what approach is used to sense humidity and deliver an electrical signal that can be used to establish the value. These types of humidity sensors include Capacitive humidity sensors. Resistive humidity sensors. 4. Is a humidity sensor analog or digital?Humidity sensors measure and report moisture levels in two distinct ways - analog or digital (aka discrete). Digital sensors are able to monitor conditions for operation within a specified range. ... Analog sensors are more advanced and provide continuous visibility to current conditions through accurate measurements. 5. Why is a humidity sensor used?Humidity sensors are electronic devices that measure and report the moisture and air temperature of the surrounding environment where they are deployed e.g., in air, soil, or confined spaces. Humidity measurements indicate the concentration of water vapor present in the air. 6. What is an absolute humidity sensor?The ABS-300 is a thermal conductivity absolute humidity sensor. This sensor measures absolute humidity by quantifying the difference in thermal conductivity of dry air and air containing water vapor. ... If temperature and pressure are known the absolute humidity easily converts to relative humidity. 7. How accurate is a humidity sensor?Digital relative humidity sensors are typically accurate to plus/minus 3% relative humidity throughout the entire 0-100% RH range, but closer to plus/minus 2% at 50% RH. ... The simplest way to calibrate a relative humidity sensor is with table salt and water in an airtight container. 8. What is a humidity transducer?Humidity transducers are normally used in laboratories connected to a controller to keep a constant humidity there. ... Humidity transducers can transform a physical quantity of air humidity into a standard signal which is transferred to a controller. 9. How does the humidity sensor sense the moisture in the air?A capacitive humidity sensor measures relative humidity by placing a thin strip of metal oxide between two electrodes. The metal oxide's electrical capacity changes with the atmosphere's relative humidity. These types of sensors are used for weather, commercial and industrial applications. Resistive humidity sensors utilize ions in salts to measure the electrical impedance of atoms. As humidity changes, so do the resistance of the electrodes on either side of the salt medium. State-of-the-art resistive humidity sensors use ceramics to overcome areas where condensation occurs. Thermal conductivity sensors measure changes in heat to detect humidity. Two thermal sensors conduct electricity based upon the humidity of the surrounding air. One sensor is encased in dry nitrogen as a comparison to the other sensor which measures the ambient air. The difference between the two measures the humidity. 10. What is the difference between a Temperature sensor and a Humidity sensor?Temperature Sensor: Temperature is the most common environmental parameter. Temperature plays an important role in our homes and industries. Over the past few years, we are able to monitor and control environmental parameters with the help of temperature sensing devices. A temperature sensor is an electronic device that is used to detect and measure accurate temperature levels in different environmental conditions. There are many affordable temperature sensors are available in the market to measure the accurate temperature level. Humidity Sensor: Humidity is another most measurable environmental parameter. The high humidity levels in our homes and warehouses increase the chances of damaged products and things. In the past, we were not able to detect the accurate humidity level due to a lack of sensing devices. The humidity sensor is an electronic device uses to measure the humidity level and make changes in the humidity level through our mobile phone from anywhere. The humidity sensor detects the humidity level in the water, air and in soil. We can easily access humidity sensors in our homes and business. 
kynix On 2020-10-26   7141
Resistors

PCB Design: How to Draw Circuit Diagram of PCB?

IntroductionPCB exists in every electronic device. A fully functional PCB is mainly used to create connections between components, such as resistors, capacitors, inductors, diodes, transistors, integrated chips, etc. It is the carrier of the entire logic circuit. Sound PCB design can save production costs, and achieve good circuit performance and heat dissipation effect. PCB designs vary in complexity according to product needs. This article mainly talks about wiring, one of the basics of PCB design.PCB Design: From Idea to Schematic to PCBCatalogIntroductionⅠ PCB Basics: Wiring RulesⅡ Three PCB Wiring MethodsⅢ PCB Design: Wire InspectionⅣ Complete PCB Design Projects Inspection4.1 General PCB Design Inspection Projects4.2 PCB Electrical Characteristics Checking Projects4.3 PCB Physical Characteristics Checking Projects4.4 PCB Mechanical Design Factors4.5 PCB Installation Requirements4.6 PCB Pull-out Requirements4.7 PCB Mechanical Considerations4.8 PCB Electrical Considerations4.9 Electronics Inspection Before Into A PCBⅤ ConclusionⅠ PCB Basics: Wiring Rules1. The area within 1mm from the edge of the PCB board and within 1mm around the mounting hole will not take wiring.2. The power line width should not be less than 18mil; the signal line width should not be less than 12mil; the cpu input and output lines should not be less than 10mil (or 8mil); the line spacing should not be less than 10mil.3. It is necessary noted that the power line and the ground line should be as radial as possible, and the signal line must not be looped.4. Ground circuit rulesThe loop area formed by the signal line should be as small as possible. The smaller the loop area, the less external radiation and the less interference from the outside. An example is shown in the figure below:5. Crosstalk controlHere crosstalk refers to the mutual interference caused by long parallel wiring between different networks on the PCB, which caused by the distributed capacitance and inductance between the parallel lines. The main measures to overcome it are:a. Increase the spacing of parallel wiring and follow the 3W rule. To ensure that the distance between the lines is large enough, when the distance between the line and the center of the line is not less than 3 times the line width (as shown in the figure below). If the line center distance is not less than 3 times the line width, 70% of the line electric fields will not interfere with each other, which is called 3W rule.b. Insert a grounded isolation wire between the parallel wires. Reduce the distance between the wiring layer and the ground plane.6. The direction control rules of routing:The routing directions of adjacent layers are orthogonal. Different signal lines in the same direction on adjacent layers should be avoided to reduce unnecessary interlayer crosstalk. When the signal rate is high, use a ground plane to isolate each wiring layer, in other words, isolate each signal line with ground line. The neighbouring wires used in the input and output end of the circuit shouldn’t be parallel to prevent the feedback, and it is best to add a ground wire between these wires.7. Open loop inspection rules for wiring:Generally, it is not allowed to have a floating wiring at one end, because of the "antenna effect" and unnecessary interference radiation and reception, which may bring unpredictable results.8. Impedance matching inspection rulesThe wiring width of the same network should be kept the same. Line width variations will bring uneven line characteristic impedance, and reflection will occur when the transmission speed is high. This situation should be avoided in the design. Under certain conditions, such as the lead wires of the connector and the similar structure of the lead wires of the BGA package, the change of the line width may not be avoided, so that the length of the middle inconsistent part should be minimized.9. Wiring closed loop inspection rules:Prevent signal lines from forming self-loops between different layers. Such problems are prone to occur in multilayer board design, and it will cause radiation interference. As shown below:10. The branch length control rule of wiring:Try to control the length of branches, and the general requirement is Tdelay≤Trise/20.11. Resonance rules of wiring:For high-frequency signal design, the wiring length must not be an integer multiple of its wavelength to avoid resonance.12. Line length control rules:In fact, it refers to the short-circuit rule. When designing, you should keep the wiring length as short as possible to reduce interference problems caused by unnecessary lines. Especially for some important signal lines, such as clock lines, be sure to place oscillators close to the device. In the case of driving multiple devices, the network topology should be decided according to the specific situation.13. Parallel input and output wires on the PCB board should be avoided as far as possible to avoid parallel. It is best to place a ground wire between the two wires to avoid circuit feedback coupling.14. Digital ground and analog ground should be separated. For low-frequency circuits, single-point parallel grounding should be used. High-frequency circuits should be grounded in series with multiple points. For digital circuits, the ground wire should be closed into a loop to improve anti-noise capability.15. The wiring and via distribution of the whole circuit board should be uniformity. When the outer signal of the circuit board has a large blank area, auxiliary lines should be added to make the lines distribution on the board basically balanced.16. The low-frequency circuit can be grounded at a single point in parallel, and the actual wiring can be connected in series and then grounded in parallel. The high-frequency circuit can be grounded in series with multiple points. The ground wire should be short and thick. For high-frequency components, a large area ground foil can be used. The ground wire should be as thick as possible. If the ground wire is a very thin, the ground potential will change with the current, which reduces the noise resistance.17. Multilayer boards should be as symmetrical as possible when designing the laminated structure, as well as the wiring density and copper layout of each layer to reduce warpage and reduce EMI during soldering.18. The signal line should not cross the power supply and ground. The signal reference plane should be as complete as possible.19. Impedance controlThe signal lines that need impedance control must be wired in strict accordance with the calculated data, in addition, it is necessary to tell manufacturers it. For signal lines that do not require it, the impedance should be calculated to prevent unnecessary interference.20. Grid copper should be used less in low frequency circuits. Although it can effectively reduce the problem of large area copper skin blistering. When using grid copper, you need to consider the electrical length of the grid line and the working frequency of the circuit board. If using grid copper, the power supply should also be coated with solid copper as much as possible.21. A group of buses with the same attribute should be wired side by side as much as possible, and the length should be as equal as possible. Ⅱ Three PCB Wiring MethodsThe wires should take the shortest route between components according to the specified wiring rules. Limit the coupling between parallel wires as much as possible. Good PCB design requires the minimum number of wiring layers, and also requires fair use of the widest wire and the largest pad size corresponding to packaging density. For example, rounded corners and smooth inner corners design may avoid some electrical and mechanical problems, therefore, sharp corners and sharp corners in the wire should be avoided. Here introduces three main PCB routing methods; right-angle wiring, differential wiring, and serpentine wiring to illustrate PCB layout:A. The influence of right-angle wiring on the signal is mainly reflected in three aspects:1. The corner can be equivalent to the capacitive load on the transmission line to slow down the rise time.2. Discontinuous impedance will cause signal reflection.3. The EMI generated by the right-angle tip reaches the RF field above 10GHz. Such a right-angle is likely to develop into the source of high-speed problems. B. To figure out what is differential wiring, you must first understand what is differential signal. In a word, the driving end sends two equal and inverted signals, and the receiving end judges the logic state "0" or "1" by comparing the difference between the two voltages. The pair of traces carrying differential signals is called differential traces. Compared with ordinary single-ended signal traces, differential signals have the most obvious advantages in the following three aspects:1. Have Strong anti-interference ability. Because the coupling between the two differential traces occurs, when there is noise interference from the outside, they are almost coupled to the two lines at the same time. However, the receiving end only cares about the difference between the two signals. Therefore, the external common mode noise can be completely canceled.2. It can effectively suppress EMI. Due to the opposite polarity of the two signals, the electromagnetic fields radiated by them can cancel each other out. What’s more, the tighter the coupling, the less the electromagnetic energy leaked to the outside world.3. The timing positioning is accurate. Because the switch change of the differential signal is located at the intersection of the two signals. Unlike ordinary single-ended signals, which rely on the high and low threshold voltages to judge. Timing positioning is less affected by the process and temperature, and also more suitable for circuits with low amplitude signals. The current popular LVDS (low voltage differential signaling) refers to this small amplitude differential signaling technology. C. Serpentine line is a type of wiring method often used in PCB layout. Its main purpose is to adjust the delay to meet the system timing design requirements. The two most critical parameters are the parallel coupling length (Lp) and the coupling distance (S). Obviously, when a signal is transmitted on a serpentine trace, the parallel line segments will be coupled in a differential mode. The smaller the S, the greater the Lp, the greater the coupling. It may cause the transmission delay to be reduced, also the signal quality is greatly reduced due to crosstalk. The mechanism can refer to the analysis of common mode and differential mode crosstalk. The following are some suggestions when dealing with serpentine wring:1. Try to increase the distance (S) of parallel lines, at least more than 3H(H refers to the distance from the signal trace to the reference plane). As long as S is large enough, the mutual coupling effect can be almost completely avoided.2. Reduce the coupling length Lp. When the double Lp delay approaches or exceeds the signal rise time, the crosstalk generated will reach saturation.3. The signal transmission delay caused by the strip-line or embedded micro-strip line is less than that of the micro-strip. Theoretically, the strip-line will not affect the transmission rate due to differential mode crosstalk.4. For signal lines with high-speed and strict timing requirements, try not to take serpentine lines, especially in a small area.5. You can often use s-shaped routing at any angle, which can effectively reduce the mutual coupling.6. In high speed, the serpentine line has no ability so-called filtering or anti-interference, and can only reduce the signal quality, so it is better to use for timing matching.7. Sometimes you can consider the spiral routing method for winding. Simulation shows that its effect is better than normal serpentine routing.Ⅲ PCB Design: Wire Inspection1.Wire SpacingThe minimum spacing of wires must be determined to eliminate voltage breakdown or arcing between adjacent wires. The spacing is variable, it mainly depends on the following factors:1) Peak voltage between adjacent wires2) Atmospheric pressure (maximum working altitude)3) Coating layer4) Capacitive coupling parametersComponents with critical impedance or high-frequency components should be placed very close to reduce the critical stage delay. There is something need to pay attention to. Transformers and inductive components should be isolated to prevent coupling. Inductive signal wires should be laid orthogonally at right angles. Components that generate any electrical noise due to magnetic field movement should be isolated or rigidly installed to prevent excessive vibration.2. Whether the wire is short and straight without sacrificing function.3. Whether the restrictions on the wire width are complied with.4. There must be a minimum distance between wires, wires and mounting holes, wires and pads.5. Whether to avoid all the wires (including component leads) closer to parallel wiring.6. Whether sharp corners (≤90℃) are avoided in the wire pattern. Ⅳ Complete PCB Design Projects Inspection4.1 General PCB Design Inspection Projects1) Has the circuit been analyzed? Is the circuit divided into basic units to smooth the signal?2) Does the circuit allow short or isolated key leads?3) Where must be shielded, are they effectively shielded?4) Have you made full use of the basic grid graphics?5) Is the best size of the printed circuit board?6) Do you use the available wire width and spacing as much as possible?7) Has the preferred pad size and hole size been used?8) Are the base plate and the sketch consistent?9) Is less cross-wiring used? Do cross wires pass through components and accessories?10) Are the letters visible after assembly? Are their size and model correct?11) In order to prevent blistering, is there any window on the large area of copper foil?12) Are there tool positioning holes?4.2 PCB Electrical Characteristics Checking Projects1) Have you analyzed the influence of wire resistance, inductance, and capacitance, as well as the critical voltage drop on the ground?2) Does the wire spacing and shape meet the insulation requirements?3) Has the insulation resistance value been controlled and specified in key areas?4) Is the polarity fully recognized?5) According to geometric view, has the effect of wire spacing on leakage resistance and voltage been measured?6) Has the medium for changing the surface coating been identified?4.3 PCB Physical Characteristics Checking Projects1) Are all pads and their positions suitable for final assembly?2) Can the assembled PCB meet the shock and vibration conditions?3) What is the required spacing of standard components?4) Are the components that are not firmly installed or the heavier parts fixed?5) Is the heating element heat dissipation and cooling normally? Or is it isolated from the printed circuit board and other heat-sensitive elements?6) Are the voltage divider and other multi-lead components placed correctly?7) Is the arrangement and orientation of components easy to check?8) Has it eliminated all possible interference on the printed circuit board?9) Is the size of the positioning hole correct?10) Are the tolerances complete and reasonable?11) Have you controlled and signed the physical properties of all coatings?12) Is the ratio of via hole and lead diameter within an acceptable range?4.4 PCB Mechanical Design FactorsThe printed circuit board adopts mechanical methods to support the components, however, it cannot be used as an unique structural part of the entire device. On the edge of the printing plate, at least every 5 inches for a certain support. The factors that must be considered when selecting and designing printed circuit boards are as follows:1) The size and shape of the printed circuit board.2) The type of mechanical accessories and plug (seat) required.3) The environmental adaptability of circuits.4) According to some factors, such as heat and dust, install the printed circuit board vertically or horizontally.5) Some environmental factors that require special attention, such as heat dissipation, ventilation, shock, vibration, and humidity, dust, and radiation, etc.6) Physical support7) Install and fix.8) Disassemble4.5 PCB Installation RequirementsAccording to practical experience, the distance between the supporting points of a printed circuit board with a thickness of 0.031-0.062 inches should be at least 4 inches. For a printed circuit board with a thickness greater than 0.093 inches, the distance between the supporting points should be at least 5 inches. Taking this measure can improve the rigidity of the printed circuit board and avoid possible resonance. The following factors should be considered before deciding which mounting technology they use.1) PCB structure.2) Input and output terminals.3) Available equipment space.4) Convenience of loading and unloading.5) Type of attachments.6) Required heat dissipation.7) Required shieldability.8) The type of circuit and its relationship with other circuits.4.6 PCB Pull-out Requirements1) The influence of plugging tools on the installation distance between two printed circuit boards.2) When the plug-in tool used in the equipment, its size should be considered.3) A plug-in device is required, which is usually fixed to the printed circuit board assembly with rivets.4) As for the mounting frame of the printed circuit board, special design such as load bearing flange is required.5) The adaptability of the plug-in tool used and the size, shape and thickness of the printed circuit board.4.7 PCB Mechanical ConsiderationsThe characteristics of the board substrate that have an important influence on the printed circuit assembly are: water absorption, thermal expansion coefficient, heat resistance, flexural strength, impact strength, tensile strength, shear strength and hardness. All these characteristics affect the function and the production efficiency of the printed circuit board structure. For most applications, the dielectric substrate materials of the printed circuit board are as following:1) Phenolic impregnated paper2) Acrylic-polyester impregnated randomly arranged glass mat3) Epoxy impregnated paper4) Epoxy impregnated glass clothEach substrate can be flame retardant or combustible. The first 3 types mentioned above can be processed. The most common used material for printed circuit boards with metalized holes is epoxy-glass cloth. Its dimensional stability is suitable for high-density circuits and can minimize the occurrence of cracks in the metalized holes. One disadvantage of epoxy-glass cloth laminate is that it is difficult to punch in the usual thickness range of printed circuit boards. For this, all holes are usually drilled and copied and milled to form a print shape of the circuit board.4.8 PCB Electrical ConsiderationsIn DC or low-frequency AC applications, the most important electrical characteristics of insulating substrates are: insulation resistance, anti-isolation, printed wire resistance, and breakdown strength. In high frequency and microwave applications, include: dielectric constant, capacitance, and dissipation factors. In all applications, the current carrying capacity of printed wires is important.4.9 Electronics Inspection Before Into A PCB1) Check the rationality and correctness of the schematic diagram.2) Check the correctness of the component packaging of the schematic.3) The distance between strong and weak current lines, and the distance between isolation areas.4) Check the schematic diagram and PCB diagram to prevent the loss of the network table.5) Whether the package of the component matches the physical object.6) Whether the placement of the components is appropriate.7) Whether the components are easy to install and disassemble.8) Whether the temperature sensitive element is too close to the heating element.9) Whether the distance and direction of the mutual inductance components are appropriate.10) Whether the placement between the connectors is smooth.11) Easy to plug in and plug out12) Input and output13) Strong current and weak current14) digital and analog should be interlaced.15) Arrangement of elements on the upside and downside16) Check whether the directional component has been wrong flipped instead of rotated.17) Check whether the mounting holes of the component pins are suitable and whether it is easy to insert.18) Check whether the empty pin of each component is normal and whether it is a missing line.19) Check whether there are vias between the upper and lower wiring of the same net table. And the pads are connected through the holes, to prevent disconnection and ensure the integrity of the circuit.20) Silk screen printing should be clear, so that the operation of welding or maintenance can be easy.21) The arrangement of power and signal lines in the socket should ensure signal integrity and anti-interference.22) Pay attention to the proper ratio of pads and solder holes.23) Each plug should be placed on the edge of the PCB board as much as possible and easy to operate.24) Whether the size and distribution of the mounting holes on the PCB are appropriate to reduce the PCB bending stress.25) Pay attention to the height distribution of the components on the PCB to ensure easy assembly.Ⅴ ConclusionBased on the above mentioned rules, drawing the PCB schematics you need becomes easier. Decide what PCB you want to and install a PCB design software. PCB software is really helpful and powerful. Also a software can check your design to make sure the design does not contain errors such as traces that incorrectly touch, traces too skinny, or drill holes that are too small. For example, run the Electrical Rules Checker (ERC) to see if you’ve made any typical errors. There is less thing stopping you from making your first PCB, right? Frequently Asked Questions about PCB Design Diagram1. Which side of PCB is correct for soldering?The bottom side of the PCB is usually the side without components and the side that touches the solder wave during assembly. That is why sometimes it is also called SOLDER side. However more often, PCB are populated on both sides and the assembly process does not require wave soldering. 2. Which soldering method is suitable for soldering printed circuit board?Soldering Iron – Used to melt solder and connect component pins to board pads. A cheap soldering pencil may be sufficient, but a temperature-controlled solder station is best for high performance boards. Solder – An alloy of tin and lead with a low melting point. 3. What is PCB diagram?A PCB schematic is a simple two-dimensional circuit design showing the functionality and connectivity between different components. ... Once the blueprint has been completed, the PCB design comes next. The design is the layout, or physical representation of the PCB schematic and includes the copper track and hole layout. 4. Why we use PCB in soldering?PCB soldering is another term for the process of soldering electrical circuit boards. ... As the soldering iron melts this metal, it is then used a bit like glue to stick to pieces together. As the solder metal cools, it will re-harden into one large shape that connects the two parts. 5. How do you read a PCB board?Start with an easy analog circuit, such as a guitar distortion pedal, and work your way up to more complicated versions. Make a drawing of the top of the circuit board. Show the positions of the capacitors, integrated circuits, resistors, transistors and other components. Review it to make sure everything is included.
kynix On 2020-10-13   6785
Resistors

What are Series RLC Circuit and Parallel RLC Circuit?

IntroductionRLC circuit is a circuit structure composed of resistance (R), inductance (L), and capacitance (C). The LC circuit is a simple example. RLC circuits are also called second-order circuits. The voltage or current in the circuit is the solution of a second-order differential equation, and its coefficients are determined by the circuit structure.If the circuit components are regarded as linear components, an RLC circuit can be regarded as an electronic harmonic oscillator.The natural frequency of this circuit is generally expressed as: (unit: Hz)RLC circuits are often used as band-pass filters or band-stop filters, and the Q factor can be obtained by the following formula:There are generally two types of RLC circuit composition: series and parallel.The animation above demonstrates the operation of the LC circuit (RLC circuit without resistors). The charge is transferred back and forth between the capacitor plate and the inductor. The energy oscillates back and forth between the electric field (E) of the capacitor and the magnetic field (B) of the inductor. The RLC circuit works similarly. The difference is that the oscillating current decays to zero over time due to the resistance in the circuit.CatalogIntroductionCatalogI RLC Series Circuit 1.1 What is Series RLC Circuit? 1.2 What is Transient Response of RLC Circuit? 1.3 Laplacian Domain 1.4 RLC Series Resonance Formula   1.5 Phasor Diagram of RLC Series CircuitII RLC Parallel CircuitIII The Difference Between Series Resonant Circuit and Parallel Resonant Circuit 3.1 Series Resonance 3.2 Parallel ResonanceIV Application of RLC Circuit Resonance 4.1 Application of Series Resonance Circuit 4.2 Application of Parallel Resonance CircuitV Frequently Asked Questions about RLC CircuitI RLC Series Circuit1.1 What is Series RLC Circuit?Figure1. RLC Series CircuitV-supply voltageI-circuit currentR-resistanceL-InductanceC-capacitanceIn this circuit, all three elements are connected in series with the voltage. The main differential equations can be obtained by substituting the constitutive equations of the three elements into Kirchhoff's voltage law (KVL). From Kirchhoff's voltage law:are the voltages across R, L, and C respectively, and V(t) is the voltage of the power supply that changes with time. Substituting the constitutive equation to get:In the case of a constant supply voltage, take the derivative of the above formula and divide by L to obtain the following second-order differential equation:This equation can be written in a more common form:α is called "attenuation", which is used to measure the attenuation rate of the transient response of this circuit when the external input is removed. ω0 is the angular resonance frequency. These two coefficients are given by:The damping coefficient ζ is another commonly used parameter, defined as the ratio of α to ω0:1.2 What is Transient Response of RLC Circuit?Figure2. Transient ResponseThe figure shows the underdamped and overdamped responses of the series RLC circuit. The critical damping is drawn with a thick red curve. These drawings are unified when L = 1, C = 1 and ω0=1. According to the value of different damping coefficient ζ, the solution of the differential equation has three different situations, namely: under-damping (ζ<1), over-damping (ζ>1), and critical damping (ζ=1).The characteristic equation of the differential equation is:The roots of this equation are:The general solution of this differential equation is the linear superposition of two exponential functions:The coefficients A1 and A2 are given by the boundary conditions of the specific problem.The following video introduces how to analyze RLC circuits by way of second order differential equations. Both parallel and series RLC configurations are discussed in it, looking primarily at Natural Response, but also touching on Step Response.RLC Circuit Response Explanation1.2.1 Over-damped responseThe over-damped response (ζ>1) is:Overdamping response is a transient current without oscillation attenuation.1.2.2 Underdamped responseThe underdamped response (ζ<1) is:Through the trigonometric identities, these two trigonometric functions can be expressed by a phased sine function:The underdamped response is an attenuated oscillation with a frequency of ωd. The rate of oscillation decay is α. The α in the index describes the envelope function of the oscillation. B1 and B2 (or B3 and phase difference φ in the second form) are arbitrary constants and are determined by boundary conditions. The frequency ωd is given by:This is the so-called damped resonance frequency or damped natural frequency. It is the frequency at which the circuit naturally vibrates when driven by no external source. The resonant frequency ω0 is the resonant frequency of the circuit when it is driven by an external source, and is often called the undamped resonant frequency in order to facilitate the distinction.1.2.3 Critical damping responseThe critical damping response (ζ=1) is:1.3 Laplacian DomainThe Laplace transform can be used to analyze the AC transient and steady-state behavior of the RLC series circuit. If the waveform generated by the above voltage source is V(s) after Laplace transform (where s is the complex frequency s=σ+iω), then Kirchhoff’s voltage law is applied in the Laplace domain:Among them, I(s) is the current after Laplace transform. Solve for I(s):After rearranging, the following formula can be obtained:1.3.1 Laplace admittanceSolve for Laplace admittance Y(s):The above formula can be simplified by using the parameters α and ωo defined in the above content, and we can get:1.3.2 Pole and zeroThe zero point of Y(s) is s such that Y(s)=0: s=0 and |s|⟶ ∞; the pole of Y(s) is s such that Y(s)⟶ ∞. Solve the quadratic equation. Get:The poles of Y(s) are the roots s1 and s2 of the characteristic equation of the differential equation mentioned above.1.3.3 Sine steady stateThe sine steady state can be represented by letting s=jω, where j is the imaginary unit. Substitute this into the amplitude of the above equation:The function of the current with ω as the variable isThere is a peak.In this special case, ω in this peak is equal to the undamped natural resonance frequency:1.4 RLC Series Resonance FormulaThe so-called series resonance formula refers to the study of the energy value of the voltage and current of the series circuit to reach the same phase, and the inductance of the inductance in the circuit and the capacitive reactance in the capacitor are equal in value. Therefore, in the study of the resistance characteristics of the circuit, In the case of a given terminal voltage, the maximum current is released, and the active power consumed will also be the maximum.Figure3. RLC series resonance formulaResonance definition: The energy of the L and C_ elements in the circuit are equal. When a reactance element in the circuit releases energy, the other reactance element must absorb the same energy, that is, energy pulsation occurs between the two reactance elements.  When series resonance occurs:Inductive reactance XL = capacitive reactance XCSource voltage U = resistance voltage URInductor voltage UL = Capacitor voltage UCInductor's reactive power QL = Capacitor's reactive power QCTotal circuit impedance Z=resistance value RApparent power S = resistance power PExplanation: When the circuit resonates, it must have two components: inductor L and capacitor C, and the frequency corresponding to resonance is called "resonant frequency" or resonant frequency, generally we use fr to indicate.1.5 Phasor Diagram of RLC Series Circuit(1) Phasor diagram of voltage and currentU&=U&R+U&L+U&CFigure4. Phasor diagram of voltage and currentFigure5. Phasor diagram of voltage and current(2) Voltage triangleThe relationship between the voltage triangle and the impedance triangle: divide the effective value of the voltage triangle by I to get the impedance triangle.Figure6. Voltage triangle● The relationship between the total voltage and the effective value of each part of the voltage:● The effective value relationship between total voltage and total current: U=I|Z|● The phase difference relationship between total voltage and total current:II RLC Parallel CircuitFigure7. RLC Parallel CircuitV-supply voltageI-circuit currentR-resistanceL-InductanceC-capacitanceThe characteristics of the RLC parallel circuit can be handled by the duality (electrical circuits) of the circuit. The RLC parallel circuit is treated as the dual impedance of the RLC series circuit, so it can be analyzed in a similar way to the RLC series circuit.The attenuation α of the RLC parallel circuit can be obtained by the following formula:If the factor of 1/2 is not considered, the damping coefficient of the RLC parallel circuit is exactly the reciprocal of the damping coefficient of the RLC series circuit.Frequency domainAdd the admittance of each element in parallel to obtain the admittance of this circuit:After capacitors, resistors, and inductors are connected in parallel, the impedance at the resonance frequency is the maximum, which is the opposite of the case where capacitors, resistors, and inductors are connected in series. The RLC parallel circuit is an antiresonator.In the figure below, it can be seen that if a constant voltage is used for driving, the frequency response of the current has a minimum value at the resonance frequency ω0=1/√LC. If it is driven by a constant current, the frequency response of the voltage has a maximum value at the resonance frequency, which is similar to the frequency response graph of the current in an RLC series circuit.Figure8. Sinusoidal steady state analysisNormalize with R = 1 ohm, C = 1 Farad, L = 1 Henry, and V = 1.0 VoltIII The Difference Between Series Resonant Circuit and Parallel Resonant CircuitIn an AC circuit containing resistance, inductance and capacitance, the voltage at both ends of the circuit and its current are generally out of phase. If the circuit parameters or the power supply frequency are adjusted to make the current and the power supply voltage in phase, the circuit is resistive, which is called resonance for the working state of the circuit at this time.Resonance is a specific phenomenon of sinusoidal AC circuits. It is widely used in electronics and communication engineering. However, in power systems, resonance may damage the normal operation of the system.Resonance is generally divided into series resonance and parallel resonance. As the name implies, series resonance is the resonance that occurs in a series circuit. Parallel resonance is the resonance that occurs in a parallel circuit.3.1 Series Resonance3.1.1 IntroductionIn a series circuit composed of resistance, inductance and capacitance, when the capacitive reactance XC and the inductive reactance XL are equal, that is, XC=XL, the voltage U and the current I in the circuit have the same phase, and the circuit presents pure resistivity. This phenomenon is called series resonance. When the circuit is in series resonance, the total impedance in the circuit is the smallest, and the current will reach the maximum. 3.1.2 Conditions for the occurrence of series resonanceIn order to resonate in a series circuit, certain conditions must be met.When UL=UC, that is, XL=XC,. Voltage and current are in phase, and series resonance occurs in the circuit. From ωL=1/ωC, ω0=1/√LC can be obtained, and the resonance frequency is f=f0=1/2π√LC. 3.1.3 Characteristics of series resonance circuit● Minimum total impedance● When the power supply voltage is constant, the current is the largest● The circuit is resistive, and the voltage on the capacitor or inductor may be higher than the power supply voltage 3.1.4 Energy changes in the circuit at resonanceThe circuit absorbs Q=0 from the power supply, and the circuit energy exchanges between the electric field and the magnetic field inside the circuit during resonance. The power supply only provides energy to R.High voltage may damage the device. Series resonance should be avoided in the power system. And series resonance is widely used in radio engineering.3.2 Parallel Resonance3.2.1 IntroductionIn a circuit where an inductance and a capacitor are connected in parallel, when the size of the capacitor just makes the voltage and current in the circuit have the same phase, that is, when the power supply is consumed by resistance and becomes a resistance circuit, it is called parallel resonance.Parallel resonance is a complete compensation. The power supply does not need to provide reactive power, only the active power required by the resistance. At resonance, the total current of the circuit is the smallest, and the current of the branch is often greater than the total current of the circuit. Therefore, parallel resonance is also called current resonance.When parallel resonance occurs, a large current flows in the inductance and capacitance components, which will cause the fuse of the circuit to blow or burn the electrical equipment; however, it is often used in radio engineering to select signals and eliminate interference. 3.2.2 Parallel resonance conditionsIn the following two types of circuitsFigure9. Two types of circuitsThe resonant frequency formula of (a) has been discussed above, and (b) is determined by,We can get.Under normal circumstances, the coil resistance R is much smaller than XL, therefore, ignoring R we can getthat is f=f0=1/2π√LC. 3.2.3 Features of parallel resonant circuit● When the voltage is constant, the current is the smallest at resonance● Maximum total impedance● The circuit is resistive, and the branch current may be greater than the total currentIV Application of RLC Circuit Resonance4.1 Application of Series Resonance CircuitThe use of series resonance to generate power frequency high voltage, which is used in high voltage technology to do withstand voltage test for power equipment such as transformers, can effectively find dangerous concentrated defects in the equipment, and is the most effective and direct way to test the insulation strength of electrical equipment Methods. Used in radio engineering, series resonance is often used to obtain a higher voltage.In the radio, the series resonance circuit is often used to select the radio signal. This process is called tuning. The following figure shows a typical circuit.Figure10. A typical circuit for tuningWhen the electric waves of various signals of different frequencies generate electric signals of different frequencies on the antenna, they are induced to the coil 2L through the coil 1L. If the oscillation circuit resonates to a certain signal frequency, the current of the signal in the loop is the largest, and a voltage CU higher than the signal voltage Q times is generated across the capacitor. For other signals of various frequencies, because no resonance occurs, the current in the loop is very small, which is suppressed by the circuit. Therefore, the capacitor C can be changed to change the resonant frequency of the loop to select the desired radio signal.4.2 Application of Parallel Resonance CircuitThe application of LC parallel resonant circuit in communication electronic circuit is determined by its characteristics. Specifically, it mainly includes three categories. One is working in resonance, as a frequency-selective network application. At this time, it appears as a large resistance and outputs a larger voltage under the excitation of current; the second is working in detuning The state, present as inductive or capacitive at this time, together with other inductances and capacitors in the circuit, satisfies the oscillation conditions of the three-point oscillation circuit to form a sine wave oscillator; the third is to work in a detuned state, that is, to work on the amplitude-frequency characteristic curve Or one side of the phase-frequency characteristic curve to realize amplitude-frequency conversion, frequency-amplitude conversion, frequency-phase conversion, and phase-frequency conversion to form an angle modulation and demodulation circuit. (1) LC parallel resonant circuit used as frequency selective matching networkFrequency selection is to select useful frequency components from the input signal and suppress useless frequency components or noise. In communication electronic circuits, the LC parallel resonant circuit is the most commonly used as a frequency selection network. It is widely used in high-frequency small-signal amplifiers, Class C high-frequency power amplifiers, mixers and other circuits. The common feature of these circuits is that the LC resonant circuit is not only a frequency-selective network. Through the connection of the transformer, it also plays the role of impedance transformation, reducing the impact of the amplifier tube or the load on the resonant circuit, and obtaining better selectivity. . (2) The LC parallel resonant circuit of the overtone crystal oscillator as a capacitorUnder the action of the applied alternating voltage, in the mechanical vibration generated by the quartz crystal, in addition to the fundamental frequency mechanical vibration, there are many odd frequency overtones. When a crystal oscillator with a very high operating frequency is required, overtone crystal oscillators are often used. The figure below shows the overtone crystal oscillator.Figure11. Circuit composition and reactance curve of L1C1 circuitIn the above figure, the quartz crystal and the CL branch are inductive. The quartz crystal, C2, and L1C1 loop together form a three-point oscillator. According to the composition principle of the three-point oscillator (shooting the same), the L1C1 resonant circuit should be capacitive. Assuming that the quartz crystal in the figure is working at the 5th overtone frequency, the nominal frequency is 5 MHz. In order to suppress the parasitic oscillation of the fundamental frequency and 3rd overtone, the L1C1 loop should be tuned between the 3rd and 5th overtone frequency, that is, 3~ Between 5 MHz.  From the reactance characteristic curve of the L1C1 resonant circuit shown in Figure (b), it can be seen that for the 5th overtone frequency of 5 MHz, the L1C1 circuit is capacitive, and the circuit meets the three-point oscillation condition and can oscillate. For the fundamental and third harmonics that are less than the resonance frequency of the L1C1 loop, the loop has an inductive characteristic, which does not conform to the principle of different components and cannot produce oscillation. For overtones of 7 times and above, although the L1C1 circuit is also capacitive, the equivalent capacitance at this time is too large, the amplitude starting conditions cannot be met, and the oscillation cannot be generated. (3) LC parallel resonant circuit that realizes the functions of amplitude-frequency conversion and frequency-phase conversionThe phase-frequency characteristic of the impedance of the LC parallel resonant circuit is a monotonous curve with a negative slope. The linear part of the curve can be used to perform a linear conversion between frequency and phase. This is mainly used in the phase frequency discrimination circuit; the same, the LC parallel resonant circuit The linear part of the impedance's amplitude-frequency characteristic curve can also perform the linear conversion between frequency and amplitude, so it has also been applied in the slope frequency discrimination circuit.V Frequently Asked Questions about RLC Circuit1. Is LCR and RLC circuit the same?Yes. An RLC circuit (also known as a resonant circuit, tuned circuit, or LCR circuit) is an electrical circuit consisting of a resistor (R), an inductor (L), and a capacitor (C), connected in series or in parallel. This configuration forms a harmonic oscillator. 2. What is the resonant frequency of the RLC circuit?What is Resonance in the RLC circuit? Resonance is the phenomenon in the electrical circuit, where the output of the circuit is maximum at one particular frequency. And that frequency is known as the resonant frequency. At the resonant frequency, The capacitive reactance and inductive reactance are equal. 3. Is the RLC circuit linear?In an RLC circuit, the most fundamental elements of a resistor, inductor and capacitor are connected across a voltage supply. All of these elements are linear and passive in nature. 4. What is the bandwidth of the RLC circuit?The bandwidth of any system is the range of frequencies for which the current or output voltage is equal to 70.7% of its value at the resonant frequency, and it is denoted by BW. 5. What is the second-order circuit?A second-order circuit is characterized by a second-order differential equation. It consists of resistors and the equivalent of two energy storage elements. 6. What is the first-order circuit?A first-order circuit can only contain one. energy storage element (a capacitor or an. inductor). The circuit will also contain. 7. What is the half-power frequency?The frequencies for which current in a series RLC (or a series tuned) circuit is equal to 1/√2 (i.e. 70.71%) of the maximum current (current at resonance)are known as Half Power Frequencies. 8. What is the natural response of the RC circuit?The natural response tells us what the circuit does as its internal stored energy (the initial voltage on the capacitor) is allowed to dissipate. It does this by ignoring the forcing input (the voltage step caused by the switch closing). The "destination" of the natural response is always zero voltage and zero current. 9. What is the difference between first-order and second-order filters?The main difference between a 1st and 2nd order low pass filter is that the stopband roll-off will be twice the 1st order filters at 40dB/decade (12dB/octave) as the operating frequency increases above the cut-off frequency ƒc, point as shown. 10. What is the use of a resonant circuit?One use for resonance is to establish a condition of stable frequency in circuits designed to produce AC signals. Usually, a parallel (tank) circuit is used for this purpose, with the capacitor and inductor directly connected together, exchanging energy between each other. 
kynix On 2020-10-10   13455

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Follow us

Join our mailing list!

Be the first to know about new products, special offers, and more.

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserve.