Phone

    00852-6915 1330

The Kynix Blog

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   10455
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   19614
Resistors

Blood Oxygen Measurement on Smartwatches: Is it Reliable?

IntroductionIn September of this year, Apple's new generation of watch Apple watch series 6 launched the blood oxygen measurement function. In the following month or two, smart watches with blood oxygen measurement function were released together, vivo WATCH, Huawei Watch GT2, Honor Watch GS Pro, Hua Mi Amazfit GTR 2 and GTS 2 flagship smart watches almost all include this feature. In October, Huami Technology released the Amazfit Pop, which is priced at only 299RMB, and is also equipped with blood oxygen measurement. The blood oxygen sensor has begun to penetrate into low-end and mid-range computers, which may set off a greater wave.So, what exactly is the blood oxygen measurement function on the smart watch? Is it reliable? After you finish reading this article, you will get the answer.CatalogIntroductionCatalogI Blood Oxygen & Blood Oxygen Saturation 1.1 What is Normal Blood Oxygen Level? 1.2 How Important is Blood Oxygen Saturation?II How Does a Smart Watch Measure Blood Oxygen?III What is the use of Measuring Blood Oxygen Saturation?IV Is it Reliable to Measure Blood Oxygen with a Smart Watch?V Comparison with Pulse Oximeter 5.1 What is a Pulse Oximeter? 5.2 How Does a Pulse Oximeter Work? 5.3 Main Components 5.4 Can a Smart Watch be Used as a Pulse Oximeter?VI Is it Necessary to Have an Oximeter at Home During Covid-19? 6.1 Can a Pulse Oximeter Diagnose Covid-19? 6.2 Is it Necessary to Buy a Pulse Oximeter?VII FAQI Blood Oxygen & Blood Oxygen Saturation1.1 What is Normal Blood Oxygen Level?Blood oxygen refers to the oxygen in the blood, and the human body's normal blood oxygen saturation is above 95%. The higher the oxygen content in the blood, the better the human metabolism. Of course, high blood oxygen content is not a good phenomenon. The blood oxygen in the human body has a certain degree of saturation. Too low will cause insufficient oxygen supply in the body, and too high will cause cell aging in the body.Figure1. Blood Oxygen1.2 How Important is Blood Oxygen Saturation?The cells in the human body rely on oxygen to survive. The oxygen that enters the human body through the respiratory system will be combined with hemoglobin and transported to various organs. Blood oxygen saturation is a measure of the percentage of hemoglobin combined with oxygen, so blood oxygen saturation is a key indicator to measure the health of the body. This parameter can be used to understand the oxygen content in the human blood. Under normal circumstances, the normal blood oxygen saturation is between 95% and 100%. If the blood oxygen saturation is less than 90%, it can be considered as hypoxemia. When blood oxygen saturation is too low, it means that there will be hypoxia, which will affect the central nervous system, liver, kidney and other important organs. Therefore, blood oxygen saturation is an important indicator, and the measured data can assist in judging the current physical health.Figure2. How Important is Blood Oxygen Saturation?II How Does a Smart Watch Measure Blood Oxygen?The blood oxygen measurement function of the smart watch actually judges health by measuring the human arterial blood oxygen saturation. The blood oxygen saturation specifically refers to the percentage of hemoglobin combined with oxygen in the blood, that is, the concentration of blood oxygen in the blood. Generally speaking, if the blood oxygen saturation is below 94%, it will be regarded as insufficient oxygen supply. Many clinical diseases will cause insufficient oxygen supply, which directly affects the normal metabolism of cells, and in severe cases, it can be life-threatening. Therefore, blood oxygen testing is very important for clinical medicine. The most primitive method of tracing blood oxygen measurement requires blood sampling first, and then electrochemical analysis by a blood gas analyzer to obtain the blood oxygen saturation. This method has complicated steps and cannot achieve continuous detection. However, with the development of clinical medicine, non-invasive blood oxygen measurement is now widely used. As long as a finger pressure photoelectric sensor is worn for the patient, continuous blood oxygen detection can be realized. The essence is to use red light with a wavelength of 660nm and near-infrared light with a wavelength of 940nm as the intake light source, measure the light transmission intensity through the tissue bed, calculate the blood oxygen concentration and blood oxygen saturation, and display the results by the instrument. The principle of measuring blood oxygen with a smart watch is similar to acupressure measurement, but the difference is that the part illuminated by the light source of the watch is the wrist, which is not as "transparent" as the finger. Visible light and infrared light cannot penetrate, so it is more challenging. However, as a wearable device with a very high frequency of use, the stimulation brought by the development space of smart watches is far greater than the challenges they need to face.Figure3. How Does a Smart Watch Measure Blood Oxygen?III What is the use of Measuring Blood Oxygen Saturation?Because the blood oxygen saturation can be detected anytime and anywhere through smart wearable devices, the application scenarios of blood oxygen detection are very wide. (1) Assist in judging the state of sleep breathingIntermittent apnea may occur during sleep, which may cause insufficient oxygen supply. Through continuous blood oxygen detection, the blood oxygen saturation data during sleep can be recorded, and the data can be used to analyze whether there is hypoxia during sleep, so as to determine the sleep health status. In addition, like some people who often work overtime, they can also use the blood oxygen saturation detection function to judge the current state. If the blood oxygen saturation is low, you may need to take a quick rest, and that is friendly to your health.Figure4. Judging the State of Sleep Breathing by Blood Oxygen Saturation (2) Monitor the physical state during exerciseThe blood oxygen saturation detection function not only allows you to know your physical condition at any time in your daily life, but also can play a better health support role in some special scenes. For example, in outdoor extreme mountaineering and other sports scenes, you can know your physical condition at any time through blood oxygen saturation, determine whether you need to rest or adjust the exercise intensity, so as to better cope with various sports scenes.Figure5. Monitor the Physical State During Exercise (3) Monitor the health of parentsGenerally, the APP on the mobile phone can synchronize the health data of the smart wearable device, so even if you are away from home, as long as you equip your parents with a smart wearable device, you can learn about your parents’ blood oxygen data and some other health data through remotely synchronized data. , adding more details for your concern.IV Is it Reliable to Measure Blood Oxygen with a Smart Watch?At present, the blood oxygen measurement function on a smart watch has not been certified by NMPA or FDA, that is, it has reached the level of medical diagnosis. The blood oxygen monitoring module of the smart watch consists of three parts: an optical sensor, a front-end signal acquisition system, and an algorithm. The principle is based on the different absorption rates of oxyhemoglobin (HbO2) and deoxyhemoglobin (Hb) in the blood to red light and infrared light, the red light and infrared light are irradiated to the skin through an optical sensor, and then the blood vessels under the skin are obtained. After the reflection of the red light and infrared light, the blood oxygen is calculated by the algorithm. The optical sensor is the core of the blood oxygen detection module, which is usually composed of several LED lights and diodes. Apple's official website shows that the blood oxygen sensor equipped with Apple Watch 6 consists of four groups of LED light clusters and four photodiodes, and is integrated in the crystal glass back. If a smart watch is required to measure both heart rate and blood oxygen, it can be achieved through the same optical sensor. Ams has launched an optical sensor that integrates blood oxygen measurement and heart rate measurement. Li Minghao, field application engineer manager at ams, said, “Heart rate measurement usually uses green light, and blood oxygen measurement uses red light and infrared light. Compared with optical sensors that can only measure heart rate, optical sensors that can simultaneously perform two functions The composition usually adds several red and infrared LEDs.Figure6. Samsung Galaxy Series Smart WatchAs the core of blood oxygen measurement, the accuracy of optical sensors is very important to the accuracy of measurement results. For example, deviations in the wavelength of the red light produced by the diode may cause inaccurate measurement results. "Smartwatch measuring blood oxygen is a signal obtained by measuring capillaries. The signal is very weak. Usually this signal is submerged on it, and the feedback signal may be only about 1% useful. Therefore, the design of optics and filtering is very important." Li Minghao said.Currently, companies in the industry are taking various measures to improve accuracy. The senior technical staff of Huami Technology said, "Any sensor has various non-ideal errors. In terms of control errors, Huami conducts strict testing and evaluation of all key parameters when selecting optoelectronic devices. Each product of Mi has undergone multiple measurements on the production line to ensure that the accuracy of the factory product parameters is within the design range. In addition, at the beginning of the design, select the relatively flat waveband of the human skin spectral absorption curve to limit the wavelength error to the blood oxygen The impact is within an acceptable range." Increasing the number of sensors is also one of the ways to improve accuracy. The vivo watch is equipped with a self-developed 5-core optical heart rate blood oxygen sensor to achieve blood oxygen measurement. "5-core refers to a multi-sensor system composed of 5 sensors, in which the circuit and optical design are the results of vivo's independent research. Compared with the single sensor or multi-sensor design in the industry, it has a larger signal receiving area and receiving capacity. Stronger, can achieve more accurate monitoring effects." said a senior technical staff of vivo. However, judging from the actual effect of the current smart watch for blood oxygen measurement, although there is an improvement in accuracy, there is still a certain gap between achieving medical-level blood oxygen monitoring. When the news that Apple Watch 6's blood oxygen measurement function was inaccurate, Apple came out to clarify that this function is only for health reference, not as a medical diagnosis standard. The accuracy requirements of consumer and medical products are different. Taking the heart rate as an example, there is no problem with a few beats on the wrist, but in medical treatment, there can only be a difference of 1-2 beats.V Comparison with Pulse Oximeter5.1 What is a Pulse Oximeter?Pulse oximeter has been a common medical device since the 1970s. It is most commonly used for people with respiratory diseases and sometimes for athletes and pilots who must monitor blood oxygen levels. They are mainly used for clinical testing and monitoring, but for certain groups of people, they may also be used at home.Figure7. Pulse Oximeter5.2 How Does a Pulse Oximeter Work?Based on the change in light absorption during arterial pulsation. Two light sources located in the visible red spectrum (660 nanometers) and infrared spectrum (940 nanometers) alternately illuminate the tested area (usually fingertips or earlobes). The amount of light absorbed during these pulses is related to the oxygen content in the blood. The microprocessor calculates the ratio of the two spectra absorbed, and compares the result with the saturation value table stored in the memory to obtain the blood oxygen saturation. A typical oximeter sensor has a pair of LEDs that face a photodiode through a translucent part of the patient's body (usually a fingertip or earlobe). One of the LEDs is red light with a wavelength of 660nm; the other is infrared light with a wavelength of 940nm. The percentage of blood oxygen is calculated by measuring the two wavelengths of light with different absorption rates after passing through the body. 5.3 Main ComponentsA microprocessor, memory (EPROM and RAM), two digital-to-analog converters that control LEDs, a device that filters and amplifies the signal received by the photodiode, and an analog-to-digital converter that digitizes the received signal to provide the microprocessor . The LED and photodiode are placed in a small probe that is in contact with the patient's fingertip or earlobe. Pulse oximeters generally also include small liquid crystal displays. 5.4 Can a Smart Watch Replace a Pulse Oximeter?The answer is no. Fitness bracelets (including some Garmin devices) and smart watches with the function of detecting blood oxygen levels cannot be used as medical equipment. Garmin said that blood oxygen saturation can help you understand your body's adaptation to high altitude (especially for mountain sports and adventure), and it can also be a reminder for symptoms of sleep apnea or overwork during exercise. But it also clearly states that these data cannot be used for medical purposes, nor can it diagnose, treat, cure or prevent any disease or condition. The location where the device is worn may affect accuracy. The fitness tracker is worn on the wrist instead of the fingertips, it is easier to move when worn on the wrist, and the blood concentration on the skin surface is lower than that on the fingertips, so the obtained blood oxygen measurement may have a large error. However, although fitness trackers and smart watches are not medical devices, if they do detect abnormalities and alert you, then you should pay attention.Figure8. Apple WatchVI Is it Necessary to Have an Oximeter at Home During Covid-19?One of the powerful aspects of COVID-19 is that some patients with very low blood oxygen levels do not feel it themselves and are not aware of the severity of their illness. This has led some doctors (especially in the United States) to recommend pulse oximeters at home. Sounds reasonable, doesn't it? However, you must know that although they are commonly used in hospitals, their value for healthy people at home is limited. Equipment problems or incorrect use may cause inaccurate readings, so it is not wise to rely solely on oximeters without comprehensive diagnostic support from medical staff. 6.1 Can a Pulse Oximeter Diagnose Covid-19?The pulse oximeter may indicate a problem with the blood oxygen level, which may be related to the coronavirus, but it is only part of a comprehensive diagnosis. Blood oxygen saturation can help clinical decision-making, but it cannot replace clinical evaluation, nor can it be diagnosed alone. Some doctors suggest that for patients with suspected symptoms of the new crown but not serious enough to be hospitalized, they can consider using a pulse oximeter at home for monitoring.Figure9. Covid Prevention6.2 Is it Necessary to Buy a Pulse Oximeter?If you don’t have any breathing problems and have never used it before, then you don’t need to buy a pulse oximeter. It is usually only used if recommended by a doctor. Professor Xu, a clinical assistant professor at the University of Hong Kong and honorary consultant of respiratory and intensive care medicine at the Royal Free Hospital in London, said that pulse oximeters are still useful as early home self-monitoring equipment. Those who are weak, prone to respiratory failure, suffer from chronic respiratory diseases or need oxygen therapy at home can prepare one. Some people want to buy one for a self-test to find out their "normal" oxygen level, just in case. In fact, if you are not a suspected patient and have no symptoms, there is no need to buy one. Without the help of medical personnel, the measured readings are not very useful, and if you have not used them before, misuse or misinterpretation of the numbers is easy to happen. Dr. Andy Whittamore, the clinical director of the British Asthma Association and the British Lung Foundation, suggested: "Any surveillance at home should be part of the diagnosis, but not a substitute for clinical advice. All people who are concerned about their symptoms should see a doctor. In addition, like many coronavirus-related products, such as masks, due to the promotion of pulse oximeters, demand has also begun to increase, so beware of unscrupulous sellers selling substandard products at high prices.  VII FAQ1. Can a smartwatch measure blood oxygen?Thankfully, tech companies like Apple, Samsung, Realme, and Garmin have been experimenting with Sp02 sensors on their wearables to allow users to monitor not just blood oxygen saturation but other health data, on the go. 2. How do smartwatches measure oxygen levels?Both medical and wearable oximeters use light to do so. Typically, a pulse oximeter features two LEDs with different light wavelengths — one red and one infrared. ... Most recent watches and fitness trackers usually have sensors that provide pulse ox sleep tracking too. 3. How is oxygen level in blood measured?A pulse oximeter measures how much light is absorbed by your blood. This tells us how much oxygen your blood contains. The pulse oximeter shines 2 lights through your fingertip or earlobe: one red light and one infrared light.  
kynix On 2020-11-21   7033
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   6643
Resistors

How to Test a Diode in Circuit with a Multimeter?

IntroductionSemiconductor diode, also known as crystal diode, has obvious unidirectional conductivity. It is a kind of electronic components widely used in electrical equipment for protection, rectification, switching, and many other applications. So it is pretty common to see diodes in daily electronic circuits, such as Zener diodes, light-emitting diodes, photodiodes, etc. Therefore, it is necessary to know how to test whether a diode is properly working or not.How to Test a Diode Using a MultimeterCatalogIntroductionⅠ Diode Basics1.1 To Figure Out Diode Anode and Cathode1.2 What Would Cause a Diode to Fail?1.3 Common Diode Failures AnalysisⅡ How to Test Diode with a Multimeter?2.1 Digital Multimeter and Analog Multimeter2.2 Common Diodes Testing Rules2.3 Testing Methods of Types of DiodesⅢ Example Analysis3.1 Test a Diode in Circuit3.2 Power-off and Power-on Testing Methods3.3 ConclusionⅠ Diode Basics1.1 To Figure Out Diode Anode and CathodeThe anode and cathode of diode can be distinguished by screen printing on PCB board, which are as shown in the following:1) The notched end is the cathode of diode.2) The end with a horizontal bar is the cathode.3) The end with white parallel bars is the cathode.4) One end of the triangle arrow is the cathode.5) The small end of the plug-in diode is the cathode, and another big end is the anode.1.2 What Would Cause a Diode to Fail?The common reasons for a diode failure are open circuit, short circuit and unstable voltage regulation. Among these three types of failures, there may be signs. For example, the power supply voltage rises, the supply voltage drops to zero or the output is unstable. Therefore, specific problems must be analyzed in detail for the diode test.The common measurement tool for diode is a multimeter, including on-circuit measurement (the diode is on the circuit board) and off-circuit measurement (the diode is not on the circuit board). As for the basic principle of diode measurement, the forward resistance and the reverse resistance of the PN junction are measured, and the basic judgment is based on the values of them. Therefore, to do a good job in diode test, it is necessary to understand the basic structure and working principle of diodes, and then to understand the main fault characteristics of the diode. 1.3 Common Diode Failures Analysis1) open circuitThis means that the positive and negative electrodes of the diode have been disconnected, and the forward and reverse resistance of the diode have become infinite. After the diode is open, the circuit is in an open state.2) voltage breakdownThis means that there is a path between the positive and negative electrodes of the diode, and the forward and reverse resistance are as large as or close to each other(but not infinite). After a diode breaks down, the action between the positive and negative electrodes may always exit, because there are different manifestations in different circuits.3) forward voltageIf the forward resistance of the diode is too large, the voltage drop of the signal on the diode will increase, which will cause the output signal to decrease, and the diode will be damaged due to the heat. After the forward resistance becomes larger, the unidirectional conductivity of the diode will become poor.4) reverse voltageThe reverse resistance of the diode becomes smaller, which means the unidirectional conductivity of the diode be effected.5) performance degradationUnder this circumstance, the diode does not have obvious failures such as open circuit or breakdown. However, when the situation is getting worse, the stability of the circuit will deteriorate or the output signal voltage of the circuit will drop. Ⅱ How to Test Diode with a Multimeter?2.1 Digital Multimeter and Analog MultimeterWhen using a digital multimeter to test a diode, the red probe connects with the anode and the black probe connects with the cathode. At this time, the measured resistance is the forward conduction resistance of the diode, which is just the opposite of the test result of an analog multimeter. 2.2 Common Diodes Testing Rules(1) The forward resistance of the low-power germanium diode is 300Ω~500Ω, and the silicon diode is lkΩ or more. The former reverse resistance is tens of thousand ohms, and the latter is above 500kΩ (the value of high-power diode is smaller).(2) The polarity of the diode can be judged according to the resistance values (small forward resistance and large reverse resistance). Set the multimeter to the ohm block (Usually use R×100 or R×1k block, do not use R×1 block or R×10k block. The R×1 block is in a large current, it is easy to burn the tube, while using R×10k block may cause the tube broken down with high voltage). Connect the two polarities of the diode with the test probes respectively, and measure the two resistance values. When the measured resistance value is smaller, the end connected to the black lead is the anode. In the same way, when the measured resistance value is larger, the end connected to the black probe is the cathode. If the measured reverse resistance is small, it means that the diode is short-circuited, on the contrary, if the forward resistance is large, it means that the tube is open. In both cases, the diode can’t be work normally.(3) Silicon diodes generally have a forward voltage drop of 0.6V~0.7V, and the forward voltage drop of a germanium diode is 0.IV~0.3V. By measuring the forward voltage of the diode, it can be judged that the tested diode is a silicon tube or a germanium tube. This method is to connect a resistor (lkΩ) behind the power supply, and then connect with the diode according to the polarity characteristic to make the diode forward conducting. At this time, use a multimeter to measure the tube voltage drop. In addition, it is more convenient if it is used in energized dynamic measurement. 2.3 Testing Methods of Types of DiodesZener DiodesHow to test a Zener diode? The following here is to give some ideas.(1) Generally use the low-resistance block to test the Zener diode with a multimeter. Since the battery in the meter is 1.5V, this voltage is not enough to make the Zener diode reverse breakdown. So the forward and reverse resistance should be the same as a normal diode.(2) Measurement of the voltage stabilization value Vz of the Zener diode. When measuring diode, the power supply voltage must be greater than the stable voltage of the tube under test. In this way, the high-resistance block of the multimeter (R×10k) must be used. At this time, the battery in the meter has a higher voltage. When the multimeter's range is set to high barrier, measure diode reverse resistance. If the measured resistance is Rx, the voltage regulation value of the Zener diode is:In the formula, n is the override of the gear used. For example, if the highest electrical barrier ofR0 is the central resistance of the multimeter.E0 is the highest battery voltage value of the multimeter used.Example: Use an MF50 multimeter to measure a 2CW14 diode.R0=10Ω, the highest electrical barrier is R×10k.E0=15V, the measured reverse resistance is 75kΩ, then its voltage regulation value is:If the measured resistance is very large (close to infinite), it means that the voltage Vz under test is greater than E0, therefore, tube will not break down. If the measured resistance is very small (0 or only a few ohms), it means that the test probes are connected reversely, and then just swap the test probes. Light-emitting Diodes (LED)A light-emitting diode is a semiconductor device that converts electrical energy into light energy. It has the characteristics of small size, low working voltage and low working current.(1) There is a PN junction inside the light-emitting diode, so LED has the same characteristic of unidirectional conductivity. Its detection is similar to the measurement of ordinary diodes.(2) Use the R×1k or R×10k gear, and the forward and reverse resistance values are measured. Generally, the forward resistance is less than 50kΩ, and the reverse resistance is greater than 200kΩ.(3) The working current of the light-emitting diode is an important parameter. If the working current is too small, the light-emitting diode will not light up, and it is too large, the light-emitting diode will be easily damaged.(4) The forward turn-on voltage of the light-emitting diode is 1.2V ~ 2.5V, and the reverse breakdown voltage is about 5V. PhotodiodesPhotodiode is a semiconductor device that can convert light intensity into electrical signals.(1) There is a window on the top of the photodiode that can inject light, and the light irradiates the die through it. Under the excitation of the light, a large number of photoelectric particles are generated in the photodiode, which greatly enhances its conductivity and reduces internal resistance.(2) The photodiode is similar to the Zener diode. It also works in the reverse state, with reverse voltage.(3) The forward resistance of the photodiode does not change with the light. Its reverse resistance is larger when there is no light, and becomes smaller when it is exposed to light. That is, the stronger the light, the smaller the reverse resistance. Without light, the reverse resistance will return to the original value.(4) According to the related principle, use a multimeter to measure the reverse resistance of the photodiode. Change the light intensity when measuring, and observe the change of the reverse resistance of the photodiode. If there is no change or less change of the reverse resistance when light changes, it indicates that the tube has failed. High-speed Switching DiodesThe method of detecting high-speed silicon switching diodes is the same as that of ordinary diodes. The difference is that the forward resistance of this tube is relatively large. Measuring with Rxlk block, the forward resistance value is 5k ~ 10k in general, and the reverse resistance value is infinite. Fast Recovery Diodes / Ultrafast Recovery DiodesDetecting fast recovery and ultra-fast recovery diodes with a multimeter is basically the same as that of detecting plastic-encapsulated silicon rectifier diodes. That is, first use the Rxlk block to test its unidirectional conductivity. Generally, the size of forward resistance is about 4 ~ 5k, and the reverse resistance is infinite. And then use the Rxl block to repeat the test, at this time, the forward resistance is several ohms, and the reverse resistance is still infinite. DIAC (Diode for Alternating Current) DiodesUse the Rxlk block, and measure the forward and reverse resistance values of diac, which should be infinite. If the test probes are exchanged to measure, the pointer swings to the right, which indicates that the test tube has a leakage fault. Another method is placing the multimeter in the DC voltage block. During the test, shake the megohmmeter, and the voltage value indicated by the multimeter is the VBO value of the tube. Then change the two pins of the tested tube, and measure the VBR value in the same way. Finally, compare VBO and VBR. The smaller the difference between the absolute values of the two, the better the symmetry of the diac diode. TVS DiodesFor the dual TVS, resistance values between the two pins should be infinite when the red and black test probes of multimeter are exchanged at random. Otherwise, the tube has poor performance or has been damaged. High-frequency Varistor Diodesa. Identify Diode PolarityThe difference between high-frequency varistor diodes and ordinary diodes is that their color code is different. It is generally black of ordinary diodes, while high-frequency varistor diodes’ is light. Its polarity rule is similar to that of ordinary diodes. That is, the end with the green ring is the cathode, otherwise it is the anode.b. Measure Forward and Reverse ResistanceThe specific method is the same as the method of measuring ordinary diodes. Using the Rxlk block of a AM-500 multimeter, the forward resistance is 5k~55k, and the reverse resistance is infinite. Varactor DiodesUsing Rx10k block, no matter how the red and black test leads are exchanged for measurement, the resistance between the two pins of the varactor diode should be infinite. During the measurement, if the multimeter swings slightly to the right or the resistance value is zero, it means that the varactor diode under test has a leakage fault or has been broken down. No matter the loss of varactor diode capacity or internal open-circuit fault, it is impossible to detect them with a multimeter. When necessary, the replacement method can be used for inspection to make judgment. Infrared Light Emitting Diodes (IRED)Put the multimeter in the Rxlk block and measure the forward and reverse resistance of the IRED diode. Generally, the forward resistance should be about 30k, and the reverse resistance should be above 500k. It means the tube can work normally. The larger the reverse resistance, the better. IR Receiver Diodesa. Appearance Identification: Diode Cathode / Anode(1) Common infrared receiving diodes are black in appearance. In addition, there is a small oblique plane at the top of the tube body of the infrared receiving diode. Usually, the pin with one end of the oblique plane is the negative pole and the other end is the positive pole.(2) Use the Rxlk block to test the resistances between two pins. When a diode works normally, the resistance value of two pins are different. And exchange the test leads several times to get some pairs of values. According to the smaller resistance value, the pin connected to the red probe is the cathode, and the pin connected to the black probe is the anode.b. Performance DetectionUse a multimeter to measure the forward and reverse resistance of the infrared receiving diode. According to the resistance values, whether the diode is damaged can be judged preliminarily. Laser DiodesUse the Rxlk block of multimeter, and determine the order of the pins of the laser diode according to the method of detecting ordinary diodes. Because the forward voltage drop of the laser diode is larger than that of the ordinary diode, when detecting the forward resistance, the pointer of the multimeter is slightly deflected to the right, and the reverse resistance is infinite. Unijunction Transistor (UJT)a. Discrimination of ElectrodesBased on the R×1k block, use two meter pens to measure the forward and reverse resistance between any two of the three electrodes ( base B1 and base B2, and emitter E) of the ujt diode. The measured resistance values between the two electrodes are both 2~10kΩ, in addition, B1 and B2 will be different.b. Performance JudgmentThe performance of an ujt diode can be judged by measuring whether the resistance between its pins is normal. Use the R×1k barrier, the black test lead connect to the emitter E, and the red test lead connect to the two base electrodes in turn. Normally, a resistance value should be several thousand to ten thousand ohms. On the contrary, the red test lead connects to the emitter E, and the black test lead connects to the two base electrodes in turn, and the resistance should be infinite under normal conditions. The forward and reverse resistance values between the two bases are both in the range of 2~10kΩ. If they differ greatly from the normal value, the diode is damaged. Ⅲ Example Analysis3.1 Test a Diode in Circuita. Diode Test UsingAnalog MultimeterThe following measurements are all based on silicon diodes. If it is a germanium diode, the forward and reverse resistance of the diode will decrease.1) Measure forward resistance FRThe following figure is a wiring schematic diagram for measuring the forward resistance of a diode with an analog multimeter:Give the result as follows:IndicatorDescriptionUse the R×1k block to measure the diode, the forward resistance is several thousand ohms, and the pointer indicates stability. If the pointer swings slightly, it indicates that the thermal stability of the diode is poor.If the pointer indicates hundreds of kiloohms when measuring the forward resistance, it means that the diode is open.If the pointer indicates tens of kiloohms, it indicates that the diode has a large forward resistance and poor diode performance. Description of measurement of forward resistance:Forward Resistance (FR)DescriptionThousands of ohmsNormalZero or much less than a few thousand ohmsBreakdownHundreds of kilosLarge FR, the diode is openDozens of kilohmsLarge FR, bad forward characteristicsThe pointer is unstablePoor stability 2) Measure reverse resistance RRThe following figure is a wiring schematic diagram for measuring the reverse resistance of a diode with an analog multimeter:Give the result as follows:IndicatorDescriptionWhen measuring the reverse resistance, the value should be several hundred kiloohms. The larger the resistance value is, the better the indicator should be stable.If the reverse resistance is only a few thousand ohms, it means that the diode has broken down and has lost its unidirectional conductivity. Description of measurement of reverse resistanceReverse ResistanceDescriptionHundreds of kilosNormalZeroBreakdownMuch less than a few hundred thousand ohmsDiode’s reverse characteristic is not good.Pointer does not moveThe diode is open. Note: The reverse resistance of some diodes is very large, at this time, it is not certain that the diode is open, so that its forward resistance should be measured. If the value is normal, it means that the diode is not open.Pointer is unstableThe pointer cannot be stabilized at a certain resistance value during measurement, indicating that the diode has poor stability. 3.2 Power-off and Power-on Testing MethodsDiode in-circuit measurement is divided into two situations: Power-off and Power-on statea. Power-off MeasurementThere are something should be noted the method of this test.The influence of the external circuit on the test result is the same as the resistance and capacitance measured of internal circuit. And the influence of the measured forward resistance by the external circuit is lower than the reverse resistance.If there is any doubt about the measuring result, the diode should be removed from the circuit and measured separately. b. Power- on MeasurementWhen the circuit board is powered on, the test point is the tube voltage drop. Because the diode has a very important characteristic: when it is turned on, the tube voltage drop is basically unchanged. So the voltage drop is normal after being turned on, that is to say, the diode is normal.Measurement method: The diagram below shows the connection diagram of the tube voltage drop after the diode in the DC circuit. Setting multimeter in DC voltage 1 V block, the red probe is connected to the cathode of the diode, and the voltage indicated is the forward voltage drop of the diode. Diode forward voltage drop measurement results are analyzed as follows:DiodeDescriptionSilicon diode0.6VThe diode is normal and in a forward conducting state.> 0.6VThe diode is not in the conducting state.Close to 0The diode is in a breakdown state, the current in the loop will increase.Germanium diode0.2VThe diode is normal and in a forward conducting state.> 0.2VThe diode is off or is faulty.Close to 0In the breakdown state, the loop current increases significantly, without unidirectional conductivity. 3.3 ConclusionThe following points should be noted when measuring diodes:1) The diode in AC is in the cut-off state, because the diode is in the reverse state, and the reverse voltage at both ends is very large. The average voltage across the diode measured by the DC block is negative at this time.2) Use different blocks of the same multimeter to measure positive and negative resistance of one diode, their values will different. The forward and reverse resistances of the same diode measured with different multimeters are also different.3) When measuring the forward resistance of a diode, if the pointer cannot stop at a certain resistance value and constantly swings, it indicates that the thermal stability of the diode is not good.4) Some multimeters will provide a “diode check” function that displays the actual forward voltage of the diode when its conducting current. Such meters typically indicate a slightly lower forward voltage than what is “nominal state” for a diode, due to the very small amount of current used during the measurement. Frequently Asked Questions about Diode Test1. What is a diode test?A diode is best tested by measuring the voltage drop across the diode when it is forward-biased. ... A multimeter's Diode Test mode produces a small voltage between test leads. The multimeter then displays the voltage drop when the test leads are connected across a diode when forward-biased. 2. How do you test a rectifier diode?Touch the red (positive) probe of the multimeter to the positive terminal of the diode closet to the welder case interior. Touch the black (negative) probe of the multimeter to the negative terminal of the same diode. The multimeter should read a resistance between 0 and 1 ohm, or the diode is faulty. 3. How can you tell if a diode is positive or negative?Sometimes it's easiest to just use a multimeter to test for polarity. Turn the multimeter to the diode setting (usually indicated by a diode symbol), and touch each probe to one of the LED terminals. If the LED lights up, the positive probe is touching the anode, and the negative probe is touching the cathode. 4. How do you test a Schottky diode?Connect the red positive test lead to the anode of the Schottky diode and the black common test lead to the cathode of the diode. Listen for a “beep” or a “buzz” from the multimeter. If the Schottky diode responds as expected, the multimeter will sound a tone. 5. Can I test a diode in circuit?A diode is best tested by measuring the voltage drop across the diode when it is forward-biased. A forward-biased diode acts as a closed switch, permitting current to flow. A multimeter's Diode Test mode produces a small voltage between test leads. ... Voltage may be present in the circuit due to charged capacitors. 6. How do you check a diode?Diode PolarityThe polarity of both diodes is indicated with a stripe on one end of the body. The stripe corresponds to the line in the schematic symbol, indicating the cathode. The other end (no stripe) is the anode, indicated by the triangle in the schematic symbol. 7. What happens when a diode fails?However, a failed diode can short out too. In this case, the diode will exhibit a small resistance in both directions. The common reasons for a diode failure are excessive forward current and a large reverse voltage. Usually, large reverse voltage leads to a shorted diode while overcurrent makes it fail open. 8. How can you tell if a diode is blown?Turn the dial to “diode test” mode.This level of current is high enough to produce a reading, yet not so high that the diode will fail. It may also be labeled as “diode check” on your multimeter and is usually indicated by a small diode symbol. The diode symbol will look like a triangle pointing towards a line.
kynix On 2020-10-30   22465
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   7119

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 reserved.