Monday, April 4, 2011

The operational Amplifier

Long before the advent of digital electronic technology, computers were built to electronically perform calculations by employing voltages and currents to represent numerical quantities. This was especially useful for the simulation of physical processes. A variable voltage, for instance, might represent velocity or force in a physical system. Through the use of resistive voltage dividers and voltage amplifiers, the mathematical operations of division and multiplication could be easily performed on these signals.
The reactive properties of capacitors and inductors lend themselves well to the simulation of variables related by calculus functions. Remember how the current through a capacitor was a function of the voltage's rate of change, and how that rate of change was designated in calculus as the derivative? Well, if voltage across a capacitor were made to represent the velocity of an object, the current through the capacitor would represent the force required to accelerate or decelerate that object, the capacitor's capacitance representing the object's mass:

This analog electronic computation of the calculus derivative function is technically known as differentiation, and it is a natural function of a capacitor's current in relation to the voltage applied across it. Note that this circuit requires no "programming" to perform this relatively advanced mathematical function as a digital computer would.
Electronic circuits are very easy and inexpensive to create compared to complex physical systems, so this kind of analog electronic simulation was widely used in the research and development of mechanical systems. For realistic simulation, though, amplifier circuits of high accuracy and easy configurability were needed in these early computers.
It was found in the course of analog computer design that differential amplifiers with extremely high voltage gains met these requirements of accuracy and configurability better than single-ended amplifiers with custom-designed gains. Using simple components connected to the inputs and output of the high-gain differential amplifier, virtually any gain and any function could be obtained from the circuit, overall, without adjusting or modifying the internal circuitry of the amplifier itself. These high-gain differential amplifiers came to be known as operational amplifiers, or op-amps, because of their application in analog computers' mathematical operations.
Modern op-amps, like the popular model 741, are high-performance, inexpensive integrated circuits. Their input impedances are quite high, the inputs drawing currents in the range of half a microamp (maximum) for the 741, and far less for op-amps utilizing field-effect input transistors. Output impedance is typically quite low, about 75 Ω for the model 741, and many models have built-in output short circuit protection, meaning that their outputs can be directly shorted to ground without causing harm to the internal circuitry. With direct coupling between op-amps' internal transistor stages, they can amplify DC signals just as well as AC (up to certain maximum voltage-risetime limits). It would cost far more in money and time to design a comparable discrete-transistor amplifier circuit to match that kind of performance, unless high power capability was required. For these reasons, op-amps have all but obsoleted discrete-transistor signal amplifiers in many applications.
The following diagram shows the pin connections for single op-amps (741 included) when housed in an 8-pin DIP (Dual Inline Package) integrated circuit:

Some models of op-amp come two to a package, including the popular models TL082 and 1458. These are called "dual" units, and are typically housed in an 8-pin DIP package as well, with the following pin connections:

Operational amplifiers are also available four to a package, usually in 14-pin DIP arrangements. Unfortunately, pin assignments aren't as standard for these "quad" op-amps as they are for the "dual" or single units. Consult the manufacturer datasheet(s) for details.
Practical operational amplifier voltage gains are in the range of 200,000 or more, which makes them almost useless as an analog differential amplifier by themselves. For an op-amp with a voltage gain (AV) of 200,000 and a maximum output voltage swing of +15V/-15V, all it would take is a differential input voltage of 75 µV (microvolts) to drive it to saturation or cutoff! Before we take a look at how external components are used to bring the gain down to a reasonable level, let's investigate applications for the "bare" op-amp by itself.
One application is called the comparator. For all practical purposes, we can say that the output of an op-amp will be saturated fully positive if the (+) input is more positive than the (-) input, and saturated fully negative if the (+) input is less positive than the (-) input. In other words, an op-amp's extremely high voltage gain makes it useful as a device to compare two voltages and change output voltage states when one input exceeds the other in magnitude.

In the above circuit, we have an op-amp connected as a comparator, comparing the input voltage with a reference voltage set by the potentiometer (R1). If Vin drops below the voltage set by R1, the op-amp's output will saturate to +V, thereby lighting up the LED. Otherwise, if Vin is above the reference voltage, the LED will remain off. If Vin is a voltage signal produced by a measuring instrument, this comparator circuit could function as a "low" alarm, with the trip-point set by R1. Instead of an LED, the op-amp output could drive a relay, a transistor, an SCR, or any other device capable of switching power to a load such as a solenoid valve, to take action in the event of a low alarm.
Another application for the comparator circuit shown is a square-wave converter. Suppose that the input voltage applied to the inverting (-) input was an AC sine wave rather than a stable DC voltage. In that case, the output voltage would transition between opposing states of saturation whenever the input voltage was equal to the reference voltage produced by the potentiometer. The result would be a square wave:

Adjustments to the potentiometer setting would change the reference voltage applied to the noninverting (+) input, which would change the points at which the sine wave would cross, changing the on/off times, or duty cycle of the square wave:

It should be evident that the AC input voltage would not have to be a sine wave in particular for this circuit to perform the same function. The input voltage could be a triangle wave, sawtooth wave, or any other sort of wave that ramped smoothly from positive to negative to positive again. This sort of comparator circuit is very useful for creating square waves of varying duty cycle. This technique is sometimes referred to as pulse-width modulation, or PWM (varying, or modulating a waveform according to a controlling signal, in this case the signal produced by the potentiometer).
Another comparator application is that of the bargraph driver. If we had several op-amps connected as comparators, each with its own reference voltage connected to the inverting input, but each one monitoring the same voltage signal on their noninverting inputs, we could build a bargraph-style meter such as what is commonly seen on the face of stereo tuners and graphic equalizers. As the signal voltage (representing radio signal strength or audio sound level) increased, each comparator would "turn on" in sequence and send power to its respective LED. With each comparator switching "on" at a different level of audio sound, the number of LED's illuminated would indicate how strong the signal was.

In the circuit shown above, LED1 would be the first to light up as the input voltage increased in a positive direction. As the input voltage continued to increase, the other LED's would illuminate in succession, until all were lit.
This very same technology is used in some analog-to-digital signal converters, namely the flash converter, to translate an analog signal quantity into a series of on/off voltages representing a digital number.
  • REVIEW:
  • A triangle shape is the generic symbol for an amplifier circuit, the wide end signifying the input and the narrow end signifying the output.
  • Unless otherwise specified, all voltages in amplifier circuits are referenced to a common ground point, usually connected to one terminal of the power supply. This way, we can speak of a certain amount of voltage being "on" a single wire, while realizing that voltage is always measured between two points.
  • A differential amplifier is one amplifying the voltage difference between two signal inputs. In such a circuit, one input tends to drive the output voltage to the same polarity of the input signal, while the other input does just the opposite. Consequently, the first input is called the noninverting (+) input and the second is called the inverting (-) input.
  • An operational amplifier (or op-amp for short) is a differential amplifier with an extremely high voltage gain (AV = 200,000 or more). Its name hails from its original use in analog computer circuitry (performing mathematical operations).
  • Op-amps typically have very high input impedances and fairly low output impedances.
  • Sometimes op-amps are used as signal comparators, operating in full cutoff or saturation mode depending on which input (inverting or noninverting) has the greatest voltage. Comparators are useful in detecting "greater-than" signal conditions (comparing one to the other).
  • One comparator application is called the pulse-width modulator, and is made by comparing a sine-wave AC signal against a DC reference voltage. As the DC reference voltage is adjusted, the square-wave output of the comparator changes its duty cycle (positive versus negative times). Thus, the DC reference voltage controls, or modulates the pulse width of the output voltage.

Friday, April 1, 2011

Linear Variable Differential Transformers: LVDT

What Is An LVDT?

The letters LVDT are an acronym for Linear Variable Differential Transformer, a common type of electromechanical transducer that can convert the rectilinear motion of an object to which it is coupled mechanically into a corresponding electrical signal. LVDT linear position sensors are readily available that can measure movements as small as a few millionths of an inch up to several inches, but are also capable of measuring positions up to ±20 inches (±0.5 m).
Figure 1 shows the components of a typical LVDT. The transformer's internal structure consists of a primary winding centered between a pair of identically wound secondary windings, symmetrically spaced about the primary. The coils are wound on a one-piece hollow form of thermally stable glass reinforced polymer, encapsulated against moisture, wrapped in a high permeability magnetic shield, and then secured in a cylindrical stainless steel housing. This coil assembly is usually the stationary element of the position sensor.
The moving element of an LVDT is a separate tubular armature of magnetically permeable material called the core, which is free to move axially within the coil's hollow bore, and mechanically coupled to the object whose position is being measured. This bore is typically large enough to provide substantial radial clearance between the core and bore, with no physical contact between it and the coil.
In operation, the LVDT's primary winding is energized by alternating current of appropriate amplitude and frequency, known as the primary excitation. The LVDT's electrical output signal is the differential AC voltage between the two secondary windings, which varies with the axial position of the core within the LVDT coil. Usually this AC output voltage is converted by suitable electronic circuitry to high level DC voltage or current that is more convenient to use.
Figure 1
The features that make an LVDT environmentally robust are evident in this cutaway view.

How Does An LVDT Work?

Figure 2 illustrates what happens when the LVDT's core is in different axial positions. The LVDT's primary winding, P, is energized by a constant amplitude AC source. The magnetic flux thus developed is coupled by the core to the adjacent secondary windings, S1 and S2. If the core is located midway between S1 and S2, equal flux is coupled to each secondary so the voltages, E1 and E2, induced in windings S1 and S2 respectively, are equal. At this reference midway core position, known as the null point, the differential voltage output, (E1 - E2), is essentially zero.
As shown in Figure 2, if the core is moved closer to S1 than to S2, more flux is coupled to S1 and less to S2, so the induced voltage E1 is increased while E2 is decreased, resulting in the differential voltage (E1 - E2). Conversely, if the core is moved closer to S2, more flux is coupled to S2 and less to S1, so E2 is increased as E1 is decreased, resulting in the differential voltage (E2 - E1).
Figure 2
Figure 3A shows how the magnitude of the differential output voltage, EOUT, varies with core position. The value of EOUT at maximum core displacement from null depends upon the amplitude of the primary excitation voltage and the sensitivity factor of the particular LVDT, but is typically several volts RMS. The phase angle of this AC output voltage, EOUT, referenced to the primary excitation voltage, stays constant until the center of the core passes the null point, where the phase angle changes abruptly by 180 degrees, as shown graphically in Figure 3B.
This 180 degree phase shift can be used to determine the direction of the core from the null point by means of appropriate circuitry. This is shown in Figure 3C, where the polarity of the output signal represents the core's positional relationship to the null point. The figure shows also that the output of an LVDT is very linear over its specified range of core motion, but that the sensor can be used over an extended range with some reduction in output linearity.
Figure 3
The output characteristics of an LVDT vary with different positions of the core. Full range output is a large signal, typically a volt or more, and often requires no amplification. Note that an LVDT continues to operate beyond 100% of full range, but with degraded linearity.

LVDT Support Electronics

Although an LVDT is an electrical transformer, it requires AC power of an amplitude and frequency quite different from ordinary power lines to operate properly (typically 3 Vrms at 3 kHz). Supplying this excitation power for an LVDT is one of several functions of LVDT support electronics, which is also sometimes known as LVDT signal conditioning equipment.
Other functions include converting the LVDT's low level AC voltage output into high level DC signals that are more convenient to use, decoding directional information from the 180 degree output phase shift as an LVDT's core moves through the null point, and providing an electrically adjustable output zero level.
A variety of LVDT signal conditioning electronics is available, including chip-level and board-level products for OEM applications as well as modules and complete laboratory instruments for users.
The support electronics can also be self-contained, as in the DC-LVDT shown in Figure 4. These easy-to-use position transducers offer practically all of the LVDT's benefits with the simplicity of DC-in, DC-out operation. Of course, LVDTs with integral electronics may not be suitable for some applications, or might not be packaged appropriately for some installation environments.
Figure 4
The cross sectional view of the DC-LVDT at left shows the builtin signal conditioning electronics module. The module is secured with a potting compound that is not shown in this drawing.

Why Use An LVDT?

LVDTs have certain significant features and benefits, most of which derive from its fundamental physical principles of operation or from the materials and techniques used in its construction.

Friction-Free Operation

One of the most important features of an LVDT is its friction-free operation. In normal use, there is no mechanical contact between the LVDT's core and coil assembly, so there is no rubbing, dragging or other source of friction. This feature is particularly useful in materials testing, vibration displacement measurements, and high resolution dimensional gaging systems.

Infinite Resolution

Since an LVDT operates on electromagnetic coupling principles in a friction-free structure, it can measure infinitesimally small changes in core position. This infinite resolution capability is limited only by the noise in an LVDT signal conditioner and the output display's resolution. These same factors also give an LVDT its outstanding repeatability.

Unlimited Mechanical Life

Because there is normally no contact between the LVDT's core and coil structure, no parts can rub together or wear out. This means that an LVDT features unlimited mechanical life. This factor is especially important in high reliability applications such as aircraft, satellites and space vehicles, and nuclear installations. It is also highly desirable in many industrial process control and factory automation systems.

Overtravel Damage Resistant

The internal bore of most LVDTs is open at both ends. In the event of unanticipated overtravel, the core is able to pass completely through the sensor coil assembly without causing damage. This invulnerability to position input overload makes an LVDT the ideal sensor for applications like extensometers that are attached to tensile test samples in destructive materials testing apparatus.

Single Axis Sensitivity

An LVDT responds to motion of the core along the coil's axis, but is generally insensitive to cross-axis motion of the core or to its radial position. Thus, an LVDT can usually function without adverse effect in applications involving misaligned or floating moving members, and in cases where the core doesn't travel in a precisely straight line.

Separable Coil And Core

Because the only interaction between an LVDT's core and coil is magnetic coupling, the coil assembly can be isolated from the core by inserting a non-magnetic tube between the core and the bore. By doing so, a pressurized fluid can be contained within the tube, in which the core is free to move, while the coil assembly is unpressurized. This feature is often utilized in LVDTs used for spool position feedback in hydraulic proportional and/or servo valves.

Environmentally Robust

The materials and construction techniques used in assembling an LVDT result in a rugged, durable sensor that is robust to a variety of environmental conditions. Bonding of the windings is followed by epoxy encapsulation into the case, resulting in superior moisture and humidity resistance, as well as the capability to take substantial shock loads and high vibration levels in all axes. And the internal high-permeability magnetic shield minimizes the effects of external AC fields.
Both the case and core are made of corrosion resistant metals, with the case also acting as a supplemental magnetic shield. And for those applications where the sensor must withstand exposure to flammable or corrosive vapors and liquids, or operate in pressurized fluid, the case and coil assembly can be hermetically sealed using a variety of welding processes.
Ordinary LVDTs can operate over a very wide temperature range, but, if required, they can be produced to operate down to cryogenic temperatures, or, using special materials, operate at the elevated temperatures and radiation levels found in many nuclear reactors.

Null Point Repeatibility

The location of an LVDT's intrinsic null point is extremely stable and repeatable, even over its very wide operating temperature range. This makes an LVDT perform well as a null position sensor in closed-loop control systems and highperformance servo balance instruments.

Fast Dynamic Response

The absence of friction during ordinary operation permits an LVDT to respond very fast to changes in core position. The dynamic response of an LVDT sensor itself is limited only by the inertial effects of the core's slight mass. More often, the response of an LVDT sensing system is determined by characteristics of the signal conditioner.

Absolute Output

An LVDT is an absolute output device, as opposed to an incremental output device. This means that in the event of loss of power, the position data being sent from the LVDT will not be lost. When the measuring system is restarted, the LVDT's output value will be the same as it was before the power failure occurred.

Monday, December 27, 2010

Basic mechanics

The branch of physics that deals with the action of forces on matter is referred to as mechanics. All considerations of motion are addressed by mechanics, as well as the transmission of forces through the use of simple machines. In our class, the goal is a mechanical goal (placing blocks into a bin) and electronics are used to control the mechanics.

While it is not necessary to sit down and draw free body diagrams or figure out the static coefficient of friction between the LEGO tires and the game board, it is helpful to keep certain mechanical concepts in mind when constructing a robot. If a robot's tires are spinning because they do not grip the floor, then something must be done to increase the friction between the tires and the floor. One solution is to glue a rubber band around the circumference of the tire. That problem/solution did not require an in-depth study of physics. Simply considering the different possibilities can lead to more mechanically creative robots.

Describing motion involves more than just saying that an object moved three feet to the right. The magnitude and direction of the displacement are important, but so are the characteristics of the object's velocity and acceleration. To understand these concepts, we must examine the nature of force. Changes in the motion of an object are created by forces.

Click here to read more about basic mechanics and its principals.