Phone

    00852-6915 1330

The Kynix Components

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

Integrated Circuits (ICs)

LM393 Circuit: Simple Lithium Battery Backup

I DescriptionThis blog introduces the design of a lithium battery backup power control board based on LM393, which is simple, stable, reliable, and low-cost. It can directly output the mains voltage when there is mains power, and continuously monitor the mains voltage. Not only can this design automatically turn on the inverter within 10 ms after the mains power is off, but it also has a power management function: when the internal lithium battery voltage is lower than the set value, it will automatically charge.This Vedio introduces How Does LM393 WorksCatalogI DescriptionII Design and Working Principle2.1 Design2.2 Working PrincipleIII TestIV ConclsionOrdering & QuantityII Design and Working PrincipleThe details of LM393 based lithium battery backup circuit are as follows:2.1 Design2.1.1 Mains Power FailureWhen there is no mains power input, the control panel will turn on the inverter and output 220V AC within 10 ms of the mains power failure.2.1.2 Charging ManagementFigure 1. Function DiagramWhen there is mains input, the control board first shuts down the inverter output and switches to the mains output; then enters the charging management state (due to the feature of the lithium battery protection board, the protection board stops charging after overcharge protection. When the battery voltage When it drops to the overcharge recovery value or below, it will automatically resume charging. When there is mains input for a long time, the lithium battery charger will be repeatedly charged, which will affect the life of the lithium battery). When the lithium battery is fully charged, it will stop charging. When it drops to a certain level (this parameter is lower than the overcharge recovery value of the lithium battery protection board, the specific parameter value is adjustable) and then resume charging until it is fully charged, and repeat the above process.2.2 Working PrincipleAccording to the design requirements, the principle design of this control board is divided into two parts: lithium battery voltage detection and control, and mains voltage detection and control.The main voltage comparison part of the control board uses the dual voltage comparator integrated chip LM393. LM393 integrates 2 independent comparators, its operating power supply voltage range is wide, it can work for 2~36V when single power input, and ±1~±18V when dual power input. In addition, its current consumption is small, only 0.8mA.And what is the pinout of LM393? We can take a look at Figure 2 below:Pins 3 ,5 are the non-inverting input terminals of the two comparators respectively;Pins 2, 6 are the inverting input terminals of the two comparators respectively;Pins 1,7 are the corresponding output terminals of the two comparators respectively.Figure 2. LM393 PinoutWhen used as a basic comparison circuit, if the voltage at the non-inverting input terminal is greater than the voltage at the inverting input terminal, the corresponding output terminal outputs a high level, and vice versa. For example, when U5>U6, U7 outputs high level; when U5<U6, U7 outputs low level.2.2.1 Lithium Battery Voltage Detection and ControlLithium battery voltage detection control is shown in Figure 3.(1) Power SupplyThe power supply of the control part is taken from the lithium battery of the backup power supply, and the voltage of the control board is 12V DC. Because the lithium battery in this design is 48V, its voltage range is 32V to 54.6V, which is higher than the large input voltage required by the stabilizer block 7812. Therefore, in order to protect the voltage regulator block 7812, we need to connect a 20 V voltage regulator tube in series at the input to step down. Here, diode D5 acts as reverse voltage protection(2) Voltage ComparisonThe power management adopts the comparator LM393, the sampling voltage of the lithium battery is divided by resistors R11 and R12, and then input to the non-inverting input of LM393. The reference voltage divides 12V through the resistor R4 and the potentiometer, and then enters the inverting input of LM393.When the sampling voltage U1 is higher than the reference voltage U2, the output terminal corresponding to LM393 outputs a high level, the transistor 9012 is turned off, the relay does not operate, and the inverter stops working.When the sampling voltage U1 is lower than the reference voltage U2, the output terminal corresponding to LM393 outputs a low level, the transistor 9012 is turned on, the relay acts, and the inverter is turned on. The reference voltage can be adjusted according to the actual parameters through the potentiometer R5.Figure 3. LM393 Lithium Battery Voltage Detection and Control(3) Hysteresis Comparator CircuitIn a single-limit comparator, if the input signal Uin has a slight interference near the threshold, the output voltage will produce corresponding jitter (fluctuation). For example, in the design of lithium battery voltage detection, if the sampling voltage of the lithium battery fluctuates near the target voltage (see Figure 3), the voltage of U1 is higher than the voltage of U2, and the output of the comparator should output a high level. However, if the U1 voltage or U2 voltage fluctuates slightly at this time, the transistor 9012 is likely to be turned on and off frequently at this time, and the control output will be very unstable. Then how to overcome this shortcoming? We can introduce positive feedback in the design (that is, the way of hardware to achieve return difference). If we need to fix a trip point at a certain reference voltage value, we can insert a non-linear element (such as a crystal diode) in the positive feedback circuit. By using the unidirectional conductivity of the diode (in Figure 2, D10 diode 1N4148), the above requirements can be achieved.2.2.2 Mains Voltage Detection and ControlThe description of the mains voltage detection control part is shown in Figure 4.(1) Power Supply PartThe power supply part uses the same power supply DC 12 V as the lithium battery voltage detection and control part.(2) Mains Voltage DetectionTaking into account the cost of the mains voltage detection part, this design abandons the traditional transformer or voltage transformer detection method, and uses two optocoupler chips PC817 to detect the mains. PC817 is a commonly used linear optocoupler, which is often used in functional circuits that require more precision. When an electrical signal is applied to the input end, the light emitter emits light and illuminates the light receiver. The light receiver is turned on after receiving the light, and generates a photocurrent output from the output end, thus realizing the "electricity-optical-electricity" conversion. This conversion is often applied to various civil industrial products such as switching power supplies, UPS, adapters, etc.Figure 4. LM393 Mains Voltage Detection and ControlTake AC 220V as an example. In order to protect the optocoupler, we use a 1MΩ resistor in the design to limit the current of the optocoupler emitter. The optocoupler chips U1 and U2 are respectively turned on under the action of alternating current, and cooperate with the capacitor C6 to ensure that the voltage of the non-inverting input terminal U3 is greater than the inverting input terminal U4 under the condition of normal mains input. The optocoupler chip used in this design can also be used for electrical isolation between the control board and the mains.When there is mains power:LM393's non-inverting input terminal U3 voltage is DC 12VInverting input terminal U4 voltage is 9V (R2, R10 divided voltage)The corresponding output terminal is highThe transistor 9014 is turned onThe relay operatesThe normally closed point is openThere is output between mains voltageWhen there is no mains power:The voltage at the non-inverting input terminal U3 of LM393 is DC 0VThe voltage at the inverting input terminal U4 is 9VThe corresponding output terminal is low levelThe transistor 9014 is cut offThe relay does not operateThe normally closed point is closedThe inverter outputs 220V.III TestAfter testing, this control circuit meets the design requirements: when there is mains power supply, it outputs mains voltage, and automatically converts to backup power supply within 10ms in the case of mains power failure, and has good charging management functions, as shown in Figure 5 and Figure 6.Figure 5. Lithium Battery Voltage Detection Waveform Figure 6. Mains Voltage Detection WaveformIn practical applications, MOS tubes and triacs can also be used to replace the relays in the voltage detection and control part of the lithium battery and the relays in the mains voltage detection and control part to achieve the control output.IV ConclsionThis control board is designed according to the characteristics of the lithium battery backup power supply that is gradually popularized at present. It has the advantages of strong anti-interference and low cost, and has strong market promotion value.In subsequent designs, we can also add protection functions such as battery under-voltage protection, short-circuit protection, overload protection, over-voltage protection, and over-temperature protection according to user requirements to continuously improve the product. After reading the blog, have you better understand LM393?Finally, if you have any questions about LM393, please do not hesitate to leave a message in the comment section below!
kynix On 2022-01-28   3547
Integrated Circuits (ICs)

TDA7294 Based Power Amplifier Circuit Design

I. IntroductionTDA7294 is a very innovative DMOS high-power integrated amplifier circuit launched by the famous European SGS-THOMSON STMicroelectronics to mainland China in the 1990s. It sweeps away the raw, cold, and hard tones of the previous  linear integrated power amplifiers and thick film integration, and is widely used in the HI-FI field: such as home theater, active speakers, etc. The design of this chip focuses on tone, and has the advantages of bipolar signal processing circuit and power MOS. It has the characteristics of high voltage resistance, low noise, low distortion, and very affinity for replaying sound; and has a silent standby function, short-circuit current and overheat protection functions to make its performance more perfect. This article will introduce several power amplifier circuit designs based on TDA7294.CatalogI. IntroductionII.OCL CircuitIII. BTL CircuitIV. Constant Current Power AmplifierV. Hi-Fi Integrated Power AmplifierVI. Active Subwoofer Amplifier Adds Standby FunctionVII. High Fidelity Power AmplifierVIII. Class AB Power AmplifierIX. Two-channel Power AmplifierX.100W Power Amplifier CircuitOrdering & QuantityII. OCL CircuitThe OCL circuit diagram is shown in Figure 1. This circuit is a dual-channel 70W power amplifier composed of two TDA7294. There are few external components and simple circuit. When the power supply voltage is ±35V, 70W continuous output power can be obtained on an 8 ohm load. It is very suitable for playback in an environment below 30 square meters. If the speaker impedance is less than 8 ohms, the power supply voltage should be reduced accordingly.Figure 1 OCL Circuit DiagramIII. BTL CircuitThe BTL circuit is shown in Figure 2. It uses two TDA7294 bridges to form a BTL power amplifier circuit. The output power can reach more than 150W. It is suitable for places that require high power such as dance halls. 4 TDA7294 are required for stereo. When the power supply voltage is ±25V, a continuous output power of 150W can be obtained on an 8 ohm load. When the power supply is ±35V, a continuous output power of 180W can be obtained on a 16 ohm load. When use TDA7294 as BTL power amplifier, the load must not be less than 8 ohms.Figure 2 BTL Circuit DiagramIV. Constant Current Power Amplifier This power amplifier circuit is somewhat different from the previous two structures. Its feedback circuit is current sampling, voltage summation and negative feedback. This kind of circuit structure is the constant current power amplifier that people often say. The specific analysis of the circuit will not be detailed, only the more prominent advantages compared with the traditional constant voltage power amplifier will be introduced.(1) The output current of the power amplifier has nothing to do with the load impedance. Even if the load is short-circuited, it will not cause the amplifier to overheat.(2) The output power increases with the increase of load impedance. Pushing the speaker load within a certain power reserve can ensure the bass strength and high frequency resolution of the original music signal.(3) The force acting on the voice coil of the speaker only depends on the current. The use of fluid-controlled oscillation to promote the speaker must be faster than the voltage-controlled oscillation, so that the input and output impedance of the speaker vibration system can be easily matched.The constant current power amplifier circuit is actually a controlled current source controlled by the input signal voltage. Its internal feedback circuit is current sampling, voltage summing negative feedback, and it has the characteristics of high input and output impedance. The input impedance is high, which is exactly what the previous stage constant voltage amplifier circuit needs, which is beneficial for the signal voltage to be sent to the input end of the power amplifier without loss. The high output impedance can reduce the shunt of the internal resistance to the signal, which is conducive to adding the output signal current to the load.In Figure 3, the power supply voltage is selected as ±35V, and its magnification is determined by the ratio of the speaker to R6.Figure 3 Constant current power amplifier circuit diagramV. Hi-Fi Integrated Power Amplifier The famous European SGS-THOMSON STMicroelectronics has launched a Hi-Fi high-power DMOS integrated amplifier circuit TDA7294. The circuit is shown in Figure 4. It integrates the best design of modern power amplifier circuit, combines the advantages of bipolar signal processing circuit and power MOS, has the characteristics of low noise and low distortion; standby and mute circuit completely eliminates the impact noise caused by power on and off, and eliminates speaker protection circuit overheating, short-circuit current protection and other functions make its performance more excellent. This device is suitable for home theater and Hi-Fi amplifiers. The main parameters are: VS (power supply voltage) ±10~±40V (maximum voltage without signal ±50V); Io (peak output current) 10A; Po (RMS continuous output power) 70W when vs=±35V 8Ω; vs= 70W when ±27V 4Ω; (effective value of music output power) 100W when VS=±38V 8Ω; 100W when VS=±29V 4Ω.Figure 4 Hi-Fi Integrated Power Amplifier Circuit DiagramThe closed-loop gain of the circuit in Figure 4 is 30dB. Increasing R3 can increase the gain, and vice versa, but the amplifier gain should be ≥24dB. The amplifier has the best performance when R1=R3. R7, C4 and R5+R6, C3 determine the standby and mute time constants. The larger the value, the longer the time.When the control terminal is connected to low potential ground, it is mute and standby; when the control terminal is connected to VS, because (R5+R6)> R7, pin ⑩ rises to a higher potential than pin ⑨, and turns to a low potential first when shutting down, which makes the standby and shutdown processes go on in a silent state, ensuring that the amplifier is turned on and off without noise.Figure 5 BTL Power amplifier finished boardFor high-power professional applications fileds such as dance halls, you can choose the BTL power amplifier finished board shown in Figure 5. Both TDA7294 are equipped with their own professional radiators. When vs=±25V8Ω, the maximum continuous output power reaches 150W; when ±35V 16Ω, The maximum continuous output power reaches 170W.We used TDA7294 standard application circuit and Marantz PM80 and YAMAHAA-592 to make a listening comparison. The former is a mid-priced Hi-Fi machine with a Class A, Class A and B status switch, and the latter is a 439.16 dollars class with Ac -3 input AV power amplifier, audio source is music fax E60CD, speaker is Tanner No. 5.It turns out that the sound orientation of TDA7294 has a distinctive European style, soft, mellow, delicate, and full of bouncing feeling. It is similar to the Marantz PM-80 in Class A and B status, but the sound field of PM-80 is deeper when working in pure Class A. Compared with YAMAHA A-592, the difference is larger. The low frequency of A-592 seems to be slightly improved. It sounds powerful, but it is harder and the lines are blurry. TDA7294 is sweet and natural, with higher resolution, really like landscape painting done with splashes of ink and fine-brush flowers and birds (a technique of chinese ink-painting), each has its infinite charm. VI.Active Subwoofer Amplifier Adds Standby Function This circuit is an improvement on the audio circuit using the integrated circuit TDA7294. The circuit diagram is shown in Figure 6. TDA729410 pin has a mute function. When the external DC provides high level, the integrated block is in the working state; when the low level is applied, the integrated block is in the cut-off state. At this time, the circuit consumes little power and IC1 14 pin has no output, that is, "standby "form. The general circuit is to provide a high level to pin 10 to make it in the conducting state, in fact, the development of this pin function can meet some special work requirements. This circuit is based on this to increase the standby function of the active subwoofer power amplifier, and its circuit is reliable and responsive.Figure 6 Active subwoofer amplifier adds standby function circuit diagramVII. High Fidelity Power Amplifier The circuit is shown in Figure 7. The drive stage adopts TDA7294. The internal drive stage and output stage of the chip use field effect tubes, which are powered by ±40V, and the output power can reach 70W (RL=8Ω; THD=0.005%). It has a delicate tone and an excellent sense of hearing. Power output VT1, VT2 adopts Shanken high-power pair tube 2SA1394, 2SC3858.The circuit principle is as follows: The signal is input to the TDA7294 non-inverting input pin ③ through C1 and R1. R7 and R3, C3, C4 of IC pin ② form a negative feedback network, the closed loop gain of this amplifier is about 34 times. The ⑨ and ⑩ pins are the standby and mute terminals respectively. Since the RC network time constant of the ⑩ pin is larger than that of the ⑨ pin, the switching machines are all performed under mute satge, avoiding the switching impact sound, and C7 is a bootstrap capacitor.Figure 7 High-fidelity power amplifier promoted by TDA7294Production points:(1) Insulating mica sheets should be added between the metal cap and the heat sink of TDA7294 (the metal cap is connected to the pin ⑧).(2) The power transformer uses ring-shaped 300W double 20V, four 50V/10000μF filter capacitors, two 50V/100μF, and two 100V/0.1μF. The power supply part should be tested separately, first without connecting the power amplifier, measure whether the positive and negative output voltage of the power supply are symmetrical, the error should be within 0.6V.(3) When testing the machine, for safety reasons, you should first use a lower voltage test (such as ±25V) without adding a signal, and measure the DC voltage of the output terminal to the ground. Normally, it should be within 20mV.(4) R8, R9, R10, D1 form the final bias circuit. This bias makes the output tubes VT1 and VT2 not cut off during operation, so the quiescent current can be small (about 5mA).(5) The power tube should be strictly matched (within 3%) and genuine products should be selected. The output resistance R14 is a 5W non-inductive type, and the inductor L is formed by tightly winding 10 turns on R14 with a diameter of 1.5mm enameled wire. TDA7294 uses 60mmTimes, 85mmTimes, 20mm 12-slot heat sink, and the output pair tube needs a professional heat sink. The sections with high current on the printed board need to be tin-rolled, which is extremely beneficial for the transparency and strength of the sound.Figure 8 Power amplifier PCB promoted by TDA7294VIII. Class AB Power Amplifier TDA7294 integrated circuit can be used as a high-fidelity audio class AB power amplifier. It can drive 4 ohm or 8 ohm speakers, and when connected to an 8 ohm speaker, it will provide 50 watts of output power and 0.1% THD.Figure 9 Class AB power amplifier circuit diagram You must install a large enough radiator for TDA7294. Pin 10 is a mute input, and pin 9 provides a standby mode. Mute should always occur when selecting standby mode. The IC has internal thermal protection, which causes mute reduction at 145°C, and the amplifier enters standby at 150°C. The TDA7294 integrated circuit heat sink is internally connected to the negative power rail. If the module is installed in a grounded metal enclosure, then the IC must be insulated from the heat sink. If not, the negative power rail will be shorted to ground.IX. Two-channel Power Amplifier TDA7294 high-power integrated circuit IC is specially designed for assembling high-performance audio amplifiers. Two TDA7294 pieces can be used to make a powerful dual-channel high-fidelity power amplifier. The circuit principle is shown in Figure 10. The overall circuit is composed of two TDA7294 core components, and the periphery includes some resistors and capacitors.The circuits of the two channels are almost identical in design. They all use the standard circuit officially released by TDA7294, connected to a non-inverting amplifier circuit, with a voltage gain of 30.5dB, an output power of up to 70W per channel, and a dual power supply symmetrical power supply voltage ± 35V. Among them, Cl5 and Cl6 are input coupling capacitors. 0.47μF is used in the original circuit. Here, if you increase it to 1μF, you can improve the low-frequency response of the circuit. It is recommended to use polypropylene special audio capacitors, such as WIMA's MKT4 series capacitors, it can greatly improve the sound resolution.R3 and R4 are input resistances, which determine the input impedance of TDA7294 in the in-phase amplification state. Here, 22kΩ is relatively moderate. Too large a value can reduce the burden on the front-end signal source, but it may affect the stability of TDA7294 and make the output midpoint voltage drift increased, too small value will affect the response ability to low frequency.The theoretical value of the feedback resistors R7 and R8 should be equal to the input resistors R3 and R4, which can ensure the bias current balance of the TDA7294 input differential circuit and reduce signal distortion. The feedback ground resistance R5, R6 cooperates with R7, R8 to set the circuit gain. Here, the feedback DC blocking capacitors Cl3 and Cl4 are used to form AC negative feedback, inhibit DC voltage output, and protect the speaker.Figure 10 Two-channel power amplifier circuit diagramTDA7294 has a start mute function, and cooperates with an external circuit to achieve a non-impact sound effect when the power is turned on and off. R9, R1O, R11, Rl2, Cl7, Cl8 and VD5, VD6 in the schematic diagram form an external mute control circuit. Delay the energization of pins 9 and 10 of TDA7294 to achieve the function of soft start.The power supply rectifier filter circuit is also very simple. The full bridge rectifier circuit is composed of 4 European speed rectifier diodes VD1-VD4. Capacitors C1 and C2 are the main filter capacitors. Large-capacity and high-current audio filter capacitors are required, such as ELNA's FORAUDIO series or BHCAerovox industrial grade capacitors.DesignPCB is generally a bottleneck in amateur production, so that many excellent schematic diagrams have not been transformed into finished PCBs that can be actually assembled. Here, the popular Protel99se design software is used to draw the printed circuit board against the schematic diagram 10, as shown in Figure 11. The 2mm thick FR-4 board-based double-sided PCB is used, and the copper foil is thickened to 70mm, which is suitable for high current power amplifiers.The whole PCB trace adopts one-point grounding method, which effectively eliminates ground wire interference noise. In some high-current traces, tin plating is also adopted to increase the additional current carrying capacity. The power input and power output structure uses high-current screw terminals to ensure sufficient over-current capability and durability of repeated wiring.Figure 11 Printed circuit boardX.100W Power Amplifier CircuitFigure 12 100W power amplifier circuit diagram composed of TDA7294Figure 12 is a 100W power amplifier composed of a monolithic audio power amplifier integrated circuit TDA7294. TDA7294 includes pre-op amplifier, final power amplifier, temperature protection, short circuit protection, mute control and other circuits. The final stage adopts bipolar DMOS power transistor, which has the characteristics of high output power, bandwidth, low distortion, and good versatility.The integrated circuit also has perfect anti-overload, anti-short circuit and temperature protection circuit functions. When the chip temperature is too high, it automatically cuts off the audio signal to protect the chip from burningThe power amplifier circuit composed of TDA7294 has the characteristics of simple peripheral circuit and easy production. The circuit input impedance is 20k, the input sensitivity is 750mV, the voltage gain is 32dB, the power supply voltage range is ±(25~40)V, and the quiescent current is 50mA. When the load impedance is 8Ω, the output power is 100W; when the load impedance is 4Ω, the output power can reach 180W.In actual production, TDA7294 should be equipped with enough heat sinks. The supporting power circuit should have sufficient capacity. If you need to increase the circuit voltage gain, you can appropriately change the ratio of R3 to R2, voltage gain A=201g(R3/R2)(dB). However, it is not advisable to one-sidedly pursue the voltage gain of this stage. Excessive voltage gain can easily cause circuit self-excitation. The solution is to increase the voltage gain of the pre-stage.
kynix On 2022-01-28   28611
Integrated Circuits (ICs)

DS18B20 Circuit: Multifunctional Electronic Thermometer

I DescriptionIn this blog, we will introduce a multifunctional electronic thermometer. This kind of thermometer can not only accurately and conveniently measure body temperature and food temperature, but also can be used to measure indoor and outdoor temperature, refrigerator temperature, etc. In addition, it also has multiple functions such as temperature measurement timing, temperature memory, sound prompt, backlight display, and automatic shutdown. Moreover, it has the characteristics of accurate measurement, simple operation, portability and low price. Therefore, it can be widely used in hospitals and homes as a general temperature measuring instrument. In terms of its working principle, the thermometer uses the digital temperature sensor DS18B20 to detect temperature and transmits the digital temperature signal to the single-chip microcomputer. The temperature value and measurement time calculated and corrected by the single-chip microcomputer are displayed in real time by the liquid crystal display.A tutorial on how to use the Dallas Maxim 1-Wire DS18B20 digital temperature sensor with the Arduino. CatalogI DescriptionII DS18B20 IntroductionIII Hardware Circuit3.1 Power Circuit3.2 Digital Temperature Sensor and Calibration3.3 MCU Circuit3.4 LCD Display3.5 Audio CircuitIV Software DesignV ConclusionFAQOrdering & Quantity II DS18B20 IntroductionDS18B20 is a single-wire digital temperature sensor produced by DALLAS. It integrates temperature sensing, signal conversion, A/D conversion and heating functions into one chip, and belongs to a new generation of intelligent digital temperature sensors with microprocessors. DS18B20 has a total of 3 pins, (respectively digital signal input/output, ground, power supply), using TO-92 small-volume packaging.DS18B20 Main Specifications:The temperature measurement range is -55℃~+125℃;Programmable to 9 to 12 bit A/D conversion accuracy;The temperature measurement resolution can reach 0.0625℃, and the error is ±0.5℃;The working power supply can be introduced at the remote end (3-wire working mode) or generated by parasitic power supply (2-wire working mode);The measured temperature is serially output with a sign-extended 16-bit digital quantity;Each sensor has a unique 64-bit serial number, which is stored in the ROM of the sensor;The sensor also has two temperature upper and lower limit storage units.III Hardware CircuitThe multifunctional electronic thermometer is mainly composed of the following parts:Power circuitDigital temperature sensorSingle chip computerLCD MonitorAudio circuit...Its hardware circuit schematic diagram is shown as in Fig. 1.Figure 1. Hardware Circuit (right click to view big picture)3.1 Power CircuitU1 is the micro power consumption step-down DC/DC converter LT3470 introduced by Linear Technology. Here, U1 converts the 9V dry battery voltage into 5V DC voltage to power the entire circuit.So, how to start and shut down automatically? We only need to press the start button S2. After starting, pin 1 (SHDN) of U1 gets a high level, pin 5 of U1 outputs a 5V stable DC voltage, and the thermometer starts to work at this time. Then, the 14-pin (P1.2) of the one-chip computer outputs a high level through D2 to keep the 1 pin of U1 high. When 6 minutes are up, the 14-pin of the single-chip microcomputer outputs a low level, and the 1 pin of U1 becomes a low level, and the circuit automatically powers down.3.2 Digital Temperature Sensor and CalibrationThe digital temperature sensor DS18B20 is used as a temperature measuring probe to collect temperature signals. And the digitized temperature signal is input through the 19-pin (P1.7) of the microcontroller. DS18B20 adopts 2-wire working mode, and the working power is generated by parasitic power.For example, use this thermometer to measure the temperature of a baby. We can fix the temperature probe on a special bandage and tie it to the arm. So that the sensor is located under the armpit. In this way, it can be avoided that the temperature measuring probe is detached from the test site. Due to infant activities or crying when measuring the body temperature of the infant, and the measurement is convenient.For another example, the temperature probe can also measure indoor and outdoor temperature, refrigerator temperature, etc. The special probe for measuring food temperature adopts non-toxic straw and non-toxic silica gel package, which is easy to clean.Since DS18B20 is in the range of -10℃~85℃, its measurement error is ±0.5℃. In order to accurately measure body temperature, this blog uses a self-made constant temperature water bath system to determine the temperature curve of each sensor. We can calibrate the DS18B20 according to the temperature curve to make the measurement error within the range of 25℃~50℃ be ±0.1℃.3.2.1 Constant Temperature Water Bath SystemThe constant temperature water bath system consists of the following three parts: an electric cooker with heat preservation, a cylindrical copper body with good heat conduction, and an automatic temperature controller.We need to make 50 round holes with a diameter of 5mm and a height of 30mm on a cylindrical copper body with a diameter of 120mm and a height of 80mm. In this way, the temperature sensor can be fixed and the temperature of all the sensors in the copper body can be kept consistent. Put the cylindrical copper body into the electric cooker, and add distilled water to submerge the copper body.3.2.2 DS18B20 Actual Temperature Curve MeasurementInsert multiple encapsulated sensors to be tested (no more than 49) into the small holes of the copper body of the constant temperature water bath;Insert the high-precision digital thermometer into the small hole of the copper body to accurately measure the current temperature;The wires of all sensors are led out through the upper cover hole of the electric cooker and connected to the upper computer. Cover the electric cooker with heat preservation material;Turn on the power, change the temperature setting of the automatic thermostat, and control the temperature of the constant temperature water bath;Monitor the temperature value of the digital thermometer. Whenever the specified temperature value is reached, start the upper computer temperature measurement program and simultaneously measure the current temperature of all the sensors to be tested;From 25℃~60℃, measure 1 set of data every 5℃, and automatically generate the actual temperature curve of each sensor.3.2.3 Correction of DS18B20By analyzing the measured temperature curve of the sensor, we can find that within the range of 25℃~50℃, the error is -0.1℃~-0.3℃. In the design of this blog, the current temperature value of DS18B20 plus 0.2℃ is used as the actual measured temperature, so that the measurement error in the range of 25℃~50℃ is reduced to ±0.1℃.3.3 MCU CircuitThe microcontroller (U2) is the core component of the thermometer. It has the following functions:Temperature signal reading, processing calculation, correctionTemperature measurement timingTemperature memorySound prompt,Automatic shutdown...  This design adopts AT89C2051 single-chip microcomputer produced by American ATMEL company. It is a built-in flash memory microcontroller that is fully compatible with the MCS-51 series, with only 20 pins. It is the most compact, smallest, and cheapest FlashROM microcontroller in the AT89C51 series. Provides the following standard functions:An 8-bit CPU;2kB flash memory;128 bytes RAM;Two 16-bit timers;A complete 8-bit bidirectional I/O port;5 interrupt sources.After starting the thermometer, the microcontroller starts an internal timer to record the temperature measurement time. It also reads the digital temperature signal sent by DS18B20, processes and corrects it to obtain the real-time temperature value. The temperature value and temperature measurement time are sent to the LCD display via serial communication via pin 1 (P3.0) and pin 2 (P3.1);When the temperature measurement time reaches 5 minutes, the current temperature value is automatically registered, and pin 11 outputs a low level to control the audio circuit to give a sound prompt;When the temperature measurement time reaches 6 minutes, the single-chip 14 pin outputs low level, and the thermometer is automatically powered off.3.4 LCD DisplayThis blog uses a 3 and a half liquid crystal display (LCD) to display temperature and temperature measurement time. The display has the following characteristics:Use glass encapsulation;There are 5 pins in total;Serial communicationWith 3 and a half display area and ℃ unit display;Function with backlight;The power supply voltage range is 2V~5V.This design uses the main display area to indicate the temperature, and the sub-display area to indicate the temperature measurement time.3.5 Audio CircuitThe audio circuit consists of the following parts:Transistor Q2 (9015) resistance R12;Capacitance C12;Buzzer B1;When the pin 11 of the single-chip microcomputer outputs low level, the transistor Q2 is saturated and turned on, and the buzzer generates an audible prompt.IV Software DesignThe program is written in 89C51 series C language and debugged on the single-chip simulation system. The program flow chart is shown in Figure 2.Figure 2. Block Diagram of Main ProgramAfter power-on reset, initialize the DS18B20, input and output ports, timers, etc. Read the temperature value of the last measurement and storage from the lower temperature limit storage unit of DS18B20 and display it for 3 seconds. Start the internal timer T0 of the microcontroller to record the temperature measurement time.Obtain the temperature value and correct the error. According to the communication protocol of DS18B20, the temperature signal is read from the sensor, the sign is distinguished, and the temperature value is obtained after calculation and processing. Then, add 0.2°C to the temperature value as the actual temperature, and correct the measurement error within the range of 25°C to 50°C to ±0.1°C.Display of temperature. According to the communication protocol of the liquid crystal display, the temperature value and temperature measurement time are sent to the display for display. The main display area indicates the temperature, and the secondary display area indicates the temperature measurement time.When the temperature measurement time reaches 5 minutes, the 11-pin of the single-chip microcomputer outputs a low-level control audio circuit to emit a prompt sound, and the current temperature is sent to the lower temperature storage unit of DS18B20 for registration, and sent to the secondary display area for display.When the temperature measurement time reaches 6minutes, the 14-pin of the single-chip microcomputer outputs low level, and the thermometer automatically powers down.V ConclusionCompared with traditional thermometers, the DS18B20 Multi-function Electronic Thermometer designed in this blog has many advantages. The latter overcomes the difficulty of reading mercury thermometers and is easy to be broken and pollute the environment. At the same time, compared with simple electronic thermometers, multifunctional electronic thermometers also overcome the shortcomings of poor measurement accuracy. Because of its complete functions, stable performance, small size, light weight, low power consumption, and low price, it can be used as a general temperature measuring instrument and widely used in hospitals and homes.FAQWhat is DS18B20 temperature sensor?The DS18B20 is a 1-wire programmable temperature sensor from maxim integrated. It is widely used to measure temperature in hard environments like in chemical solutions, mines or soil etc. The constriction of the sensor is rugged and also can be purchased with a waterproof option making the mounting process easy.How does the DS18B20 work?It works on the principle of direct conversion of temperature into a digital value. Is DS18B20 a thermistor?A thermistor is a thermal resistor - a resistor that changes its resistance with temperature. ... Thermistors have some benefits over other kinds of temperature sensors such as analog output chips (LM35/TMP36 ) or digital temperature sensor chips (DS18B20) or thermocouples.How accurate is DS18B20?The DS18B20 reads with an accuracy of ±0.5°C from -10°C to +85°C and ±2°C accuracy from -55°C to +125°C.What is ds1820?The DS18B20 is one type of temperature sensor and it supplies 9-bit to 12-bit readings of temperature. ... The communication of this sensor can be done through a one-wire bus protocol which uses one data line to communicate with an inner microprocessor.How do I connect my DS18B20 to my Raspberry Pi?Once you've connected the DS18B20, power up your Pi and log in, then follow these steps to enable the One-Wire interface:1.At the command prompt, enter sudo nano /boot/config.txt , then add this to the bottom of the file:2.dtoverlay=w1-gpio.3.Exit Nano, and reboot the Pi with sudo reboot.What is the working principle of DS18B20?The DS18B20 Digital Thermometer provides 9 to 12-bit (configurable) temperature readings which indicate the temperature of the device. It communicates over a 1-Wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor. In addition it can derive power directly from the data line (“parasite power”), eliminating the need for an external power supply.The core functionality of the DS18B20 is its direct-to-digital temperature sensor. The resolution of the temperature sensor is user-configurable to 9, 10, 11, or 12 bits, corresponding to increments of 0.5°C, 0.25°C, 0.125°C, and 0.0625°C, respectively. The default resolution at power-up is 12-bit.Where to use DS18B20 Sensor?The DS18B20 is a 1-wire programmable Temperature sensor from maxim integrated. It is widely used to measure temperature in hard environments like in chemical solutions, mines or soil etc. The constriction of the sensor is rugged and also can be purchased with a waterproof option making the mounting process easy. It can measure a wide range of temperature from -55°C to +125° with a decent accuracy of ±5°C. Each sensor has a unique address and requires only one pin of the MCU to transfer data so it a very good choice for measuring temperature at multiple points without compromising much of your digital pins on the microcontroller.How connect DS18B20 to Arduino?First plug the sensor on the breadboard the connect its pins to the Arduino using the jumpers in the following order: pin 1 to GND; pin 2 to any digital pin (pin 2 in our case); pin 3 to +5V or +3.3V, at the end put the pull-up resistor.On an ATMega328P, why is a DS18B20 temperature sensor returning incorrect temperature values?Several possibilities:1. If it is just reading a little high, it might be caused by “self heating”. Add a heat sink and/or make measurements less frequently.2. Especially if the values are really whacky, it might be code with errors or mis-wiring. Use a published sketch to check operation.3. The DS18B20 might be defective. Try another.4. It’s accurate to 0.5ºC. Are you expecting it to be more accurate (like down to the LSB of the read value)?
kynix On 2022-01-28   1997
Integrated Circuits (ICs)

How Does DS18B20 Temperature Sensor Work?

I DescriptionDS18B20 is a widely used digital temperature sensor, and its output is a digital signal. DS18B20 has the characteristics of small size, low hardware overhead, strong anti-interference ability and high precision. The DS18B20 digital temperature sensor is easy to wire and can be used in many occasions after being packaged. Such as pipe, thread, magnet adsorption, stainless steel package and so on.This Arduino for beginners tutorial will teach you how to read the DS18B20 1-wire temperature sensor.CatalogI DescriptionII Introduction to DS18B202.1 DS18B20 Basic Information2.2 DS18B20 Features2.3 DS18B20 StructureIII Introduction to Components3.1 Memory3.2 64-bit Lithography ROM3.3 Connection of External Power Supply3.4 Configuration Register3.5 Temperature ReadingIV DS18B20 Working PrincipleV ConclusionFAQOrdering & QuantityII Introduction to DS18B202.1 DS18B20 Basic InformationDS18B20 is an improved intelligent temperature sensor newly launched by American DALLAS Semiconductor after DS1820.Compared with the traditional thermistor, DS18B20 can directly read the measured temperature and can realize the 9-12-digit digital value reading mode through simple programming according to actual requirements. It can also complete 9-bit and 12-bit digital quantities in 93.75 ms and 750 ms, respectively. Moreover, the information read from the DS18B20 or the information written into the DS18B20 only needs one port line (single-wire interface) to read and write, and the temperature conversion power comes from the data bus. The bus itself can also supply power to the connected DS18B20 without the need for an additional power supply.Therefore, the use of DS18B20 can make the system structure simpler and more reliable.DS18B20 has greatly improved compared with DS1820 in terms of temperature measurement accuracy, conversion time, transmission distance, and resolution. It brings more convenient use and more satisfying effects to users.2.2 DS18B20 FeaturesUnique 1-Wire® Interface Requires Only One Port Pin for CommunicationReduce Component Count with Integrated Temperature Sensor and EEPROMMeasures Temperatures from -55°C to +125°C (-67°F to +257°F)±0.5°C Accuracy from -10°C to +85°CProgrammable Resolution from 9 Bits to 12 BitsNo External Components RequiredParasitic Power Mode Requires Only 2 Pins for Operation (DQ and GND)Simplifies Distributed Temperature-Sensing Applications with Multidrop CapabilityEach Device Has a Unique 64-Bit Serial Code Stored in On-Board ROMFlexible User-Definable Nonvolatile (NV) Alarm Settings with Alarm Search Command Identifies Devices with Temperatures Outside Programmed LimitsAvailable in 8-Pin SO (150 mils), 8-Pin µSOP, and 3-Pin TO-92 Packages2.3 DS18B20 StructureThe external structure of DS18B20 is shown in the figure 1. Among them:VDD is the power input terminal;DQ is the digital signal input/output terminal;GND is the power ground.Figure 1. DS18B20 External StructureThe internal structure of DS18B20 mainly includes 4 parts:64-bit lithography ROM;Temperature sensor;Non-volatile temperature alarm triggers TH and TL;Configuration register.Figure 2. DS18B20 External StructureIn the 64-bit ROM, the manufacturer has a 64-bit serial number burned by the manufacturer before the product leaves the factory. The serial number can be regarded as the address serial code of DS18B20, used to distinguish each DS18B20. So as to better realize the multi-point measurement of field temperature.III Introduction to Components3.1 MemoryThe memory of DS18B20 includes high-speed scratchpad RAM and electrically erasable RAM.The electrically erasable RAM also includes temperature triggers TH and TL, and a configuration register. The memory can completely determine the communication of the one-line port, and the number is written into the register with the command of writing the register. Then you can use the read register command to confirm these numbers. After confirmation, you can use the copy register command to transfer these numbers to the electrically erasable RAM. When the number in the register is modified, this process can ensure the integrity of the number.The scratchpad RAM is composed of 8 bytes of memory. The ninth byte can be read with the read register command. This byte is to check the previous eight bytes.3.2 64-bit Lithography ROMFor 64-bit lithography ROM:The first 8 bits are the own code of DS18B20The next 48 bits are consecutive digital codesThe last 8 bits are the CRC check of the first 56 bits.The 64-bit lithography ROM also includes 5 ROM function commands: read ROM, match ROM, skip ROM, search ROM and alarm search.3.3 Connection of External Power SupplyDS18B20 can use external power VDD or internal parasitic power. When the VDD port is connected to a voltage of 3.0V-5.5V, an external power supply is used. An internal parasitic power supply is used when the VDD port is grounded. In addition, whether it is an internal parasitic power supply or an external power supply, the I/O port line should be connected to a pull-up resistor of about 5KΩ.3.4 Configuration RegisterThe configuration register is to configure different digits to determine the temperature and digital conversion.It can be known that R1 and R0 are the determining bits of temperature. Different combinations of R1 and R0 can be configured as 9-digit, 10-digit, 11-digit, and 12-digit temperature display. In this way, the conversion time corresponding to different temperature conversion positions can be known. The resolutions of the four configurations are 0.5°C, 0.25°C, 0.125°C and 0.0625°C, respectively, and are configured to 12 bits at the factory.3.5 Temperature ReadingDS18B20 is configured as 12 bits at the factory, and 16 bits are read when reading temperature.The first 5 bits are sign bits. When the first 5 digits are 1, the temperature read is a negative number; when the current 5 digits are 0, the temperature read is a positive number.The method of reading when the temperature is positive is: just convert the hexadecimal number to decimal.When the temperature is negative, the reading method is: invert the hexadecimal number, then add 1 on this basis, and then convert to decimal.  Example: 0550H = +85 degrees, FC90H = -55 degrees.IV DS18B20 Working PrincipleThe read and write sequence and temperature measurement principle of DS18B20 are the same as DS1820. Only the number of digits of the temperature value obtained varies with the resolution. And the delay time during temperature conversion is reduced from 2s to 750ms.The temperature measurement principle of DS18B20 is shown in Figure 3.Figure 3. DS18B20 Temperature Measurement Principle DiagramThe oscillation frequency of the crystal oscillator with low temperature coefficient in the picture is little affected by temperature. It is used to generate a fixed frequency pulse signal and send it to the subtraction counter 1. The high temperature coefficient crystal oscillator changes its oscillation frequency significantly with temperature changes. At the same time, the generated signal is used as the pulse input of the subtraction counter 2. The figure also implies a counting gate. When the counting gate is opened, DS18B20 counts the clock pulses generated by the low temperature coefficient oscillator to complete the temperature measurement.The opening time of the counting gate is determined by the high temperature coefficient oscillator. Before each measurement, first put the base corresponding to -55 ℃ into the subtraction counter 1 and the temperature register respectively. The subtraction counter 1 and the temperature register are preset to a base value corresponding to -55 ℃.The subtraction counter 1 subtracts the pulse signal generated by the low temperature coefficient crystal oscillator. When the preset value of the subtraction counter 1 is reduced to 0, the value of the temperature register will increase by 1, the preset of the subtraction counter 1 will be reloaded, and the subtraction counter 1 will restart counting the pulse signals generated by the low temperature coefficient crystal oscillator.This loop until the subtraction counter 2 counts to 0, stop the accumulation of the temperature register value. The value in the temperature register is the measured temperature at this time.Figure 4. DS18B20The slope accumulator is used to compensate and correct the nonlinearity in the temperature measurement process, and its output is used to correct the preset value of the subtraction counter. As long as the counting gate is not closed, repeat the above process until the temperature register value reaches the measured temperature value. This is the temperature measurement principle of DS18B20.In addition, because the DS18B20 single-wire communication function is completed in time sharing, it has a strict concept of time slots. Therefore, the read and write timing is very important. Various operations of the system to DS18B20 must be carried out according to the agreement. The operating protocol is: initialize DS18B20 (send reset pulse) → send ROM function command → send memory operation command → process data. The timing diagram of various operations is the same as that of DS1820.V ConclusionIn conclusion, this blog summarizes the following 3 aspects of DS1820: Features, structure and working principle.DS1820 mainly changes its appearance according to different applications. The packaged DS18B20 can be used in various non-limiting temperature applications. Including cable trench temperature measurement, blast furnace water circulation temperature measurement, boiler temperature measurement, machine room temperature measurement, agricultural greenhouse temperature measurement, clean room temperature measurement, ammunition storage temperature measurement, etc.In addition, DS1820 is abrasion-resistant and impact-resistant, small in size, easy to use, and diverse in packaging, suitable for digital temperature measurement and control of various narrow space equipment.FAQWhat is DS18B20 temperature sensor?The DS18B20 is a 1-wire programmable temperature sensor from maxim integrated. It is widely used to measure temperature in hard environments like in chemical solutions, mines or soil etc. The constriction of the sensor is rugged and also can be purchased with a waterproof option making the mounting process easy.How does the DS18B20 work?It works on the principle of direct conversion of temperature into a digital value. Is DS18B20 a thermistor?A thermistor is a thermal resistor - a resistor that changes its resistance with temperature. ... Thermistors have some benefits over other kinds of temperature sensors such as analog output chips (LM35/TMP36 ) or digital temperature sensor chips (DS18B20) or thermocouples.How accurate is DS18B20?The DS18B20 reads with an accuracy of ±0.5°C from -10°C to +85°C and ±2°C accuracy from -55°C to +125°C.What is ds1820?The DS18B20 is one type of temperature sensor and it supplies 9-bit to 12-bit readings of temperature. ... The communication of this sensor can be done through a one-wire bus protocol which uses one data line to communicate with an inner microprocessor.How do I connect my DS18B20 to my Raspberry Pi?Once you've connected the DS18B20, power up your Pi and log in, then follow these steps to enable the One-Wire interface:1.At the command prompt, enter sudo nano /boot/config.txt , then add this to the bottom of the file:2.dtoverlay=w1-gpio.3.Exit Nano, and reboot the Pi with sudo reboot.What is the working principle of DS18B20?The DS18B20 Digital Thermometer provides 9 to 12-bit (configurable) temperature readings which indicate the temperature of the device. It communicates over a 1-Wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor. In addition it can derive power directly from the data line (“parasite power”), eliminating the need for an external power supply.The core functionality of the DS18B20 is its direct-to-digital temperature sensor. The resolution of the temperature sensor is user-configurable to 9, 10, 11, or 12 bits, corresponding to increments of 0.5°C, 0.25°C, 0.125°C, and 0.0625°C, respectively. The default resolution at power-up is 12-bit.Where to use DS18B20 Sensor?The DS18B20 is a 1-wire programmable Temperature sensor from maxim integrated. It is widely used to measure temperature in hard environments like in chemical solutions, mines or soil etc. The constriction of the sensor is rugged and also can be purchased with a waterproof option making the mounting process easy. It can measure a wide range of temperature from -55°C to +125° with a decent accuracy of ±5°C. Each sensor has a unique address and requires only one pin of the MCU to transfer data so it a very good choice for measuring temperature at multiple points without compromising much of your digital pins on the microcontroller.How connect DS18B20 to Arduino?First plug the sensor on the breadboard the connect its pins to the Arduino using the jumpers in the following order: pin 1 to GND; pin 2 to any digital pin (pin 2 in our case); pin 3 to +5V or +3.3V, at the end put the pull-up resistor.On an ATMega328P, why is a DS18B20 temperature sensor returning incorrect temperature values?Several possibilities:1. If it is just reading a little high, it might be caused by “self heating”. Add a heat sink and/or make measurements less frequently.2. Especially if the values are really whacky, it might be code with errors or mis-wiring. Use a published sketch to check operation.3. The DS18B20 might be defective. Try another.4. It’s accurate to 0.5ºC. Are you expecting it to be more accurate (like down to the LSB of the read value)?
kynix On 2022-01-27   18154
Integrated Circuits (ICs)

L298N Based Control Design of Pressure in Ion Nitriding

I. IntroductionAs we all know, the ion nitriding process requires relatively high control of the pressure inside the furnace, so this paper designs a gas flow controller based on the L298N chip driven DC motor control, which can be used to control the gas flow of the reactor. So let's first understand the ion nitriding theory. CatalogI.IntroductionII.Ion Nitriding TheoryIII.System Flow and Pressure Measurement and Control Block DiagramIV. L298N Chip IntroductionV. Controller PrincipleVI. ConclusionFAQOrdering & Quantity II. Ion Nitriding Theory Nitriding is a chemical heat treatment method to strengthen the metal surface. It is to place metal parts in an active nitrogen medium, and at a certain temperature and holding time, the nitrogen element can penetrate into the metal surface, thereby changing the chemical composition of the metal layer to make it have high wear resistance, fatigue strength, corrosion resistance and burn resistance, etc., so it is widely used in industry. Ion nitriding is carried out in a low-temperature plasma. The low-pressure gas is ionized under the action of an electric field to produce high-energy ions and high-energy neutral atoms. These high-energy particles can improve the structure of the infiltration layer, promote the chemical reaction process, and accelerate the nitriding layer formation. Ion nitriding is carried out in glow discharge. In the process of ion nitriding, the pressure control accuracy of the furnace is relatively high, and the control deviation reaches several tens of Pa. According to Paschen’s Law:Among them:       P is the gas pressure;   D is the distance between parallel plate electrodes;   V is the cathode secondary electron emission coefficient;   B is Stolev's constant;   A is a constant. Taking the derivative of formula (1), the breakdown voltage expression (2) can be obtained: It can be seen from formula (2) that the breakdown voltage V is related to the gas pressure and d, and in general experiments, d is fixed, so ion nitriding is extremely important for pressure control. III. System Flow and Pressure Measurement and Control Block Diagram The flowmeter controls the gas flow at the inlet. When the inlet and exhaust flows are balanced, the furnace pressure remains stable. Due to the internal influence of furnace gas leakage and other interference factors, the internal pressure of the furnace  fluctuates up and down, and the system deviates from the equilibrium state, which affects the plasma process in severe cases. We use an ordinary DC motor to drive the DC motor through the L298N, and the motor drives the cone to rotate through the reduction lever. When the cone is screwed in, the gas pumped out per unit time is reduced; when it is screwed out, the gas pumped out increases, so that the pressure inside the furnace is stabilized at the required value. The change of furnace pressure is measured by the pressure sensor and passed through the transmitter, which sends the gas flow controller to the feedback voltage. The electric vacuum butterfly valve used for the suction port is expensive, as shown in Figure 1.Figure 1 Block diagram of system flow and pressure measurement and control IV. L298N Chip Introduction L298N can accept standard TTL logic level signal VSS, and VSS can be connected to 4.5~7V voltage. 4 pin VS is connected to the power supply voltage, and the VS voltage range VIH is +2.5~46V. The output current can reach 2.5A, which can drive inductive loads. The emitters of pin 1 and pin 15 are separately led out to connect the current sampling resistor to form a current sensing signal. L298 can drive two motors, OUT1, OUT2 and OUT3, OUT4 can be connected to each motor, this experimental device we choose to drive one motor. Pins 5, 7, 10 and 12 are connected to the input control level to control the forward and reverse rotation of the motor. EnA and EnB are connected to the control potential energy end to control the stalling of the motor. Figure 2 is the L298N functional logic diagram, Table 1 is the L298N internal funtional module.Figure 2 L298N functional logic diagram EnAIn1In2Operative Condition0××Stop110Rotating forward101Inversion111Brake100StopTable1 L298N internal functional module The functional module of In3 and In4 is the same as Table 1. It can be seen from Table 1 that when EnA is low level, the input level has an effect on motor control. When EnA is high level, when EnA is high, the input level is one high and one low, and the motor rotates forward or reverse. If they are both low level, the motor will stop, and if they are both high level, the motor will brake. V. Controller Principle Figure 3 is the schematic diagram of the controller, composed of 3 dashed block diagrams:Figure 3 The schematic diagram of the controllerThe following are the functions of the 3 dashed block diagrams: (1) The dashed block diagram 1 controls the forward and reverse rotation of the motor, U1A and U2A are comparators, and VI comes from the voltage of the furnace pressure sensor. When VI>VRBF1, U1A outputs high level, U2A output high level turns into low level through inverter, and the motor rotates forward. Similarly, when VI<VRBF1, the motor reverses. The forward and reverse rotation of the motor can control the flow of gas extracted by the air extractor, thereby changing the pressure inside the furnace. (2) In the dashed block diagram 2, two comparators U3A and U4A form a dual-limit comparator. When VB<VI<VA, it outputs low level, and when VI>VA, VI<VB, it outputs high level. VA, VB are the upper and lower limits of the voltage converted by the furnace pressure transducer, that is, the control range of the reaction furnace pressure. According to process requirements, we can specify the values of VA and VB by ourselves, as long as the furnace pressure is within the range determined by VA and VB, the motor stops (note that VB<VRBF1<VA, if it is not in this range, the system is unstable). (3) The dashed block diagram 3 is a long delay circuit. U5A is a comparator, Rs1 is the sampling resistor, VRBF2 is the motor overcurrent voltage. The voltage on Rs1 is greater than VREF2, the motor is overcurrent, and U5A outputs low level. It can be seen from the above that block 1 controls the forward and reverse rotation of the motor, and block 2 controls the size of the ripple of the furnace pressure. When the furnace pressure is too small or too large, the motor turns to a fixed position at both ends to stop, according to the steady-state operating equation of the DC motor:Among them:       Ф is the magnetic flux of each pole of the motor;   Ce is the electromotive force constant;   N is the number of motor revolutions;   Ia is the armature current;        Ra is the armature loop resistance. When the number of revolutions of the motor N is 0, the current of the motor increases sharply, and the motor will burn out if the time is too long. But when the motor starts, the current in the coil in the motor also increases sharply, so we must separate these two states. The long delay circuit can distinguish these two states. The working principle of the long-delay circuit: When the Rs1 overcurrent U5A generates a negative pulse and is differentiated, the pulse triggers pin 2 of 555, the circuit is set, and pin 3 outputs high level. Because the discharge terminal 7 pin is open, C1, R5 and U6A formed as an integration, then start working, the charging voltage on the capacitor C1 rises linearly, and the integration constant of the delay operational amplifier is 100R5C1. When the charging voltage on C1, that is, the voltage on pin 6 exceeds 2/3VCC, the 555 circuit resets and outputs a low level. The motor generally start-up in less than 0.8s, and the C1 charging time is generally 0.8~1s. The output level of U5A is ORed with the output level of pin 3 of 555 via U7. If the output low level of U5A is longer than the charging time of C1, U7 outputs low level after C1 is charged. The AND gate U8 inputs to the 6 pin ENA terminal of L298N. The motor stops. If the output level of U5A is less than the charging time of C1, pin 6 will not act and the motor will start normally. The long delay circuit absorbs the motor start-up overcurrent voltage waveform, so that the motor starts normally. VI. Conclusion This article summarizes the design scheme for the pressure control of ion nitriding based on the L298N chip. It has been proved that the use of this controller to control the gas flow can reduce production costs, increase the system cost performance, and improve the control dynamic performance and stability of the entire system control.FAQWhat is l298n?This L298N Motor Driver Module is a high power motor driver module for driving DC and Stepper Motors. This module consists of an L298 motor driver IC and a 78M05 5V regulator. L298N Module can control up to 4 DC motors, or 2 DC motors with directional and speed control.What is the use of l298n?The L298N is a dual H-Bridge motor driver which allows speed and direction control of two DC motors at the same time. The module can drive DC motors that have voltages between 5 and 35V, with a peak current up to 2A.How does l298n control DC motor speed?1.If you send a HIGH signal to the enable 1 pin, motor A is ready to be controlled and at the maximum speed;2.If you send a LOW signal to the enable 1 pin, motor A turns off;3.If you send a PWM signal, you can control the speed of the motor. The motor speed is proportional to the duty cycle.What is l298n motor driver module?This L298N Motor Driver Module is a high power motor driver module for driving DC and Stepper Motors. This module consists of an L298 motor driver IC and a 78M05 5V regulator. L298N Module can control up to 4 DC motors, or 2 DC motors with directional and speed control.How does l298n motor driver work?The L298N is a dual H-Bridge motor driver which allows speed and direction control of two DC motors at the same time. The module can drive DC motors that have voltages between 5 and 35V, with a peak current up to 2A.How do i use a l298 motor driver with Arduino?Start by connecting power supply to the motors. In our experiment we are using DC Gearbox Motors(also known as 'TT' motors) that are usually found in two-wheel-drive robots. They are rated for 3 to 12V. So, we will connect external 12V power supply to the VCC terminal.What is the function of H bridge?An H-bridge is an electronic circuit that switches the polarity of a voltage applied to a load. These circuits are often used in robotics and other applications to allow DC motors to run forwards or backwards.What is the difference between l293d and l298n?L293 is quadruple half-H driver while L298 is dual full-H driver, i.e, in L293 all four input- output lines are independent while in L298, a half H driver cannot be used independently, only full H driver has to be used. ... Hence, heat sink is provided in L298. 
kynix On 2022-01-27   1657
Integrated Circuits (ICs)

KSC1845 NPN Epitaxial Silicon Transistor Datasheet PDF Download

CatalogFeaturesMaximum RatingsThermal CharacteristicsMarking DiagramOrdering InformationElectrical CharacteristicshFE ClassificationTypical Performance CharacteristicsPackage DimensionsKSC1845 DatasheetKSC1845 FAQ Features Audio Frequency Low−Noise AmplifierComplement to KSA992This is a Pb−Free Device Maximum Ratings(Values are at TA = 25°C unless otherwise noted.)SymbolParameterValueUnitVCBOCollector−Base Voltage120VVCEOCollector−Emitter Voltage120VVEBOEmitter−Base Voltage5VICCollector Current50mAIBBase Current10mATJJunction Temperature150°CTSTGStorage Temperature−55 to 150°CStresses exceeding those listed in the Maximum Ratings table may damage the device. If any of these limits are exceeded, device functionality should not be assumed, damage may occur and reliability may be affected. Thermal Characteristics(Values are at TA= 25°C unless otherwise noted.) SymbolParameterValueUnitPDPower Dissipation500mWDerate Above 25°C4mW/°CRθJAThermal Resistance, Junction−to−Ambient250° C/WNote: PCB size: FR−4, 76 mm x 114 mm x 1.57 mm (3.0 inch x 4.5 inch x 0.062 inch) with minimum land pattern size. Marking Diagram Ordering InformationDevicePackageShippingKSC1845FTATO−92 3L(Pb−Free)2000 / Fan−Fold Electrical Characteristics (Values are at TA = 25°C unless otherwise noted.)ParameterConditionsMinTypMaxUnitCollector−Base Breakdown VoltageIC = 100 µA, IA = 0120−−VCollector−Emitter Breakdown VoltageIC = 1 mA, IB = 0120−−VEmitter−Base Breakdown VoltageIE = 100 µA, IC = 05−−VCollector Cut−Off CurrentVCB = 120 V, IE = 0−−50nAEmitter Cut−Off CurrentVEB = 5 V, IC = 0−−50nADC Current GainVCE = 6 V, IC = 0.1 mA150580− VCE = 6 V, IC = 1 mA2006001200 Base−Emitter On VoltageVCE = 6 V, IC = 1 mA0.550.590.65VCollector−Emitter Saturation VoltageIC = 10 mA, IB = 1 mA−0.070.30VCurrent Gain Bandwidth ProductVCE = 6 V, IC = 1 mA50100−MHzOutput CapacitanceVCB = 30 V, IE = 0, f = 1 MHz−1.62.5pFNoise FigureVCE = −5 V, IC = −1.0 mA, RS = 100 kΩ, f = 1 kHz−7−dBProduct parametric performance is indicated in the Electrical Characteristics for the listed test conditions, unless otherwise noted. Product performance may not be indicated by the Electrical Characteristics if operated under different conditions. hFE ClassificationClassificationPFEUhFE2200~400300~600400~800600~1200 Typical Performance CharacteristicsFigure 1~2. Static Characteristic    Package Dimensions KSC1845 DatasheetYou can download the datasheet of KSC1845 given the link below.KSC1845-Datasheet KSC1845 FAQHow do you know if a transistor is NPN or PNP?Connect the positive lead of the multimeter to the Base (B) of the transistor and connect the negative lead to the Emitter (E) of the transistor. If it is an NPN transistor then meter should show a voltage drop between 0.45V and 0.9V. If it is a PNP transistor, then it should display see “OL” (Over Limit). How do NPN transistors work?The emitter of the NPN transistor is heavily doped. When the forward bias is applied across the emitter, the majority charge carriers move towards the base. This causes the emitter current IE. The electrons enter into the P-type material and combine with the holes. What is NPN silicon transistor?An NPN transistor has a piece of P-type silicon (the base) sandwiched between two pieces of N-type (the collector and emitter). In a PNP transistor, the type of the layers are reversed. Below is a typical cross section of a transistor. What is an NPN transistor used for?Switching applications are where NPN transistors are most commonly used. This component is used in amplifying circuits. To amplify weak signals, it's used in Darlington pair circuits. NPN transistors are used in applications where a current sink is required. What is the purpose of NPN transistor?The NPN transistor is designed to pass the electrons from the emitter to the collector. The emitter “emits” electrons into the base, which controls the number of electrons the emitter emits. An NPN transistor is used for amplification purposes. 
kynix On 2022-01-27   1068

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
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserve.