The Kynix Components
Stay Ahead with Expert Electronics Insights,
Industry Trends, and Innovative Tips
- Inductors, Coils, Chokes
- Isolators
- Computer Equipment
- Power Supplies - External/Internal (Off-Board)
- Memory Cards, Modules
- Sensors, Transducers
- Capacitors
- Test and Measurement
- Discrete Semiconductor Products
- Connectors, Interconnects
- Resistors
- Optoelectronics
- Power Supplies - Board Mount
- RF/IF and RFID
- Development Boards, Kits, Programmers
- Relays
- Integrated Circuits (ICs)
- Circuit Protection
I DescriptionThis blog introduces a simple method to drive stepper motors using L297 and L298 chips. The stepping motor drive system designed by this method has the following characteristics: simple hardware structure, easy software programming and low price.I DescriptionII IntroductionIII L297 and L298 Hardware circuit3.1 L297 Overview3.2 L298 Overview3.3 L297 and L298 CircuitIV Software designFAQOrdering & QuantityII IntroductionStepper motor is one of the commonly used embedded motion control equipment in industrial control. This is because stepper motors can move at discrete steps, provide accurate angular position information, and are easier to control. With the use of L297 and L298 chips together, a relatively low price can be used to form a stepper motor drive circuit with good performance.Standard stepper motor driver using L297 and L298 ICIII L297 and L298 Hardware circuit3.1 L297 OverviewL297 is a stepper motor controller. It is suitable for the control of bipolar two-phase stepper motors or unipolar four-phase stepper motors. There are three drive modes: half-step, full-step, and wave. The on-chip PWM chopper circuit allows switching control of the winding current. A notable feature of l297 is that only clock, direction, and mode input signals are required. The phase required by the stepping motor is generated inside the circuit, which greatly reduces the burden on the CPU.L297 has the following characteristics:Normal/ wave driveHalf/ full step modesClockwise/ anticlockwise directionSwitchmode load current regulationProgrammable load currentFew external componentsReset input&home outputEnable input3.2 L298 OverviewL298 is a high-voltage and high-current dual full-bridge driver with two H-bridges. It accepts standard TTL logic level signals and can drive stepper motors with a voltage of 46V and 2.5A per phase or below.Each bridge has an enable input, which allows or prohibits the device to work without being affected by the input signal. The emitters of the two low-end transistors of each bridge are connected together and led out for external detection resistance. It sets an additional power input terminal to make the logic part work at low voltage.Figure 1. L298 internal logic diagram (half of the diagram)L298 has the following characteristics:Operating supply voltage up to 46vTotal DC current up to 4A25w rated power2 enable control terminals to enable or device without inputting signals.Able to drive a two-phase stepper motor, four-phase stepper motor or two DC motorsBuilt-in stabilivolt tube 78M05 can be used to obtain 5v from power supply. (Must be used with an external 5v logic supply when drive voltage is greater than 12v to protect the chip)Low saturation voltageOvertemperature protectionLogical “0”input voltage up to 1.5V( high noise immunity)Operating temperature: -23°C to 130°CStorage Temperature: -40°C to 150°C3.3 L297 and L298 CircuitL297 and L298 can be used to make a two-phase bipolar stepper motor drive circuit. It is driven by a constant current mode, and the peak current of each phase can reach 2A. L297 is a stepper motor controller that is used to generate two-phase bipolar. Drive signal (A, B, C, D) and motor current settings. L298 is used to drive the power output of the stepper motor. It is driven by a double full bridge mode. Due to the bipolar drive, the motor coil is fully utilized to enable into the motor can achieve the best drive.When two pieces of L297 are used to drive the two windings of a stepping motor through L298, and the Vref corresponding to each winding is changed through two D/A converters, a stepping motor subdivision driving circuit is formed.The principle of L297+L298 drive wiring is shown in Figure 2. Ports P0~P4 are respectively connected to the corresponding control terminals of L297. Then, through the reasonable arrangement of the software, the purpose of controlling the motor to rotate in the expected direction is achieved.Figure 2. Electrical schematic diagramIn addition, the terminal 1 of L297 is the synchronous terminal, which can be connected to the terminal 1 of another group of L297 and L298 drive circuits. In this way, the two sets of drivers can be synchronized to achieve the effect of driving multiple motors at the same time.IV Software designUse C language to write program code: P0_0 = 1; // CW P0_1 ~ 1; // HALF P0_3 = 1; // ENABLE P0_2 = 1; // RESET P0_7 = 1; // CLOCK TMOD one 0 X01; // Tl TH0 = (a 4000/2 56); TL0 = one (4000% 2 5 6 ); TR0 = 1; for(; ;) { TH0 = one (4000/256 ); TL0 = one (4000%256); do{} while (!TF0); P0_7 =! P0_7; // CLOCK TF0=0; }The speed of the motor speed can be controlled by the timer.Figure 3. Waveform diagram generated by L297According to the waveform generated by L297, in fact, when the CPU port resources are not tight, the CPU can be used to simulate output.The above hardware circuits and software programs have been tested and are completely practical.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 L297?The L297 integrates all the control circuitry required to control bipolar and unipolar stepper motors. Used with a dual bridge driver such as the L298N forms a complete microprocessor-to-bipolar stepper motor interface.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 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.
kynix On 2022-01-26
A CR2025 battery is a lithium coin or “button” cell that is 20mm diameter x 2.5mm thickness. The CR2032 battery has a high voltage of 3V, a capacity of upto 170mAh, and is also disposable/non-rechargeable.This video shows how to test your coin battery to know if it's bad or not.CatalogCR2025 General DescriptionCR2025 FeaturesCR2025 SpecificationsCR2025 EquivalentsCR2025 vs CR2032How to Calculate the run time of CR2025How to Use CR2025 Coin BatteryCR2025 ApplicationsCR2025 Populartiy by RegionCR2025 DimensionsComponent DatasheetFAQCR2025 General DescriptionCR2025 is a coin cell battery. Coin cell batteries like CR2025 have many uses, they are usually used for small portable electronics devices such as: wrist watchespocket calculatorsautomobile key less entry transmitter hearing aidsThey are generally of a compact size, 5-25mm in diameter and 1-6mm in height. The name defines the size of the battery as for CR2025, the first two digits are for the diameter and the second for the height or thickness of tenths of mm. Therefore, 20mm is the diameter of CR2025, and 2.5mm is the thickness. Lithium button or coin cell batteries are a bit expensive than alkaline, but last longer, weigh less and have a wide operating temperature range.CR2025 FeaturesLightweight, High Voltage and High Energy DensityExcellent Discharge CharacteristicsExcellent Leakage ResistanceExcellent Long-Term ReliabilityUL Approved PartsRoHS Directive / European DirectivesCR2025 SpecificationsBattery typeCoin Manganese Dioxide Lithium BatteriesNominal Voltage3.0VNominal Capacity160mAhStandard Discharge Current0.2mAOperating Temperature Range-30℃ to 70℃Diameter (inch)0.787inchDiameter (mm)20mmHeight (inch)0.098inchHeight (mm)2.5mmIEC (JIS)CR2025Mass (oz)0.0917ozMass (g)2.6gCR2025 EquivalentsEquivalent for CR2025 Battery: DL2025, BR2025Other Coin Cell Batteries: CR2032, CR2016, CR1220CR2025 vs CR2032The CR2025 and CR2032 are both 3V button cells, have identical diameters, but the 2032 is 3.2mm thick while the 2025 is 2.5mm thick. With just 0.7mm of difference, for as long as either fits in the battery compartment, they can be used interchangeably with minimal effect. Do note that the 2025, being the thinner of the two, will have slightly less storage reserve and will typically not last as long as a 2032.How to Calculate the run time of CR2025The CR2025 is a commonly used battery for portable electronic applications. The battery life depends on many parameters, such as operating temperature, discharge current, dynamic loads, etc. But let us assume, for the sake of simplicity, that we are powering a normal load that consumes a constant current of 20mA at 20°C. Then, in that case, the capacity of our battery is 163mAh. This means that if we draw 163mA, then our battery will last for 1 hour and, similarly, if we draw 81.5mA, the battery will last for 2 hours. So for our application that consumes only 20mA, the battery should last for 163/20) 8.15 hours. However, due to the varying current and operating temperature of the system, this figure will not be accurate.How to Use CR2025 Coin BatteryAs per the circuit diagram below, you can use the CR2025 battery to power a 3V DC motor. These batteries are also used in many modules, such as the RTC module. The output voltage is 3V so that you can also power your 3V devices, modules, electronic devices.CR2025 Application CircuitCR2025 ApplicationsAutomotive:Smart Key/Keyless entry /Door sill stripIoT: Tracking devices/Sensors/SecurityMedical: ThermometersOthers: Home electrical appliances/Multi- functional printer/Electronic price tags, POS systemsCR2025 Populartiy by RegionCR2025 DimensionsComponent DatasheetCR2025 Coin Battery DatasheetFAQWhat does CR stand for in batteries?CR is the generic designation that is used by the entire batteries maker but lithium batteries are also having chromium. All the batteries who have this chemical substance in their batteries they can use this abbreviation CR. On the other DL is the short abbreviation of the battery making company Duracell.Is 2025 battery same as 2032?2032 and 2025 are literally the dimensions of the battery. A 2032 is 20mm in diameter, 3.2mm thick, and a 2025 is slightly thinner, at 2.5mm thick. They usually both have the same voltage (3V), and assuming they fit in the case, they are interchangeable.What battery is equivalent to CR2025?Although there are no exact equivalent batteries to the CR2025, there are multiple batteries that may act as suitable substitutions. The CR2016 and CR2032 are exchangeable with the CR2025, but users must consider space limitations. The CR2016, CR2025, and CR2032 cell batteries all have the same voltage.How long does a cr2025 battery last?About 4 to 6 months. The 3 Volt CR2025 coin cell battery lasts about 4 to 6 months with normal use. We recommend using the same brand (or one with equivalent quality), which should give you the estimated battery life.Can I use cr2025 instead of cr1616?Technically they are cross-compatible if a CR2032 can fit into the spot for a CR1616, though this is very unlikely.How do I know if my lithium ion battery is bad?Without an analyzer, or running runtime test etc, the easiest way to tell that a Li-Ion cell is nearing it's EOL, is that it will not hold a charge well, will not perform as well as it used to, and will get noticeably warmer when charging.
kynix On 2022-01-26
IntrodcutionThe CD4066 is a quad bilateral switch which can be applied for switching of analog signals and digital signals. It is pin-for-pin compatible with the CD4016B device, but exhibits a much lower on-state resistance. In addition, the on-state resistance is relatively constant over the full signal-input range.The CD4066 device consists of four bilateral switches, each with independent controls. The switches can be switched off independently and complement each other. This configuration eliminates the variation of the switch-transistor threshold voltage with input signal and, thus, keeps the on-state resistance low over the full operating-signal range.The advantages over single-channel switches include peak input-signal voltage swings equal to the full supply voltage and more constant on-state impedance over the input-signal range.CatalogIntrodcutionI Test Circuit of CD4066II Cordless TelephoneIII Self-locking Touch Switch CircuitIV Electronic Switch CircuitFAQOrdering & QuantityI Test Circuit of CD4066The test of CD4066 quad bilateral switch is mainly to test the control function and bilateral conduction function of each switch.Figure 1. Test Circuit of CD4066 In Figure 1, selecting high or low level, KI is a SPDT switch at the control terminal, which is used to change the on state of the analog switch. When the switch is turned to H to turn on the high level, the control terminals of the four switches are at high level, and each switch should be turned on. When the switch is turned to L low level, the four switches should be turned off. K2 is a double-pole double-throw switch. Toggle the switch K2 to control the direction of the bilateral flowing switch signal. It is indicated by two groups of red and green LED.When the switch K2-1 is turned to H high level, K2-2 is connected to L low level. When KI switch is turned to high level state, all switches are in forward (reverse) conduction state. So the positive pole of the power supply is added to the parallel connected light-emitting diodes LFD1, LED3, IED5, positive pole of LED7 and the step-down resistor R. Then the four red LEDs light up. When the Kl switch is turned to L low level, each analog switch is in the cut-off state. No matter K2 is switched to H or L state, the two groups of red and green LED will not light up.II Cordless TelephoneCD4066 is a quad bilateral switch, which is widely used in TV, DVD player, telephone, various electronic instruments and meters. The CD4066 device consists of four bilateral switches, each with independent controls. The switches can be switched off independently and complement each other. The typical application circuit of CD4066 in cordless telephone is shown in the figure.Figure 2. Circuit of Cordless Telephone III Self-locking Touch Switch CircuitIn the self-locking touch switch circuit composed of CD4066b, when the touch switch S1 is activated, R4 is driven to high level, and the control voltage becomes high, which will latch the switch. When S2 is activated, R4 becomes low and the control voltage becomes low, which will deactivate the switch.Figure 3. Self-locking Touch Switch CircuitIV Electronic Switch CircuitElectronic switch circuit composed of CD4017 and CD4066 is shown below.Figure 4. Electronic Switch CircuitFAQWhat is CD4066?The CD4066 is a Quad Bilateral Switch IC, that is, it has four switches which can be controlled individual using a control pin. These switches can conduct in both the directions making it bilateral, it is commonly used for multiplexing analog or digital signals.How to use CD4066?The CD4066 IC consists of four switches. It can switch analog signals through digital control. An analog signal is applied at the input of the switch. If a HIGH or 1 value is fed into the control input, the analog signal will be passed from input to the output of a switch.How CD4066 work?The 4066 really functions as an analog switch. The 4066 is an IC composed of switches which are designed to switch analog signals via digital control. ... The 4066 is a quad bilateral switch circuit, meaning that is composed of 4 switches. Each switch has a single input and a single output terminal.What are the applications of CD4066?The CD4066 is a bi-directional analog switching IC similar to CD4016, it is commonly used in multiplexing applications; it can also be used to isolate signals. The switch is bilateral and hence can be used for both digital and analog signals.What's the difference between CD4016 and CD4066?The major difference between both is that CD4066 has very low internal resistance, according to the datasheet it can only 5Ω of on-state resistance as compared with 200Ω of CD4016 IC.
kynix On 2022-01-26
I DescriptionThe instrumentation amplifier circuit has the following features:High Input Impedance;High Common-mode Rejection Ratio;Low Drift;...The above features make it widely used in fields of small signal amplification of sensor output. This blog will introduce 4 implementation options of instrumentation amplifier circuits. These 4 options are designed based on different electronic components. And they are also on the basis of explaining the circuit structure and principle of the instrument amplifier. The electronic components discussed in this blog include: LM741, OP07, LM324, AD620. We will summarize features of the 4 circuit through testing, analysis and comparison. I believe this blog can provide a certain reference for circuit design beginners.What Are Instrumentation Ampilfiers?CatalogI DescriptionII Introduction2.1 Instrumentation Amplifier Overview2.2 Instrumentation Amplifier Stucture and PrincipleIII Instrumentation Amplifier Circuit Design3.1 LM741 Circuit Option3.2 OP07 Circuit Option3.3 LM324 Circuit Option3.4 AD620 Circuit OptionIV Performance Test and AnalysisFAQOrdering & QuantityII Introduction2.1 Instrumentation Amplifier OverviewThe signals input by smart meters through sensors generally have the characteristics of "small" signals:The signal amplitude is very small (millivolt or even microvolt magnitude);Often accompanied by loud noise.For such signals, the first step of circuit processing is usually to amplify small signals with an instrumentation amplifier. The main purpose of amplification is not to gain, but to improve the signal-to-noise ratio of the circuit. At the same time, for the instrumentation amplifier circuit, the smaller the input signal that can be resolved, the better; the wider the dynamic range, the better. Therefore, the performance of the instrumentation amplifier circuit directly affects the range of the input signal that the smart instrument can detect.2.2 Instrumentation Amplifier Stucture and PrincipleThe typical structure of the instrument amplifier circuit is shown as in Fig. 1. It is mainly composed of two-stage differential amplifier circuit.Figure 1. Structure of Instrumentation Amplifier Among them, the operational amplifier A1, A2 are in-phase differential input modes. Non-inverting input can greatly increase the input impedance of the circuit. At the same time, it can also reduce the attenuation of weak input signals by the circuit; Differential input can make the circuit only amplify the differential mode signal, and only follow the common mode input signal. In this way, the ratio of the amplitude of the differential mode signal to the common mode signal (ie, the common mode rejection ratio CMRR) sent to the subsequent stage is improved.In this way, in the differential amplifier circuit composed of operational amplifier A3 as the core component, under the condition that the CMRR requirements remain unchanged, the accuracy matching requirements for resistors R3 and R4, Rf and R5 can be significantly reduced. As a result, the instrumentation amplifier circuit has better common mode rejection capability than a simple differential amplifier circuit. Under the conditions of R1=R2, R3=R4, Rf=R5, the gain of the circuit in Figure 1 is: G=(1+2R1/Rg)(Rf/R3)It can be seen from the formula that the adjustment of the circuit gain can be achieved by changing the Rg resistance. III Instrumentation Amplifier Circuit DesignAt present, the implementation methods of instrumentation amplifier circuits are mainly divided into two categories:The first category is composed of discrete components;The second category is directly implemented by a single integrated chip.In the blog, with single op amp LM741 and OP07, integrated four op amp LM324 and monolithic integrated chip AD620 as the main electronic components, 4 kinds of instrumentation amplifier circuit options are designed.3.1 LM741 Circuit OptionConsists of three general-purpose operational amplifiers LM741 to form a three operational amplifier instrument amplifier circuit form. And supplemented by related resistor peripheral circuits. At the same time, add the bridge signal input circuit of the non-inverting input terminals of A1 and A2, as shown in Figure 2.Figure 2. Single Op Amp Instrumentation Amplifier A1~A3 in Figure 2 can be replaced with LM741 respectively. The working principle of the circuit is exactly the same as that of a typical instrumentation amplifier circuit.3.2 OP07 Circuit OptionComposed of 3 precision operational amplifiers OP07, the circuit structure and principle are the same as in Fig. 2 (3 OP07s are used to replace A1~A3 in Fig. 2 respectively).3.3 LM324 Circuit OptionTake a four operational amplifier integrated circuit LM324 as the main component, as shown in Figure 3. Its characteristic is to integrate 4 functionally independent operational amplifiers into the same integrated chip. What are the advantages of using LM324? That is, it is possible to greatly reduce the difference in device performance of each op amp due to different manufacturing processes. In addition, the use of a unified power supply is conducive to the reduction of power supply noise and the improvement of circuit performance indicators. And the basic working principle of the circuit remains unchanged.Figure 3. LM324 Instrumentation Amplifier3.4 AD620 Circuit OptionThe circuit consists of a monolithic integrated chip AD620 as the main electronic components, as shown in Figure 4. It is characterized by a simple circuit structure: an AD620, a gain setting resistor Rg, and a working power supply. Therefore, the design efficiency is very high. The circuit gain calculation formula in Fig. 4 is: G=49.4K/Rg+1. Figure 4. AD620 Instrumentation AmplifierIV Performance Test and AnalysisThe four options of the instrumentation amplifier circuit all adopt the form of a bridge circuit composed of 4 resistors, which changes the double-ended differential input into a single-ended signal source input. The performance test is mainly to carry out simulation and actual circuit performance test from the following aspects: 1. The maximum input of the signal source Vs; 2. Vs minimum input of signal source Vs; 3. The maximum gain of the circuit; 4. Common mode rejection ratio.The test data are shown in Table 1 and Table 2. Among them, the maximum (small) input of Vs refers to the maximum (small) input of the signal source when the circuit output is not distorted under given test conditions. The maximum gain refers to the maximum gain value of the circuit that can be achieved when the output is not distorted under the given test conditions. The common mode rejection ratio is calculated by the formula KCMRR=20|g | AVd/AVC|(dB).Note:f is the frequency of Vs input signal;The voltage measurement data in the table are all expressed by peak-to-peak value;Due to the simulation device, the simulation of option 3 with Multisim failed in the experiment, and "-" in Table 1 indicates the failure data;Options 1 to 4 in the table respectively represent the instrumentation amplifier circuit composed of LM741, OP07, LM324 and AD620 respectively.From the measured data in Table 2, we can see from it:For option 2, it has the best performance in terms of signal input range (that is, the maximum and minimum input of Vs), circuit gain, and common-mode rejection ratio. In terms of component price, it is a little higher than the cost of the LM741 option 1 and the LM324 option 3, but it is much cheaper than the AD620 option 4. Therefore, among the four options, option 2 of OP07 has the highest cost performance.For option 4, in addition to its relatively small maximum gain, its other performance is second only to option 2. option 4 has the advantages of simple circuit, superior performance, and saving design space. However, the high cost is its biggest disadvantage.For option 1 and option 3, there is little difference in their performance. option 3 is slightly better than option 1, and they also have absolute price advantages, but their performance is not as good as option 2 and option 4.Based on the above analysis, option 2 and option 4 are suitable for occasions with higher performance requirements for instrument amplifier circuits. Among them: Option 2 of OP07 is the most cost-effective Option 4 of AD620 is simple and efficient, but the cost is high. Option 1 of LM741 and Option 3 of LM324 are suitable for occasions where performance requirements are not high and cost savings are needed.According to specific circuit design requirements, different options are selected to achieve optimal resource utilization.In addition, after the circuit design plan is determined, the following aspects should be paid attention to in the specific circuit design process:1. Pay attention to the selection of key components. For example, for the circuit shown in Figure 2, there are a few things to pay attention to:Make the characteristics of op amp A1 and A2 as consistent as possible;When selecting resistors, resistors with a low temperature coefficient should be used to obtain the lowest possible drift;The selection of R3, R4, R5 and R6 should match as much as possible.2. Pay attention to adding various anti-interference measures in the circuit. such as:The power supply decoupling capacitor should be added at the lead-in end of the power supply;RC low-pass filtering should be added to the signal input terminal or high-frequency noise canceling capacitors should be added to the feedback loop of the operational amplifier A1 and A2;The PCB design should be carefully laid out and routed reasonably, and ground wires should be handled correctly.FAQWhat 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 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 use 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, the conventional op-amp applications can be implemented very simply. This IC can be used as oscillators, rectifiers, amplifiers, comparators etc.
kynix On 2022-04-22
IntroductionA circuit or device that changes the phase of a signal by 180°, as required for feeding a push-pull amplifier stage without using a coupling transformer, or for changing the polarity of a pulse; a triode is commonly used as a phase inverter. Also known as inverter. The following is an introduction to 74LS04 and other similar IC chips.CatalogIntroductionI 74LS04 VS. 74LS141.1 Brief Introduction1.2 Difference between 74LS04 and 74LS14II 74LS04 VS. 74LS08III 74LS04 VS. 74HC04IV 74LS04 VS. 54LS04FAQOrdering & QuantityI 74LS04 VS. 74LS141.1 Brief IntroductionBoth 74LS04 and 74LS14 are not gates of the 74 series. 74LS04 is a Hex Inverter. 74LS14 is a Hex Schmidt trigger.The 74LS04 gate circuit has a threshold voltage. When the input voltage rises from the low level to the threshold voltage, or decreases from the high level to the threshold voltage, the condition of the circuit will change.74LS14 is a Schmidt trigger. It is a special gate circuit, which is not compatible with the simple gate circuit. Schmidt trigger has two threshold voltages (positive threshold voltage and negative threshold voltage).1.2 Difference between 74LS04 and 74LS14◾Output: The output of 74LS04 and 74LS14 are the same. If the same manufacturer, the output parameters are the same.◾Input: The difference between the two is that the input is not the same. 74LS04 input is TTL level, while 74LS14 input is Schmidt input (with hysteresis characteristics). Because the input is different, the application of the two chips is also different. 74LS04 is mostly used for "non" control of general data on the board, while 74LS14 is generally used for signal shaping or signal buffering of critical signals. In most cases, 74LS14 can replace 74LS04.II 74LS04 VS. 74LS08The 74LS08 device contains 4 independent 2-input AND gates. The logic function expression of 74LS08 is: Y = A·B or Y = /(A + B), positive logic. 74LS08 is commonly used in digital circuit systems. 74LS0474LS08VCC (Min) (V)4.754.75VCC (Max) (V)5.255.25Logic levelTTLTTLPin/Package14PDIP, 14SO, 14SOIC, 14SSOP PDIP14, SOIC14, SOP14, SSOP14III 74LS04 VS. 74HC0474HC04 is a hex inverter of CMOS circuit, and the working voltage is 2V-6V. Both 74LS04 and 74HC04 are inverters, but LS stands for low-power Schottky and HC is high-speed COMS. LS is slightly faster than HC. LS adopts TTL level. HC is CMOS level. 74HC04 is easy to understand. Input low level, output high level. Input high level, output low level.74LS04 contains six independent gates each of which performs the logic INVERT function. The output signals of the six inverters are opposite to the input signals. The inverter can reverse the phase of the input signal by 180 degrees. This circuit is used in analog circuits, such as audio amplifier, clock oscillator, etc.IV 74LS04 VS. 54LS0454LS04 contains six independent inverters. It is characterized for operation over the full military temperature range of -55℃ to 125℃. 74LS0454LS04Technology FamilyLSLSVCC (Min) (V)4.754.5VCC (Max) (V)5.255.5Bits (#)66Voltage (Nom) (V)55F @ Nom Voltage (Max) (Mhz)3535ICC @ Nom Voltage (Max) (mA)0.033 0.033 tpd @ Nom Voltage (Max) (ns)22 22 IOL (Max) (mA)88IOH (Max) (mA)-0.4 -0.4 Schmitt TriggerNoNoRatingCatalogMilitary Operating Temperature Range (C)0 to 70-55 to 125Pin/Package14PDIP, 14SO, 14SOIC, 14SSOP 14CDIP, 14CFP, 20LCCC FAQWhat is 74LS04?74LS04 is a member of 74XXYY IC series. The 74-series are digital logic integrated circuits. 74LS04 IC has six NOT gates. These NOT gates perform Inverting function. Hence name HEX INVERTING GATES.What is the function of ic 74ls04?74LS04 Hex NOT Gate IC. 74LS04 is a 2 input quadruple 8-bit NOT gate IC. Inverter in logic converters is an electronics device whose basic functions are to invert the incoming logic weather it is HIGH or LOW. They are also known as NOT gates.What is a hex inverter?A hex inverter is a type of an integrated circuit that contains six inverters. Many sophisticated digital devices use inverters, including multiplexers, decoders, and state machines. An inverter circuit's main function is to output the voltage representing the opposite level to its input.Why is NOT gate called an inverter?A NOT gate, often called an inverter, is a nice digital logic gate to start with because it has only a single input with simple behavior. A NOT gate performs logical negation on its input. In other words, if the input is true, then the output will be false.
kynix On 2022-01-27
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
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














