Introduction. APPLICATION NOTE 3981 HFTA-15.0 Thermistor Networks and Genetics. By: Craig K. Lyon, Strategic Applications Engineer

Similar documents
APPLICATION NOTE dBm PA and PA Predriver with 37% Efficiency for 2.4GHz FHSS WLAN Applications

Different Digital Method

Background. Dec 26, APPLICATION NOTE 1828 Audio Gain Control Using Digital Potentiometers

Input Stage Concerns. APPLICATION NOTE 656 Design Trade-Offs for Single-Supply Op Amps

APPLICATION NOTE 2027 Simple Methods Reduce Input Ripple for All Charge Pumps

Introduction. Protocol Definitions. The RS-485 Standard. APPLICATION NOTE 3884 How Far and How Fast Can You Go with RS-485?

APPLICATION NOTE 6071 CHOOSE THE RIGHT REGULATOR FOR THE RIGHT JOB: PART 3, COMPONENT SELECTION

APPLICATION NOTE 695 New ICs Revolutionize The Sensor Interface

Maxim > Design Support > Technical Documents > Application Notes > Digital Potentiometers > APP 3408

Keywords: volume control, digital potentiometer, docking station, mute, stereo separation, MAX5486

APPLICATION NOTE 6609 HOW TO OPTIMIZE USE OF CONTROL ALGORITHMS IN SWITCHING REGULATORS

Increasing Performance Requirements and Tightening Cost Constraints

Introduction. Keywords: rf, rfdesign, rfic, vco, rfics, rf design, rf ics. APPLICATION NOTE 530 VCO Tank Design for the MAX2310.

Genetic Algorithm Amplifier Biasing System (GAABS): Genetic Algorithm for Biasing on Differential Analog Amplifiers

Keywords: ISM, RF, transmitter, short-range, RFIC, switching power amplifier, ETSI

APPLICATION NOTE 735 Layout Considerations for Non-Isolated DC-DC Converters

Conventional Single-Switch Forward Converter Design

Keywords: op amp filters, Sallen-Key filters, high pass filter, opamps, single op amp

Keywords: rf, rfic, wireless, cellular, cdma, if, oscillator, rfics, IF frequencies, VCO, rf ic

ECEN 474/704 Lab 5: Frequency Response of Inverting Amplifiers

Application Note #AN-00MX-002

UNIT 4 BIASING AND STABILIZATION

Piecewise Linear Circuits

APPLICATION NOTE 3984 UL Recognized, IEEE 1394 Single- and Dual-Port FireWire Protective Circuits

REFERENCE DESIGN 4669 INCLUDES:

Chapter IX Using Calibration and Temperature Compensation to improve RF Power Detector Accuracy By Carlos Calvo and Anthony Mazzei

Application Note 1293

UNIT I - TRANSISTOR BIAS STABILITY

APPLICATION NOTE 5581 CHALLENGE THE CONVENTIONAL - MAKE UNIPOLAR DACS BIPOLAR

= V IN. and V CE. = the supply voltage 0.7 V, the transistor is on, V BE. = 0.7 V and V CE. until saturation is reached.

3.3. Modeling the Diode Forward Characteristic

Keywords: linear regulators, LDO, transient, input protection, PSRR, power supply noise

Application Note 1360

Fundamentals of Microelectronics

Control System for Lamp Luminosity. Ian Johnson, Tyler McCracken, Scott Freund EE 554 November 29, 2010

Design and Applications of HCPL-3020 and HCPL-0302 Gate Drive Optocouplers

Expanded Answer: Transistor Amplifier Problem in January/February 2008 Morseman Column

Population Adaptation for Genetic Algorithm-based Cognitive Radios

Diodes. Sections

A Lesson in Probability and Statistics: Voyager/Scratch Coin Tossing Simulation

file://c:\all_me\prive\projects\buizentester\internet\utracer3\utracer3_pag5.html

Component modeling. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

3.3. Modeling the Diode Forward Characteristic

High Speed I/O 2-PAM Receiver Design. EE215E Project. Signaling and Synchronization. Submitted By

Experiment 9 : Pulse Width Modulation

The table below gives some summary facts to the two set of data and show that they correlate to a high degree of the course of a year.

Chapter 5 OPTIMIZATION OF BOW TIE ANTENNA USING GENETIC ALGORITHM

Switch Mode Power Conversion Prof. L. Umanand Department of Electronics System Engineering Indian Institute of Science, Bangalore

Upstream Challenges With DOCSIS 3.1

MAS.836 HOW TO BIAS AN OP-AMP

Step vs. Servo Selecting the Best

LED Driver Specifications

TC LV-Series Temperature Controllers V1.01

By Pierre Olivier, Vice President, Engineering and Manufacturing, LeddarTech Inc.

Autonomous Robot Control Circuit

AgilOptics mirrors increase coupling efficiency into a 4 µm diameter fiber by 750%.

Using Magnetic Sensors for Absolute Position Detection and Feedback. Kevin Claycomb University of Evansville

Advanced Excel. Table of Contents. Lesson 3 Solver

Programming an Othello AI Michael An (man4), Evan Liang (liange)

Evolutions of communication

Application Note 1005

Design and Simulation of Passive Filter

Active Device Utilities and Multi-Level Simulation An Overview

PHYS 3050 Electronics I

INTEGRATED CIRCUITS. AN145 NE5517/A transconductance amplifier applications Dec

EXPERIMENT #3 TRANSISTOR BIASING

2. There are many circuit simulators available today, here are just few of them. They have different flavors (mostly SPICE-based), platforms,

PHY 351/651 LABORATORY 5 The Diode Basic Properties and Circuits

Transistor Biasing and Operational amplifier fundamentals. OP-amp Fundamentals and its DC characteristics. BJT biasing schemes

Analyzing The Effect Of Voltage Drops On The DC Transfer Function Of The Buck Converter

A Case Study of GP and GAs in the Design of a Control System

Comparison of Signal Attenuation of Multiple Frequencies Between Passive and Active High-Pass Filters

Experiment #1: Solid State Diodes Testing & Characterization. Type Value Symbol Name Multisim Part Description Resistor 1MΩ R 2 Basic/Resistor ---

Improvements of LLC Resonant Converter

Variable Size Population NSGA-II VPNSGA-II Technical Report Giovanni Rappa Queensland University of Technology (QUT), Brisbane, Australia 2014

"Improve Instrument Amplifier Performance with X2Y Optimized Input Filter"

Made of semiconducting materials: silicon, gallium arsenide, indium phosphide, gallium nitride, etc. (EE 332 stuff.)

Total Harmonic Distortion Minimization of Multilevel Converters Using Genetic Algorithms

CHAPTER 5 MPPT OF PV MODULE BY CONVENTIONAL METHODS

TAKE THE MYSTERY OUT OF PROBING. 7 Common Oscilloscope Probing Pitfalls to Avoid

Introduction PNP C NPN C

Shuffled Complex Evolution

PULSE-WIDTH OPTIMIZATION IN A PULSE DENSITY MODULATED HIGH FREQUENCY AC-AC CONVERTER USING GENETIC ALGORITHMS *

Transistor Biasing. DC Biasing of BJT. Transistor Biasing. Transistor Biasing 11/23/2018

EK 307 Lab: Light-Emitting Diodes. In-lab Assignment (Complete Level 1 and additionally level 2 if you choose to):

Practical Testing Techniques For Modern Control Loops

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

APPLICATION NOTE 3166 Source Resistance: The Efficiency Killer in DC-DC Converter Circuits

Signal Conditioning Systems

A NEW APPROACH OF MODELLING, SIMULATION OF MPPT FOR PHOTOVOLTAIC SYSTEM IN SIMULINK MODEL

game tree complete all possible moves

Class #16: Experiment Matlab and Data Analysis

Fundamentals of Microelectronics

LM389 Low Voltage Audio Power Amplifier with NPN Transistor Array

Transistor Characteristics

UPSTREAM CHALLENGES WITH DOCSIS 3.1

Choosing and Using Photo Sensors

CHM 152 Lab 1: Plotting with Excel updated: May 2011

KOM2751 Analog Electronics :: Dr. Muharrem Mercimek :: YTU - Control and Automation Dept. 1 7 DC BIASING FETS

Combination Notch and Bandpass Filter

Transcription:

Maxim > App Notes > FIBER-OPTIC CIRCUITS Keywords: thermistor networks, resistor, temperature compensation, Genetic Algorithm May 13, 2008 APPLICATION NOTE 3981 HFTA-15.0 Thermistor Networks and Genetics By: Craig K. Lyon, Strategic Applications Engineer Abstract: This application note discusses applications of thermistors for temperature compensation. It also gives a brief description of the genetic algorithm, which can quickly identify optimal circuit conditions. An example of the algorithm is used to illustrate how easy it is to determine the best resistor and NTC thermistor values to generate a particular voltage vs. temperature curve. Introduction Question: Given the circuit topology in Figure 1, find the resistor and NTC thermistor values that generate the Voltage vs. Temperature curve shown in Figure 2. (Note: Only standard values may be used.) Figure 1. Thermistor network. Page 1 of 11

Figure 2. Voltage vs. temperature curve. While this question may not appear in a textbook, it is a common practical problem that is encountered when trying to apply temperature compensation to an active device using a thermistor network. Some of us may be able to look at the circuit in Figure 1 and determine the solution by using a scratch pad and numerous equations. The rest of us would probably just enter the values into a simulator or spreadsheet and slowly try to adjust the values until we were able to match the curves as best as possible. Finding the optimal solution to this circuit using either of the methods above can prove challenging, given the number of variables and the temperature dependence involved in its solution. Being constrained to only standard values for practical solutions increases the difficulty. While solving this circuit for one set of conditions may be acceptable, it can be tedious to solve for multiple conditions, networks, or desired responses. As the networks become more complicated (to provide a better temperature response), finding an optimal solution can often be too difficult or too time-consuming to solve symbolically or empirically. In contrast, a numerical method, such as the Genetic Algorithm, can solve these problems quickly and easily. The words genetics and circuits rarely find themselves in the same context but, as will be shown, the genetic process can be applied to solve component values in circuits such as that shown in Figure 1. This article discusses applications of thermistors for temperature compensation and gives a brief description of the Genetic Algorithm. An example of the algorithm being used to quickly solve the basic question above will then be illustrated. Applications of Thermistor Networks Thermistor networks are commonly used to apply temperature compensation to a wide variety of circuit applications. For example, thermistor networks are used to adjust power-supply circuits, PWM outputs, etc., as well as provide temperature-compensated bias currents to transistors, amplifier circuits, and laser diodes. Given the many applications for thermistor networks, the required compensation (network values) will vary greatly from application to application and from device to device. Figure 2 is an example of the compensation needed for a laser diode used in a fiber-optic communication link application. To maintain the quality of the communication link, the bias current to the laser diode must be adjusted as temperature changes. The temperature-compensated bias current can be applied to the laser by using the circuit shown in Figure 3, but the optimal values must be determined to match the desired voltage vs. temperature (Figure 2). Using the Genetic Algorithm, a near-ideal solution can be found in a matter of seconds. Page 2 of 11

Figure 3. Thermistor network with the MAX3643 burst-mode laser driver. The Genetic Algorithm The Genetic Algorithm is an optimization algorithm that mimics the genetic process to find optimal solutions to multivariable problems. Although the Genetic Algorithm was first used in the 1950s,¹ it has only been widely used in the last 15 to 20 years due to advances in computer technology and processor speed. In its simplest form, the algorithm starts by creating a random population or a population of predetermined starting points. Each population element (individual) in a population (Figure 4) is composed of an array of variables that defines its construction (its genetic code). Once each population element is initialized, its performance is measured using a set of criteria and then compared against all other elements. The population elements are then sorted according to their performance. The elements with a poor ranking are eliminated (natural selection), and a new generation of elements is created by mixing the variables (genetic code) of the best population elements from the previous generation (Figure 5). Page 3 of 11

Figure 4. Illustration of the population with K population elements, each composed of N variables. Page 4 of 11

Figure 5. Illustration of the process of mixing the variables (i.e., the genetic code) from one generation to the next. If the process were allowed to loop after completing the steps to this point, the population would quickly saturate to a common, identical genetic code. A minimum will be found, but it may not be the global minimum. To keep the population from saturating or converging on a local minimum, mutations (random changes) to a population element's variables and new random elements should be introduced into the population (Figure 6). Page 5 of 11

Figure 6. Illustration of the process of introducing random elements into a generation's population. The frequency and amount of randomness that should be introduced will vary from one application to another. If too much randomness is introduced, the algorithm will not have time to converge on an ideal solution. If too little is introduced, finding the global minimum could take an extremely long time. The amount of randomness introduced should, therefore, be tuned by trial and error or set dynamically with more randomness introduced as the population saturation increases. There are other optimization algorithms that can be faster than the Genetic Algorithm; however, they are often more complicated to program for multivariable problems and they will often converge on a local minimum. The Genetic Algorithm overcomes these problems. The Genetic Algorithm is based on a random process, so the time needed to converge on an absolute optimal solution will be random. The average convergence time will increase as the number of variables in each population element increases. Determining and calculating the performance criteria for a given application can also be difficult for some applications. Simply put, it is sometimes difficult to write equations that express what the optimal solution should look like. For simple passive circuits such as the thermistor circuit shown in Figure 1, the performance criteria can be well defined and easily written. Given the number of variables, the solution can also be found in a reasonable amount of time. The Genetic Algorithm is, therefore, well suited to solve these types of circuits. Example Using a free visual basic compiler,², a simple routine was written to solve the thermistor network values (Figure 1) to match the desired response (Figure 2). The source code for this example and the executable file can be downloaded. The algorithm is implemented in the software with the following basic steps: 1. Define the available resistor and thermistor values that can be used as possible variables in each population element. An array is declared for available resistors and another for available thermistors. Page 6 of 11

2. Generate a random population of elements. (Population should be composed of 100 elements for this example.) Each population element is an array that contains an entry for each component in the circuit (Figure 1). 3. Equate the desired voltage or resistance of the network over temperature and graph its response. The desired voltage/resistance is then imported into the code using a polynomial equation. 4. Calculate the mean square error of each population element. 5. Sort the population from lowest error to highest error and graph the best solution. 6. Eliminate the worst solution and randomly or methodically combine the remaining elements to create a second generation of population elements. 7. Introduce randomness by introducing new random population elements or by randomly changing one or more variables in one or more of the existing population elements. 8. Return to step 4 and repeat until the mean square error is sufficiently low and the user decides to stop the process. At this point you may be asking yourself, "How does this solve the network values?" Just as with genetics and evolution, the solution "grows" from one state to another. The optimal solution is essentially the best genetic code (circuit element values) to the environment (desired circuit response). If you are still shaking your head, it is okay. Your worries will soon be resolved with the following example results. The software's graphical user interface is shown in Figure 7. From this interface, you can select the thermistor network configuration and input the desired response using a polynomial expression. You can select to solve for total resistance or a voltage, the temperature range to optimize, and if 1% or 5% resistor values should be used. Pressing the "Run" button starts the algorithm. The mean square error, iteration count, and the component values for the current best solution are then updated as the program runs. Figure 7. Software makes the process of determining the thermistor values to match the desired response very simple. A graph is also drawn showing the desired response (in green) as well as the current best solution (shown in red). The graphical output after the computer has run 30 iterations is shown in Figure 8. As seen in this figure, the response is nonideal. After 500 iterations, which take approximately 10 seconds, a very good response has been generated (Figure 9). Letting the program run while you take a quick break, reveals the results shown in Figure 10, which is almost an exact match. Page 7 of 11

Figure 8. Voltage vs. temperature curve shows the actual and desired output after 30 iterations. Page 8 of 11

Figure 9. Voltage vs. temperature curve shows the actual and desired output after 500 iterations. Page 9 of 11

Figure 10. Voltage vs. temperature curve shows how the actual and desired output now match. Using Figure 1 as a reference, this solution is composed of the following component values: R1 = 8.2k, R2 = 3.6k, R3 = 2.2k, R4 = 1.1k TH1 = 47k Beta = 4700, TH2 = 40 Beta = 2750 The speed of convergence will vary from one test to another. It will converge much faster with a simpler network; it will take longer in general to converge with a more complicated network or if 1% resistor values are used because there are more variables to choose among. Putting this all into perspective, a network composed of two thermistors and four resistors was closely matched to the desired temperature response in less than 30 seconds using only standard component values. If you are still shaking your head trying to understand how genetics have been used to solve a circuit problem, then please download the program and try it out. You will be amazed at how quickly solutions to thermistor networks can be found using the Genetic Algorithm. References 1. www.wikipedia.com, Genetic Algorithm. 2. Microsoft Visual Basic 2005 Express Edition, download. A similar article appeared on the EDN website on March 19, 2008. Windows is a registered trademark of Microsoft Corp. Page 10 of 11

Application Note 3981: www.maxim-ic.com/an3981 More Information For technical support: www.maxim-ic.com/support For samples: www.maxim-ic.com/samples Other questions and comments: www.maxim-ic.com/contact Automatic Updates Would you like to be automatically notified when new application notes are published in your areas of interest? Sign up for EE-Mail. AN3981, AN 3981, APP3981, Appnote3981, Appnote 3981 Copyright by Maxim Integrated Products Additional legal notices: www.maxim-ic.com/legal Page 11 of 11