The Kynix Components
Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips
I. IntroductionThe heart rate is a key indicator value reflecting the health of the body. Simply put, the heart rate refers to the frequency of cardiovascular beats within 1 minute. The test of heart rate can show scientific evidence in work such as disease diagnosis, patient care, and athlete training. In recent years, many medical types of equipment and fitness equipment developed and manufactured by countries around the world have adopted heart rate test power circuits. The low cost of product development and high-performance heart rate test power circuits have important application values. The article introduces this kind of heartbeat rate detection system based on AD620 integrated IC in detail. Using the excellent low-noise characteristics of AD620 integrated IC, plus effective filtering and amplifying circuits, combined with microprocessor solutions, a high-precision heart rate monitoring system is obtained.Figure 1 AD620CatalogI. IntroductionII. AD620 ChipIII. Circuit Design3.1 Block Diagram3.2 Signal Extraction Circuit Based on AD6203.3 Filter Amplifier Circuit3.4 Microprocessor Circuit3.5 Experimental Results and DiscussionIV. ConclusionFAQOrdering & Quantity II.AD620 chip AD620 is a low-cost, high-precision instrumentation amplifier. It only needs an external resistor to set the gain, and the gain range is 1 to 10000. In addition, AD620 adopts 8-pin SOIC and DIP package, the size is smaller than the discrete circuit design, and the power consumption is lower, so it is very suitable for battery-powered and portable applications. Its characteristics are as follows: EASY TO USE Gain Set with One External Resistor (Gain Range 1 to 10,000) Wide Power Supply Range (±2.3 V to ±18 V) Higher Performance than Three Op Amp IA Designs Available in 8-Lead DIP and SOIC Packaging Low Power, 1.3 mA max SupplyLOW NOISE 9 nV/√Hz, @ 1 kHz, Input Voltage Noise 0.28 µV p-p Noise (0.1 Hz to 10 Hz)EXCELLENT DC PERFORMANCE (B GRADE) 50 µV max, Input Offset Voltage 0.6 µV/°C max, Input Offset Drift 1.0 nA max, Input Bias Current 100 dB min Common-Mode Rejection Ratio (G = 10)EXCELLENT AC SPECIFICATIONS 120 kHz Bandwidth (G = 100) 15 µs Settling Time to 0.01% III. Circuit Design 3.1 Block Diagram The surface of the human skin contains human ECG, EMG, and power frequency signals. Generally, the noise of the ECG signal containing heart rate information is much smaller than that of the power frequency signal. In order to extract the weak ECG signal, a low-noise operational amplifier must be used and a reasonable filter amplifier circuit must be designed. Figure 2 is a block diagram of the heart rate detection system. The whole heart rate detection system consists of four parts: the sensor head in contact with the human skin surface, the signal extraction circuit, the filter amplifier circuit, and the microprocessor circuit. The sensor head is generally a metal that is easy to conduct electricity. After contacting the surface of the human skin, it has complex electrical signals such as human ECG signals, electromyographic signals, and power frequency signals. We use the low-noise AD620 operational amplifier as the core chip of the heartbeat rate extraction circuit. In the filtering and amplifying circuit part, a simple low-pass filtering circuit is used. The experimental results show that this filtering circuit is sufficient to extract the heart rate signal. After filtering the amplified signal, an adjustable comparator combined with a transistor circuit is used to form a 5 volt TTL level signal, and finally connected to the microprocessor, the heartbeat signal is processed by the microcomputer, and the heartbeat rate is calculated and displayed.Figure 2 Block diagram of heart rate detection principle 3.2 Signal Extraction Circuit Based on AD620 AD620 operational amplifier, usually used in high-precision test instruments, the maximum nonlinear error of 40ppm, the maximum voltage offset of 50uV, the maximum temperature drift of 0.6uV/℃, because of its low noise, low bias current, low power consumption characteristics, it is widely used in medical fields such as electrocardiogram (ECG) and blood pressure monitoring. Figure 3 is a signal extraction circuit based on AD620, in which the LEFT_ARM, RIGHT_ARM, LEG three leads are connected to the aluminum sheet (ie the sensor head), which are respectively connected to the left and right hands and right feet of the human body. Our experimental research results show that the R4 gain of LEFT_ARM is 1K, the corresponding AD620 operational amplifier gain is 50. Too much gain will weaken the final signal-to-noise ratio, so the R4 resistance value should be set reasonably in the experiment. The 0.1uF capacitance between the LEFT_ARM and RIGHT_ARM leads is to effectively weaken the power frequency noise. The LEG lead is connected to AD620 through TL082A, which provides the reference potential of the human body for the differential signal of LEFT_ARM and RIGHT_ARM.Figure 3 Signal extraction circuit based on AD620 3.3 Filter Amplifier Circuit Figure 4 is a filter amplifier circuit. Three operational amplifiers constitute a three-stage amplification, each amplifying 100 times. Due to circuit loss, especially the loss of the isolation capacitor, the actual signal amplification is less than 1 million times. The ratio of the resistance values of R6 and R5, R9 and R8, R11 and R10 in the circuit determines the magnification factor, and these resistance values should be adjusted reasonably in practical applications. A low-pass filter circuit should be used while amplifying the signal to achieve the effect of filtering power frequency noise. Since the frequency of the power frequency noise is 50Hz, the designed filter circuit has a passband bandwidth of less than 50Hz, that is, the RC time constant of the capacitor resistor must be of the same order of magnitude as the power frequency signal period. R7 and C10 in the circuit form a low-pass filter. We use 1uF capacitor isolation between levels of amplification. These capacitors will attenuate the signal at the same time, and the three operational amplifiers are selected for signal amplification, so the signal-to-noise ratio is improved. It should be pointed out that if the isolation capacitor is too large, it is easy to cause the output electrical signal to drift.Figure 4 Filter amplifier circuit Figure 5 is the shaping circuit. The heartbeat rate signal and signal-to-noise ratio of the 2ND_OUT lead are large enough (the pulse rate of the heartbeat rate is 1 ~ 5V), after the half-wave shaping of D1, then the adjustable comparator, and finally the transistor Q1 is converted to the microcontroller level.Figure 5 Shaping circuit 3.4 Microprocessor Circuit The final signal is processed by AT89C51, and the heart rate is displayed by an LED digital tube. The microprocessor circuit with AT89C51 as the core is very mature, so it's no need to repeat it here. 3.5 Experimental Results and Discussion Figure 6 shows the actual measurement results of the human heart rate using the above system. Figure 6(a) is the voltage signal after the signal 2ND_OUT is shaped by D1. It can be seen from the figure that this is actually a complete ECG signal. In a cycle of signals, there are two more obvious pulse signals. This pulse characteristic varies from person to person. It is found that there is at least one pulse signal through actual measurement of the ECG signals of different people. Figure 6(b) shows the electrical signal of HEART_PULSE, which is obtained after the signal of Figure 6(a) passes through the comparator and the transistor switch. The signal can be directly input to the port of the microprocessor, and the microprocessor calculates and outputs the heart rate.Figure 6 Heart rate signal diagram When developing the above-mentioned heart rate detection system, there are several key points to pay special attention to: (1) Connecting capacitors to LEFT_ARM and RIGHT_ARM can greatly improve the signal-to-noise ratio; the main energy of the heart rate signal on LEFT_ARM and RIGHT_ARM is at a frequency of about 1 Hz, and the capacitor is a low-pass filter that can filter and suppress noise; Choose a large capacitor to eliminate high-frequency noise. In the experiment, a 10uF non-polar capacitor is used, and the effect is very good; (2) The low-pass filter circuit effectively weakens the power frequency signal and improves the signal-to-noise ratio; it adopts a combination of active filtering and passive filtering to filter while amplifying, which has a better effect than filtering after amplification; (3) Capacitor isolation attenuation and multi-stage amplification are beneficial to improve the signal-to-noise ratio; the main noise is 50Hz power frequency signals. Although the multi-stage amplification and filtering increase thermal noise, it has great suppression of power frequency noise. Of course, the number of amplification stages cannot be infinite, and the best number of stages is the minimum sum of power frequency noise and thermal noise; (4) Small capacitor isolation should be used to suppress DC signal drift. This is shown by the experimental results, and the reason needs to be further studied. IV. Conclusion This article discusses a scheme based on AD620 chip heart rate detection and introduces the circuit design of the sensor head, signal extraction, filter amplification, and microprocessor that make up the system. Gives the method to improve the system performance. Experiments show that the system can obtain better ECG signals and accurate heart rates. The heartbeat rate detection system in this article has strong anti-interference ability, simple structure, and low cost.FAQWhat is obtained using the low-noise characteristics of AD620 integrated IC?High-precision heart rate monitoring systemWhat package does AD620 adopt?8-pin SOIC and DIPWhat type of test instruments are AD620 operational amplifier usually used?High-precision test instrumentsWhat is AD620?AD620 is a low-cost, high-precision instrumentation amplifier. It only requires an external resistor to set the gain. The gain range is 1 to 10,000.Can I change AD620 to AD623 when making MCU products?Both AD620 and AD623 are single instrumentation amplifiers, and the pin arrangement is exactly the same.The main difference is: AD620 must use positive and negative power supplies, AD623 can be a positive and negative power supply or a single power supply.If the original board is AD620, you can replace it with 623; if the original board is AD623, you may not be able to replace it with 620 (it depends on whether the power supply of the original board circuit is dual power supply or single power supply).After replacing AD620 and AD623 in single-chip products, the program can work normally without modification.What is the difference between AD620BR and AD620AN?Their packages are different.What is the output resistance of AD620? How to adjust it?AD620 is a kind of low power consumption instrument amplifier, its output resistance is about 10K, this is the inherent characteristic of this chip, generally it is difficult to adjust.If you have requirements for output resistance, you can generally use an external circuit to solve it.Is AD620 a positive phase amplification or a reverse phase amplification?AD620 is an instrument amplifier, the output voltage is [(Vin+)-(Vin-)]*gain.If the desired signal is (Vin+)-(Vin-), the gain is positive, which is equivalent to positive amplification.Conversely, if the desired signal is (Vin-)-(Vin+), the gain is equivalent to negative, which is equivalent to reverse amplification.What is an instrumentation amplifier?Instrumentation amplifier, an improvement of the differential amplifier, has an input buffer, does not require input impedance matching, so that the amplifier is suitable for measurement and electronic instruments
kynix On 2022-02-24
I DescriptionThis blog introduces and analyzes 4 simple and easy 74LS00 Nand Gate circuit diagrams. It’s including Square Wave Generator Circuit, Pulse Generator Circuit, LED Light Circuit. And in the end, we will analyze the circuit that turns the timer into a countdown timer in detail.This Video is An Introduction of 7400 Logic DevicesCatalogI DescriptionII Square Wave Generator CircuitIII Pulse Generator CircuitIV LED Light CircuitV Turn Timer into Countdown Timer5.1 Scheme Design5.2 Implementation of Scheme DesignFAQOrdering & QuantityII Square Wave Generator CircuitLet’s take a look at the figure below. It’s a square wave generator circuit. This circuit contains a 74LS00 Nand Gate integrated circuit. Figure 1. Square Wave Generator Circuit Diagram Among this circuit diagram:NAND gates 1, 2, and external RC time constant components form an oscillator circuitNAND gate 3 is a buffer output stage.As long as the capacity of C is changed, square wave outputs of different frequencies can be obtained.III Pulse Generator CircuitFigure 2. Pulse Signal Generator Circuit DiagramThe circuit diagram is shown in Figure 2 and it’s a simple pulse signal generator circuit. The signal generator mainly uses two TTL integrated circuits (74LS00 and 74LS221 ). So why choose these two circuits? That is because these two circuits can be used to generate a pulse signal of τ=4μs. Besides, it uses fewer components and is convenient for debugging and maintenance.IV LED Light CircuitThis circuit is made with NE555, 74LS00, 74LS154, 74LS193, and LED lights, and the production process is very simple. When we turn on the power, here is how it works is:When the output Q0 of the 74LS154 decoder is low, the 74LS193 is a positive counter. At this time, the LEDs are individually lit from D1...D16;When the output Q15 of the 74LS154 decoder is low, the 74LS193 is a countdown counter. At this time, the LEDs are individually lit from D16...D1.Figure 3. LED Light Circuit DiagramFrom the above we can see that: the LED lights turn on from D1 to D16, and then back to D1 from D16, and so on.V Turn Timer into Countdown TimerGenerally, there are two design ideas for turning a timer into a countdown timer: First, change the counting chip in the timer; Second, reset the function of the chip.Besides, there is actually another way to achieve this goal: By applying the 74LS00 and 74LS20 chips to "reverse" the results on the display, so as to achieve the purpose of counting down.5.1 Scheme DesignThe result displayed by each digit of the timer is an incremental value, such as 0.1.2.3.4.5.6.7.8.9. Yet, the countdown timer displays a decreasing value, such as 9.8.7.6.5.4.3.2.1.0. As long as the display result conversion is completed with a suitable logic circuit, the timer can be turned into a countdown timer.At first, we need to find the logical relationship between the timer display result and the countdown timer display result. Table 1 below lists the BCD codes corresponding to each display result of the timer and countdown timer. From this table, you can easily find the BCD codes of the timer and countdown timer:The lowest bit Q1 and Y1 are opposite; While Q2 and Y2 are the same;Relationship between Q3 and Y3: Y3 of the countdown timer is the exclusive OR of timer Q3 and Q2;Relationship between Q4 and Y4: The Y4 bit of the countdown timer is the opposite value of the OR of Q4, Q3, and Q2 of the timer, which is also equal to the non-re-AND of Q4, Q3, and Q2.Table 1. Corresponding BCD Code Displayed by (Down)Timer The above logical expression is:Therefore, as long as you choose a circuit that can complete the above logic conversion relationship, you can realize the design from a timer to a countdown timer. The figure? shows a two-digit timer circuit. After adding the above conversion circuit, it becomes figure 3 shows the countdown circuit. Figure 4. Timer Circuit Displaying 2 Digits Figure 5. Countdown Circuit Diagram5.2 Implementation of Scheme DesignTwo kinds of chips 74LS00 and 74LS20 are used here. The former are four two-input NAND gates, which are used to complete the conversion of Y1 and generate the negation of Q4, Q3, and Q2. The latter are two four-input NAND gates, which are used to obtain Y4 from the non-reAND of Q4, Q3, and Q2. In summary, we can follow the logical relationship as follows: The logic diagram is shown in Figure 6.Figure 6. Logic DiagramKnowing that the XOR gate operation can be completed, the Y3 conversion can be completed. The connection circuit diagram of the above-mentioned Y4, Y3, Y1 conversion specific physical objects is shown in Figure 7. Figure 7. Y4, Y3, Y1 Conversion Specific Physical Connection DiagramFigure 8 shows the actual picture of the countdown timer.Figure 8. Countdown TimerSo far, the timer has become a countdown timer. Through this design method, there is no need to change the original counter circuit, is it particularly trouble-free? FAQ1.What is a 74LS00?74LS00 is NAND gates-based IC. It has 14 pins which all connected with 4 NAND gates. Due to the NAND gate known as universal gate, 74LS00 can be converted into OR and NOT gate easily. The IC comes in three packages, SOIC, PDIP, and SOP. 2.What is NAND logic gate?In digital electronics, a NAND gate (NOT-AND) is a logic gate which produces an output which is false only if all its inputs are true; thus its output is complement to that of an AND gate. 3.What is a 74LS08?74LS08 is a Quadruple 8-bit Two Input AND IC. Gate AND gate is a digital circuit used to convert the logic state to a specific logic. In AND gate two logics state signals are used.
kynix On 2022-02-24
TL082 is an Op Amp IC. In detail, it is a high speed JFET input dual operational amplifier. High speed, low cost, this device comes with an internal trimmed offset voltage. It is available with a fast slew rate, a large bandwidth gain, and a low power supply.This blog provides you with a basic overview of the TL082 op-amp, including its pin descriptions, functions and specifications, producers, etc., to help you quickly understand what TL082 is. If this blog can be helpful to you, we will be very honored. Of course, if you have any questions, do not hesitate to leave your comments.Circuits: Magnet Motion Detector using TL082 Op-AmpCatalogTL082 PinoutTL082 CircuitTL082 ApplicationsTL082 FeaturesTL082 AdvantageTL082 PackageTL082 ParametersTL082 ManufacturerTL082 DocumentsComponent DatasheetFAQTL082 Pinout TL082 CircuitSchematic for Inverting Amplifier Application100-kHz Quadrature OscillatorTL082 Functional Block DiagramTL082 Applications• Solar energy: string and central inverter• Motor drives: AC and servo drive control and power stage modules• Single phase online UPS• Three phase UPS• Pro audio mixers• Battery test equipmentTL082 Features• Wide common-mode Rejection ratio of 70dB to 86dB and wide voltage supply range• A low input bias current• Less Power Requirement• Internal frequency compensation• Supply current is 1.4mA which is very low• Low offset current• No requirement of a latch• High input impedance JFET input stage• Short-circuit protection for output• A large gain bandwidth of 3MHz• High input impedance• Slew rate is high typically 16 V/µs• Operating temperature range is from –55 °C to +125 °CTL082 AdvantageTL082 Op Amp• The TL082 is a high-speed, low-cost, wide-bandwidth dual JFET input operational amplifier.• The component has an internally trimmed offset voltage. It has a fast slew rate and low supply current.• This JFET input device can be extended with low offset and input bias currents.• The TL082 is electrically compatible with the LM1558 and is used to improve the overall performance of the LM1558 device.• With high input impedance and low total harmonic distortion, this device features low noise and offset voltage drift.• The amplifier is widely used in audio preamplifiers, sample-and-hold amplifiers and peak detectors, and active filters.TL082 PackagePDIP (P)SO (PS)SOIC (D)TSSOP (PW)TL082 ParametersNumber of channels (#)2Total supply voltage (Max) (+5V=5, +/-5V=10)30Total supply voltage (Min) (+5V=5, +/-5V=10)7Rail-to-railIn to V+GBW (Typ) (MHz)3Slew rate (Typ) (V/us)13Vos (offset voltage @ 25 C) (Max) (mV)6Iq per channel (Typ) (mA)1.4Vn at 1 kHz (Typ) (nV/rtHz)18RatingCatalogOperating temperature range (C)-40 to 85, 0 to 70Offset drift (Typ) (uV/C)18FeaturesStandard AmpsInput bias current (Max) (pA)200CMRR (Typ) (dB)86Output current (Typ) (mA)10ArchitectureFETTL082 ManufacturerTexas Instruments Inc. (TI) is an American technology company that designs and manufactures semiconductors and various integrated circuits, which it sells to electronics designers and manufacturers globally. Its headquarters are in Dallas, Texas, United States. TI is one of the top ten semiconductor companies worldwide, based on sales volume. Texas Instruments’ focus is on developing analog chips and embedded processors, which accounts for more than 80% of their revenue. TI also produces TI digital light processing (DLP) technology and education technology products including calculators, microcontrollers and multi-core processors. To date, TI has more than 43,000 patents worldwide.TL082 DocumentsWhat is an op amp?How to lay out a PCB for high-performance, low-side current-sensing designsCompensation Methodology for Error in SK Low-Pass Filter, Caused by Limited GBW Component DatasheetTL082 DatasheetFAQWhat is TL082?Op Amp IC What type of amplifier does TL082 come with?High speed JFET input dual operational amplifier What is the TL082 compatible with?LM1558 What does the TL082 have?Fast slew rate and low supply current
kynix On 2022-02-24
MCP3008 is a low cost 8-channel 10-bit analog to digital converter. This blog covers the detailed information of the MCP3008 A/D converter, including its pinout, parameter, features, where and how to use it, etc, Raspberry Pi setup tutorial video will be attached down below as well.This is a basic tutorial of how to setup an Analog to Digital Converter (MCP3008) with the Raspberry Pi.CatalogMCP3008 DescriptionMCP3008 PinoutMCP3008 FeaturesMCP3008 ParameterMCP3008 Functional Block DiagramMCP3008 Equivalent &AlternativeWhere to use MCP3008How to use MCP3008MCP3008 Simple Interfacing ExampleMCP3008 ApplicationMCP3008 PackageMCP3008 ManufacturerComponent DatasheetFAQMCP3008 DescriptionMCP3008 is a 10-bit Analogue to Digital converter having eight single-ended input channels. It has a 4-wire serial SPI-compatible interface that is used to get digital output for all channels. It has an onboard sample and holds circuitry. It provides both analog and digital ground connections which help in noise reduction. It is ideal for use in embedded systems applications. MCP3008 is programmable to provide four pseudo-differential input pairs or eight single-ended inputs. Differential Nonlinearity (DNL) and Integral Nonlinearity (INL) are specified at ±1 LSB. Communication with the devices is accomplished using a simple serial interface compatible with the SPI protocol. The devices are capable of conversion rates of up to 200 ksps. MCP3008 devices operate over a broad voltage range (2.7V - 5.5V). Low-current design permits operation with typical standby currents of only 5nA and typical active currents of 320 µA. The MCP3004 is offered in 14-pin PDIP, 150 mil SOIC and TSSOP packages, while the MCP3008 is offered in 16-pin PDIP and SOIC packages.MCP3008 PinoutMCP3008MCP3008 Pinout Pin NumberPin NameDescription1-8CH0 to CH7These are the analog inputs for channel 0 to channel 7. These channels can be configured as four single-ended inputs or two pseudo-differential pairs. In pseudo-differential mode, each channel pair are programmed as the IN+ and IN- inputs by sending a serial command string.9DGNDThis is the digital ground pin which is linked internally to the digital circuitry of chip.10CS`/SHDNIt is a Chip Select pin. This pin is used to initiate communication with the device by connecting it to low logic level. If it is already low, then it should be pulled to high and then low for initiating communication. When it is pulled to high logic, it will end a conversion.11DinThis is the input pin for serial data.12 DoutIt is the serial data output used for SPI communication. On every falling edge of clock signal, data will change, and this converted data is shifted out on this pin.13 CLKIt is a serial clock signal used to initiate a conversion and sends each bit out as conversion takes place14AGNDIt is the analog ground pin which is connected internally with analog circuitry. It is connected to the reference voltage.15 VREFIt is connected to the reference voltage and is used to determine the range of analog voltage.16VDDIt is the connection for applying a positive voltage to the circuit.MCP3008 Features10-bit resolution± 1 LSB max DNL± 1 LSB max INL4 (MCP3004) or 8 (MCP3008) input channelsAnalog inputs programmable as single-ended or pseudo differential pairsOn-chip sample and holdSPI serial interface (modes 0,0 and 1,1)Single supply operation: 2.7V - 5.5V200 ksps max. sampling rate at VDD = 5V75 ksps max. sampling rate at VDD = 2.7VLow power CMOS technology5 nA typical standby current, 2 µA max.500 µA max. active current at 5VIndustrial temp range: -40°C to +85°CAvailable in PDIP, SOIC and TSSOP packagesMCP3008 ParameterManufacturer:Microchip TechnologySeries:-Packaging:TubePart Status:ActivePackage / Case:16-DIP (0.300" 7.62mm)Supplier Device Package:16-PDIPMounting Type:Through HoleBase Part Number:MCP3008Number of Bits:10Sampling Rate (Per Second):200kNumber of Inputs:4 8Input Type:Pseudo-Differential Single EndedData Interface:SPIConfiguration:MUX-S/H-ADCRatio - S/H:ADCNumber of A/D Converters:1Architecture:SARReference Type:ExternalVoltage - Supply Analog:2.7V ~ 5.5VVoltage - Supply Digital:2.7V ~ 5.5VFeatures:-Operating Temperature:-40°C ~ 85°CMCP3008 Functional Block DiagramMCP3008 Equivalent &AlternativePCF8591, ADC0808, ADC0804, ADS11115Where to use MCP3008The MCP3008 is an 8-Channel 10-bit ADC IC, which means it can measure 8 different analog voltages with a 10-bit resolution. It measures analog voltage from 0 to 1023 and sends the result to a microcontroller or microprocessor via SPI communication. It can operate on both 3.3V and 5V, so it can be used with both 5V and 3.3V microcontrollers, such as the Raspberry Pi. It employs the SAR method to convert analog voltage to digital value; it might not the fastest or the most precise ADC on the market, but it is the cheapest and easiest to use. Some devices, such as the Raspberry Pi, lack hardware for analog to digital conversion and thus cannot read analog inputs. As a result, a circuit is required for this conversion. The MCP3008 chip can be used in such devices. For communication, this chip employs an SPI interface. The Raspberry Pi requires only four GPIO pins. Using this chip, you can get an additional 8 analog inputs. Analog outputs are used by sensors. As a result, many devices require an ADC converter to read these outputs. The MCP3008 is capable of converting analog signals to digital signals. So, if you're looking for an ADC IC with a resolution of 10-bit (0-1023), 8-channels, and a reasonable speed, this IC might be a good fit. It is very popular with Raspberry Pi because it lacks an ADC feature by default.How to use MCP3008It is made up of the well-known SAR ADC architecture technology, which includes a built-in sample and a capacitor. On the first rising edge of the clock cycle, this architecture samples with a sample/hold capacitor for 1.5 clock cycles. Following that, the ADC generates a 10-bit digital output based on the charge value of the S/H capacitor. By bringing the CS line low, communication with the MCP3008 device is initiated. The first bit received on the first clock signal (when CS is low and DIN is high) will be a start bit. This is followed by the SGL/DIFF bit, which determines whether the conversion is single-ended or differential. Following that, the next three bits, D0, D1, and D2, are used to select the channel. After receiving the start bit on the fourth rising edge of the clock, the sampling of analog inputs will begin. Down below is the detailed diagram.MCP3008 Simple Interfacing ExampleMCP3008 ApplicationSensor InterfaceProcess ControlData AcquisitionBattery Operated SystemsMCP3008 PackageMCP3008 ManufacturerMicrochip Technology Inc. is a leading provider of microcontroller and analog semiconductors, providing low-risk product development, lower total system cost and faster time to market for thousands of diverse customer applications worldwide. Headquartered in Chandler, Arizona, Microchip offers outstanding technical support along with dependable delivery and quality.Component DatasheetMCP3008 AD Converter DatasheetFAQWhat type of interface does MCP3008 have?4-wire serial SPI compatible What does MCP3008 help in?Noise reduction What type of applications is MCP3008 ideal for?Embedded systems applications What types of packages are MCP3008 offered in?16-pin PDIP and SOIC packages How many different analog voltages does the MCP3008 measure?8 different analog voltages with a 10-bit resolution What method does the MCP3008 use to convert analog voltage to digital value?SAR How many GPIO pins does the MCP3008 require?Four GPIO pins What does the MCP3008 require to read analog outputs?ADC converter
kynix On 2022-02-24
IntroductionLM386 is a low voltage audio power amplifier. LM386 adopts 8-pin double in-line plastic package with a working voltage of 4V-15V. When the power supply voltage is 12V, 300mW output power can be obtained on an 8Ω load. Various oscillators can be easily produced with LM386.CatalogIntroductonCatalogI Simplest OscillatorII Blocking OscillatorIII Electronic PianoIV Square-wave OscillatorV Sinusoidal OscillatorFAQOrdering & QuantityI Simplest OscillatorFigure 1. Circuit of Simplest OscillatorIn Figure 1, the output end and in-phase input end of LM386 are connected by piezoelectric ceramic chip HTD. The amplifier forms positive feedback and generates oscillation. Here HTD is both a feedback capacitor and a sound-generating device.Component parameters in the figure: D1~D4 are 1N4001, C1=220pF, HTD is a piezoelectric ceramic sheet with an auxiliary acoustic cavity.II Blocking OscillatorFigure 2. Circuit of Blocking OscillatorAs shown in Figure 2, a simple oscillator consists of LM386, C3, C4, and loudspeakers. RP and C2 make this oscillator produce blocking- oscillation, After connecting the power supply, LM386 does not work because the initial terminal voltage of C2 is zero, and the power supply charges C2 through RP. When the C2 charging voltage is higher than a certain value, the LM386 oscillator starts to vibrate. As the amplitude continues to increase, the current consumption of the oscillator also increases. This current flows through RP, and its voltage drop on RP also increases, causing the LM386 power supply terminal 6 pin voltage to continue to drop. Eventually, the LM386 cannot work and the oscillator stops. The power supply recharges C2 via RP again, causing the voltage at C2 to rise. When the voltage at C2 rises to a certain value, the LM386 oscillator starts again. In this way, the oscillator will produce blocking-oscillation, and the speaker emits a “beep, beep, beep” sound.Component parameters in the figure: D1~D4 are 1N4001. C1=C3=220μF,C2=47μF.C4=0.01μF,RP=4.7K.III Electronic PianoFigure 3. Circuit of Electronic PianoFigure 3 is a simple electronic piano circuit. On pin 3 of LM386, the integrated circuit has a 10KΩ resistor to ground. This built-in resistor and ten scale resistors RP1~RP10 constitute the timing resistor of the oscillator. C2 is the timing capacitor. By adjusting the values of RP1~RP10, the speakers can sequentially emit musical sounds from low octave "do, re , mi" to high octave "do, re, mi". KI~K10 are key switches.Component parameters in the figure: Cl=C3=220μF.C2=2200μFIV Square-wave OscillatorFigure 4. Circuit of Square-wave OscillatorFigure 4 shows a square-wave oscillator composed of LM386. R1 is the timing resistor. C2 is the timing capacitor. R2 and R3 provide voltage bias for LM386 in-phase input. Because the voltage at the C2 terminal cannot change abruptly, the inverting input terminal pin 2 of the LM386 is low level, and pin 5 is the midpoint of the internal OTL output stage of the amplifier. It is 1/2Voc in a static state, and it is supplied to the third-phase input pin 3 after dividing pressure via R2 and R3. Obviously, the potential of this pin is higher than the second pin. Therefore, pin 5 outputs a high level. This high-level charges C2 via R1. When the voltage of the C2 terminal is higher than the potential of pin 3, pin 5 outputs a low level. C2 discharges to pin 5 via R1. When C2 is discharged, the potential of pin 2 drops and is lower than the potential of pin 3. Pin 5 outputs high level again. In this way, the circuit forms oscillation. and the oscillation signal drives the loudspeaker to sound through C3.Component parameters in the figure: C1=C3=220μF,C2=0.33μF.R1=22K,R2=1K.R3=9.4KV Sinusoidal OscillatorFigure 5. Circuit of Sinusoidal OscillatorFigure 5 is a sinusoidal oscillator made of LM386. The circuit adopts Wien bridge oscillation mode, and the output signal distortion coefficient of the circuit is very low. The flashlamp H and the resistor R3 form a negative feedback circuit, which keeps the amplitude of the oscillator output signal stable and has low distortion. When the values of capacitors C1 and C2 are the same, the oscillation frequency of the circuit can be obtained by the formula f=1/2C1 R1R2. In actual production, H can use 3V, 15mA flashlamp.FAQWhat type of package does LM386 adopt?8-pin double in-line plastic packageWhat is the power supply voltage of LM386?12VWhat can be easily produced with LM386?Various oscillatorsHow does an LM386 work?The Lm386 integrated chip is a low power audio frequency amplifier, which uses low level power supply like batteries in electronic circuits. It is designed as 8 pin mini DIP package. This provides voltage amplification of 20. By using external parts voltage gain can be raised up to 200.Is lm386 an op amp?The LM386 is a type of operational amplifier (Op-Amp). ... In an amplifier circuit, the LM386 takes an audio input signal and increases its potential anywhere from 20 to 200 times. That amplification is what's known as the voltage gain.What is lm386 IC?The LM386 is an integrated circuit containing a low voltage audio power amplifier. It is suitable for battery-powered devices such as radios, guitar amplifiers, and hobby electronics projects.How do you calculate lm386 gain?Voltage Gain Analysis:Without any external components, it has a gain of Gv = 2x15K/(150+1350) = 20 (26 dB).With a capacitor (or shortcutting) between pins 1 and 8 , it has a gain of Gv = 2x15K/150 =200 (46dB).Which IC is used in audio amplifier?The IC LM386 is a low-power audio amplifier, and it utilizes low power supply like batteries in electrical and electronic circuits. This IC is available in the package of mini 8-pin DIP.What are some projects that use the LM386 audio amplifier circuit?LM 386 is an integrated class AB amp and is good for beginners small audio amplifier applications…for example in a RF receiver,small Stereo system,cheap low voltage amplifier etc…drawbacks is that it cannot handle much power and hence creates distortion when you crank up the volume too much.. So other ICs are used in practical.How to make an LM386 audio amplifier circuit?
kynix On 2022-02-24
Temperature setting controller is widely used in high and low voltage power distribution cabinets, terminal boxes, substations, used for real-time detection of environmental temperature and humidity changes, and the protection of power electronics devices. It is also commonly used in places requiring temperature and humidity detection and comprehensive control, such as vegetable greenhouses, granaries, etc. This paper designs a temperature setting controller which used temperature sensor AD592, lon sensor HDP 07 as a detecting component, with four channels of integrated op-amp LM324 as a core control element, it automatically measures and detect the environment temperature, control output, and gives an alarm and protect condensation, etc... It overcomes the shortcomings of existing thermocoagulation controllers that require high software knowledge for design, debugging, and maintenance personnel, complex circuit structure and large temperature response deviation, and simplifies the circuit structure.CatalogI.Control Principle of Temperature Setting ControllerII.Circuit Design 2.1 DC Voltage Regulation 2.2 Partly Design of Temperature Setting ControlIII. The text 3.1 Adjustment and Testing of Temperature Control 3.2 Adjustment and Testing of Condensation ControlIV. ConclusionFAQOrdering & Quantity I.Control Principle of Temperature Setting ControllerThe LM324 voltage comparator is used as the main control chip of the temperature condensation controller. The temperature sensor is used to convert the temperature change into the current change, and the condensation sensor is used to convert the humidity change into the resistance change. The LM324 voltage comparator controls the temperature condensation Controller to achieve alarm display and output. The principle block diagram of the temperature condensation controller based on the LM324 voltage comparator is shown in Figure 1.Figure 1: Block Diagram of LM324 Based Temperature Condensation ControllerII.Circuit DesignThe circuit design of the temperature condensation controller based on LM324 voltage comparison mainly includes the design of two parts, the DC stabilized power supply and the temperature condensation control, The main components of the controller include temperature and humidity sensors, which are connected to the control circuit board through the base through four wires of red, blue, black and yellow, and the dial connected to the control circuit board, and finally packaged by the shell. 2.1 DC Voltage RegulationThe power supply part of the temperature coagulation controller circuit designed in this paper is composed of a DC stabilized power supply module, a sensor input module, an alarm display module, a voltage comparison module, etc. Basically, all electronic products are powered by a DC power supply, and the daily grid voltage is AC 220V, so the AC power must first be converted into DC power to provide a stable DC power supply for the circuit. This thermocoagulation controller needs to provide 8V for the voltage comparison module It also provides 12V DC for the output relay module. After voltage regulation by the transformer, it is rectified by a bridge rectifier circuit composed of four diodes, filtered by a capacitor, and output by a three-terminal integrated voltage regulator. 2.2 Partly Design of Temperature Setting Control The temperature condensation control part design adopts an LM324 voltage comparator as the main control chip of the whole temperature condensation control circuit. LM324 is a four-channel integrated operational amplifier with a true differential input. It is composed of four groups of completely independent operational amplifiers. Its main function in the circuit is to compare the input voltage and the reference voltage, change the output voltage according to the level of the two-channel voltage, and perform the corresponding control output.This thermocoagulation controller uses AD592 as the temperature sensor. AD592 is an integrated temperature sensor. It is a high-performance current sensor launched by American Analog Devices, which converts temperature changes into the current. It has the advantages of small error, low cost, temperature change, and current change into linearity. Its output current is based on absolute zero (-273°C). For every 1°C increase or decrease in the ambient temperature, it will increase the output current by 1 microampere. The temperature sensor converts the temperature change into a voltage change through a voltage follower and then inputs it to the inverting input terminal of the voltage comparator. The wire-wound potentiometer is connected to the dial to provide a reference voltage and provide it to the non-inverting input terminal of the voltage comparator. If the input voltage of the LM324 voltage comparator is lower than the reference voltage, it means that the ambient temperature is lower than the setting temperature of the dial, and the voltage comparator outputs a high level. At this time, the diode displays an alarm and controls the output. Increase the temperature until the ambient temperature is higher than the settting temperature, the voltage comparator outputs a low level, and the entire temperature control process is a closed-loop system, which can quickly and sensitively control the action of the temperature condensation controller. Figure 2 is the circuit schematic diagram of the temperature control module.Figure 2: Schematic Diagram of the Temperature Control ModuleThis temperature condensation controller selects HDP-07 as the condensation sensor. HDP-07 is a new type of condensation sensor that measures or predicts the occurrence of air condensation through changes in its resistance. Its structure is to make a tree-like current on a ceramic substrate and then coat it with resin and conductive particles to form a resistive film. It has the characteristics of a typical switch-type sensor, which is extremely sensitive to high humidity and presents a high resistance state; in a low humidity environment, it reflects a low resistance state. It has the advantages of small size, short measurement period, quick response, high precision, etc. It overcomes the shortcomings of a complex structure, large volume, complex operation, and low precision of the chilled mirror condensation sensor made of traditional optical principles. It is widely used on occasions that need to control high humidity and condensation. Figure 3 is a schematic diagram of the humidity control module.Figure 3:Schematic Diagram of the Humidity Control ModuleWhen the relative humidity in the ambient temperature reaches 100%, the water vapour in the air will liquefy and condense into dew, and the equipment will malfunction due to humidity and reduce the service life. Therefore, the temperature condensation controller designed in this paper (using the HDP-07 condensation sensor) is used to detect the occurrence of condensation and eliminate it in time. The condensation sensor and the comparator constitute a zero-crossing comparator. Usually, in a low humidity environment, the resistance of the condensation sensor is very small. The sensor reflects the character of switch closure, and the comparator outputs a low level; when the ambient humidity reaches 83% at the critical value, the condensation sensor presents a high-impedance state, and the comparator outputs a high level, to control the electronic switch triode to turn on and display the alarm and control the output to reduce humidity. The temperature condensation based on the LM324 voltage comparator is used as the main control chip compared with the circuit based on software control, the control circuit has a simpler circuit structure, more convenient debugging and assembly use, and lower cost. III.The Text3.1 Adjustment and Testing of Temperature Control(1) BenchmarkTurn the dial scale to 0 degrees, clamp the red test pen of the multimeter to the middle tap of the wire-wound potentiometer, ground the black test pen, turn the multimeter to the DC voltage range, adjust the potentiometer W2, and make the voltmeter read 2.73V. (2) Linear adjustment accuracyFirst, adjust the dial scale to -30 degrees, adjust the potentiometer W2, so that the voltage reading is 2.43V; the second step, adjust the dial scale to 40 degrees, write down the value of the multimeter, if the value is greater than 3.13V, it indicates the slope is too large, then adjust the dial scale to 30 degrees, adjust the potentiometer W1 and re-adjust W2, the voltage reading is 2.43, and then adjust the dial scale to 40 degrees, observe whether the voltmeter reading is 3.13V, if not, repeat step two until the voltage reading is 2.43V. (3) Adjust the accuracy of the temperature sensorAdjust the dial scale to room temperature, adjust the potentiometer WS, so that the temperature alarm indicator diode is on, and adjust the potentiometer back and forth at this critical value, and the temperature indicator will change between on and off in a short time. (4) TestAdjust the dial scale to be lower than room temperature, the temperature condensing controller does not work; adjust the dial scale to higher than room temperature, the temperature alarm indicator of the temperature condensing controller is on, the relay is closed, and the output 220V alternating current indicates that the temperature control part is working normally. 3.2 Adjustment and Testing of Condensation ControlWhen the condensation controller detects, it can add water vapour or breathe on the condensation sensor with the mouth for about 5 seconds. The humidity alarm indicator on the controller is on, the relay is closed, and the output is 220V AC, indicating that the condensation control part can work normally. IV. ConclusionThis article summarizes the design and production of the temperature condensation controller based on the LM324 voltage comparator. The temperature coagulation controller has successfully realized temperature control and condensation generation control through the test. It has the advantages of good stability, strong anti-interference ability, wide adjustment range, high precision, and rapid response. It solves the complex circuit structure of the temperature coagulation controller. , The response accuracy is not high. Only the LM324 voltage comparator is used as the main control chip of the control circuit, which is convenient for assembly and debugging low cost, and does not need to use software control, those are the characteristics of the thermocoagulation controller. It’s suitable for technological innovation and promotion.FAQWhat is widely used in high and low voltage power distribution cabinets?Temperature setting controllerWhat is used to convert the temperature change into the current change?Temperature sensorWhat is lm324?LM324 is a Quad op-amp IC integrated with four op-amps powered by a common power supply. The differential input voltage range can be equal to that of the power supply voltage. Generally, op-amps can perform mathematical operations.Which is the difference between lm324 and lm339?The LM324 has a complementary output while the LM339 is open collector. In the complementary output, current can flow in either direction as required (either source or sink) while the open collector output can only sink current.What is op-amp used for?Operational amplifiers are linear devices that have all the properties required for nearly ideal DC amplification and are therefore used extensively in signal conditioning, filtering or to perform mathematical operations such as add, subtract, integration and differentiation.How does an op-amp work?What is lm324 used for?LM324 IC ApplicationsThe applications of IC LM324 include the following. By using this IC, conventional op-amp applications can be implemented very simply. This IC can be used as oscillators, rectifiers, amplifiers, comparators etc.What is the function of a temperature controller?A Temperature Controller is a device that is used to control a heater or other equipment by comparing a sensor signal with a set point and performing calculations according to the deviation between those values.
kynix On 2022-02-24
Join our mailing list!
Be the first to know about new products, special offers, and more.
Feature Posts
ENC624J600-I/PT microcontroller: Datasheet, Features, Application[FAQ]2023-03-07
ATMEGA1280-16AU microcontroller: Datasheet, Features, Application[FAQ]2023-03-07
STM8S207CBT6 Microcontroller: Datasheet, Features, Application[FAQ]2023-03-06
2N7002P Mosfet: Datasheet, Pinout, Features [FAQ]2021-10-21
L298N Motor Driver: Datasheet, Arduino, Circuit [Video&FAQ]2021-10-21














