Kamis, 15 Juni 2017

Picklings, sensors, performance in electronic in opto optocoupler , solid state , real time clock AMNIMARJESLOW AL DO FOUR DO AL ONE LJBUSAF thankyume orbit

  

                            Speed monitoring in the pickling ventilation system 

 
                           Pickling   

  Space_ITS

x ample  : Pickling is the first step in the production process of cold-rolled strip. First, the coils from the hot strip mill are welded into endless strips. In the continuous pickling line the scale that forms on the hot strip during hot rolling is rinsed with hydrochloric acid. This creates a bare metallic strip surface.
To ensure an uninterrupted pickling process, the continuous pickling line features a strip accumulator, also called a looper. The strip is accumulated to avoid unintentional standstill or operational stops,  for coil welding.

 
 
  
  
 
                                                                        X  .  I  
                                                              Kinds of Sensors 
 
 Sensors are tools that can be used to detect something (such as: temperature, speed, distance etc.) and often serve to measure the magnitude (amount) of something. The sensor is a type of transducer (converting power into another power) such as changing mechanical, magnetic, heat, chemical and light variations into voltage and electric current. Sensors are usually categorized by the meter and play an important role in the control of modern manufacturing processes. The sensors provide the eye, ears, nose and tongue of the tongue and become the microprocessor's brain of industrial automation systems. So the sensor is very important in the manufacture of automation tools such as in the field of industry, and others.  
x ample sensor function picture :
 
     Hasil gambar untuk gambar sensor sensor electronic

 
 
Here are the various Sensors and their Functions and Implementation:  
 
                             Hasil gambar untuk gambar sensor sensor electronic 
 
                                              Sensors On Electronic Fuel Injection
 
1. Light sensorLight Sensor 
 
          Hasil gambar untuk gambar sensor sensor electronic

 
 
 
 

Light sensors, as the name suggests, are used against objects that have shapes of color or light, which are converted into different power.The light sensor consists of 3 kinds of categories:· Photovoltaic, the working procedure of this sensor that is, convert direct light energy into electrical energy, in the presence of irradiation of light will cause the movement of electrons and generate voltage.· Photoconductive this sensor provides a change of resistance (resistance) in the cells. Principle of work, the higher the intensity of light received the sensor, the smaller the value of the resistance.· Photoelectric, work-principle sensor based on reflection due to change of position / distance of a light source (infrared or laser) or its reflecting target, consisting of the light source and receiver pair.Here are some examples of light sensors:
A. LDR (Light Dependent Resistor)This sensor serves to convert the intensity of light into electrical resistance. The working principle of LDR (Light Dependent Resistors) is, the higher the intensity of light that concerns the surface of LDR (Light Dependent Resistor), the greater the electrical resistance generated, and vice versa. This sensor can be implemented in the manufacture of automatic lights. Lights that automatically live at night, and die during the day. Lights live because the light intensity read by the sensor is very minimal, and vice versa.

B. PhotodiodeThis photodiode serves to change the intensity of light into diode conductivity. A photodiode similar to the diode in general, the difference in this photodiode is the fitting of a lens focusing lens to focus the falling beam at the "p n" encounter.
  
  Hasil gambar untuk gambar sensor sensor electronic
Working principle: The light emitting energy falling at the "p n" encounter causes an electron to move to a higher energy level. The electrons move out of the band's valence leaving the hole generating a free electron pair and a hole. know about this one robot, Line Follower or more details Line Tracer. The Photodiode sensor is used to accept the color difference input from the line object reflected by the LED light beam, so that Line Tracer can proceed precisely over the line.
C. Phototransistor  
 
                                                   Hasil gambar untuk gambar sensor sensor electronic

Serves to change the intensity of light into the conductivity of the transistor. The phototransistor is similar to the transistor in general. The difference lies in, phototransistor mounted a lens focusing lens on the base foot to focus the falling light at meeting "p n".  
 
2. Pressure Sensor
Pressure SensorThis sensor pressure sensor has a transducer that measures wire strain, which converts mechanical voltage into electrical signals. The basis of its sensing on changes in transducer resistance (transducer) is changed due to changes in length and area of ​​its cross section. Examples of products that use Pressure sensors, such as: A tool for automatic detection of adult blood pressure. The device is performed with a cuff attached to the patient's arm, then pumped up to a certain pressure which is then just done a blood pressure measurement.

3. Proximity Sensor
Proximity SensorThe proximity sensor or so-called "proximity sensor" is a sensor capable of detecting the presence of nearby objects without direct physical contact. Usually this sensor consists of a solid-state electronics instrument wrapped tightly to protect from the effects of vibration, fluid, chemicals, and corrosive excessive. Proximity sensors can be applied to sensing conditions on objects that are considered too small or soft to drive a mechanical switch. Example of utilization of Proximity sensor is on Smartphone which in its application using Air Gesture technique. Where users can do access management to the smartphone without making physical contact to the smartphone screen. 
   
                                  Hasil gambar untuk gambar sensor sensor electronic


4. Ultrasonic Sensor
Ultrasonic Sensor  
 
 
     Hasil gambar untuk gambar sensor sensor electronic

Ultrasonic sensors work on the principle of the reflection of sound waves, where these sensors produce sound waves which then capture them back with time difference as the basis for their sensing. The time difference between the sound waves emitted by the re-capture of the sound waves is directly proportional to the distance or height of the object that reflects it. Types of objects that can be sensed include: solid objects, liquid, granules and textiles. Many products are on processing using Ultrasonic sensors. 
 
Hasil gambar untuk gambar sensor sensor electronic
5. Speed ​​Sensor (RPM)
Speed ​​Sensor (RPM)The process of sensing the speed sensor is the reverse process of a motor, in which a rotating axis on a generator will produce a voltage proportional to the speed of the rotation of the object. Rotation speed is often measured using sensors that sense magnetic pulses (induces) that arise when a magnetic field occurs. For example on speedometer. The tool measures the speed of motor speed in kilometers per hour.
 
      Hasil gambar untuk gambar sensor sensor electronic  
 
 
6. Magnet Sensor

Magnet Sensor
Magnet sensor or also called magnetic relay, is a tool that will be affected by magnetic field and will give change condition at output. Like a switch two conditions (on / off) is driven by the presence of magnetic field around it. Usually this sensor is packaged in a vacuum packing and free of dust, moisture, smoke or steam. Implementation of this tool such as, Computer-based magnetic field measurements consist of magnetic field sensor UGN3503, Op-Amp LM358 and ADC 0804. The working principle of the tool is closer to the magnet on the sensor. The sensor output of the voltage will be amplified by the op-amp to be processed by the ADC. Next the voltage is converted by ADC into digital data, then processed by computer with visual basic program and the result is displayed on PC. 
 
7. Sensor Encoder (Encoder)
Encoding Sensor   
 
 
                                    Gambar terkait  



Encoder (Encoder) is used to convert linear or spin movements into digital signals, where the rotating sensor monitors the rotary motion of a device. This sensor usually consists of 2 layers of encoding type, namely; First, an additional rotary encoder (which transmits a certain amount of pulses for each round) that will generate a square wave on the object being rotated. Second, the absolute coding (which completes certain binary codes for each corner position) has the same way of working with the exceptions, the more or more density of the resulting square wave pulse in order to form an encoding in a particular arrangement. Examples of implementation of this sensor can be made into a system that can calculate the strength of earthquakes by using incremental rotary encoder sensor and processed by microcontroller... 
 
8. Temperature SensorTemperature Sensor 

   Hasil gambar untuk gambar sensor sensor electronic



As the name suggests, this sensor is certainly used to detect the temperature. There are 4 main types of commonly used temperature sensors, namely thermocouple (T / C) resistance temperature detector (RTD), thermistor and IC sensor. The thermocouple is essentially composed of a pair of hot and cold transducers which are connected together and melted together, in which there is a distinction arising between the joint and the reference line acting as a reference. Resistance Temperature Detector (RTD) has a basic principle in electrical resistance of metals that vary in proportion to temperature. The comparison of these variations is precision with a high degree of consistency / stability on detection of detainees. Platinum is a material that is often used because it has temperature resistance, linier , stability and reproducibility. Thermistors are heat-sensitive resistors that usually have a negative temperature coefficient, because when the temperature increases the resistance decreases or vice versa. This type is very sensitive with a 5% resistance per C so it can detect small temperature changes. While the IC Sensor is a temperature sensor with integrated circuit that uses chip silicon for weakness sensing . It has a very linear output voltage and current configuration. Usually this sensor is mostly installed on the smoke detector tool used to track the fire.  

                                        Hasil gambar untuk gambar sensor sensor electronic

9. Flow Meter Sensor
Sensor Flow MeterFlow Meter is a sensor used to determine the flow of a material both solid and liquid. In the Industrial World there are various types of Sensor Flow this. For Yang Liquid usually use Turbine type, Electromagnetic, venture meter and others. As for Solid material is usually used from a combination of some instrument equipment used as Flow Meter, for example Weigh Feeder .  
 
                                    Hasil gambar untuk gambar sensor sensor electronic
 
10. Flame sensor  
 
   Hasil gambar untuk gambar sensor sensor electronic


Flame Sensor
This flame sensor can detect a flame with a wavelength of 760 nm ~ 1100 nm. In many robot matches, the detection of flame becomes one of the common rules of the race that never lags. Therefore this sensor is very useful, which you can make 'eye' for the robot to be able to detect the source of the flame, or looking for the ball. Suitable for use on fire-fighting robot and soccer robot.
This flame sensor has a reading angle of 60 degrees, and operates at a temperature of 25 -85 degrees Celsius. And of course for your attention, that the distance between the sensor and the detected object should not be too close, to avoid sensor damage.       
 
 
          Shuttle_Leaving_Earth
 
 
                                                                      X  .  II  
                                                      Sensors and Transducers   
 
                     
 
  
 
  But in order for an electronic circuit or system to perform any useful task or function it needs to be able to communicate with the “real world” whether this is by reading an input signal from an “ON/OFF” switch or by activating some form of output device to illuminate a single light.
In other words, an Electronic System or circuit must be able to “do” something and Sensors and Transducers are the perfect components for doing this.
Related Products: Ambient Light Sensor | Temperature and Humidity Sensors
The word “Transducer” is the collective term used for both Sensors which can be used to sense a wide range of different energy forms such as movement, electrical signals, radiant energy, thermal or magnetic energy etc , and Actuators which can be used to switch voltages or currents.
There are many different types of sensors and transducers, both analogue and digital and input and output available to choose from. The type of input or output transducer being used, really depends upon the type of signal or process being “Sensed” or “Controlled” but we can define a sensor and transducers as devices that converts one physical quantity into another.
Devices which perform an “Input” function are commonly called Sensors because they “sense” a physical change in some characteristic that changes in response to some excitation, for example heat or force and covert that into an electrical signal. Devices which perform an “Output” function are generally called Actuators and are used to control some external device, for example movement or sound.
Electrical Transducers are used to convert energy of one kind into energy of another kind, so for example, a microphone (input device) converts sound waves into electrical signals for the amplifier to amplify (a process), and a loudspeaker (output device) converts these electrical signals back into sound waves and an example of this type of simple Input / Output (I/O) system is given below.

Simple Input / Output System using Sound Transducers

sound transducer system
There are many different types of sensors and transducers available in the marketplace, and the choice of which one to use really depends upon the quantity being measured or controlled, with the more common types given in the table below.

Common Sensors and Transducers

Quantity being
Measured
Input Device
(Sensor)
Output Device
(Actuator)
Light LevelLight Dependant Resistor (LDR)
Photodiode
Photo-transistor
Solar Cell
Lights & Lamps
LED’s & Displays
Fibre Optics
TemperatureThermocouple
Thermistor
Thermostat
Resistive Temperature Detectors
Heater
Fan
Force/PressureStrain Gauge
Pressure Switch
Load Cells
Lifts & Jacks
Electromagnet
Vibration
PositionPotentiometer
Encoders
Reflective/Slotted Opto-switch
LVDT
Motor
Solenoid
Panel Meters
SpeedTacho-generator
Reflective/Slotted Opto-coupler
Doppler Effect Sensors
AC and DC Motors
Stepper Motor
Brake
SoundCarbon Microphone
Piezo-electric Crystal
Bell
Buzzer
Loudspeaker
Input type transducers or sensors, produce a voltage or signal output response which is proportional to the change in the quantity that they are measuring (the stimulus). The type or amount of the output signal depends upon the type of sensor being used. But generally, all types of sensors can be classed as two kinds, either Passive Sensors or Active Sensors.
Generally, active sensors require an external power supply to operate, called an excitation signal which is used by the sensor to produce the output signal. Active sensors are self-generating devices because their own properties change in response to an external effect producing for example, an output voltage of 1 to 10v DC or an output current such as 4 to 20mA DC. Active sensors can also produce signal amplification.
A good example of an active sensor is an LVDT sensor or a strain gauge. Strain gauges are pressure-sensitive resistive bridge networks that are external biased (excitation signal) in such a way as to produce an output voltage in proportion to the amount of force and/or strain being applied to the sensor.
Unlike an active sensor, a passive sensor does not need any additional power source or excitation voltage. Instead a passive sensor generates an output signal in response to some external stimulus. For example, a thermocouple which generates its own voltage output when exposed to heat. Then passive sensors are direct sensors which change their physical properties, such as resistance, capacitance or inductance etc.
But as well as analogue sensors, Digital Sensors produce a discrete output representing a binary number or digit such as a logic level “0” or a logic level “1”.

Analogue and Digital Sensors 

 
   James Webb space telescope

Analogue Sensors

Analogue Sensors produce a continuous output signal or voltage which is generally proportional to the quantity being measured. Physical quantities such as Temperature, Speed, Pressure, Displacement, Strain etc are all analogue quantities as they tend to be continuous in nature. For example, the temperature of a liquid can be measured using a thermometer or thermocouple which continuously responds to temperature changes as the liquid is heated up or cooled down.

Thermocouple used to produce an Analogue Signal

analogue signal
Analogue sensors tend to produce output signals that are changing smoothly and continuously over time. These signals tend to be very small in value from a few mico-volts (uV) to several milli-volts (mV), so some form of amplification is required.
Then circuits which measure analogue signals usually have a slow response and/or low accuracy. Also analogue signals can be easily converted into digital type signals for use in micro-controller systems by the use of analogue-to-digital converters, or ADC’s.

Digital Sensors

As its name implies, Digital Sensors produce a discrete digital output signals or voltages that are a digital representation of the quantity being measured. Digital sensors produce a Binary output signal in the form of a logic “1” or a logic “0”, (“ON” or “OFF”). This means then that a digital signal only produces discrete (non-continuous) values which may be outputted as a single “bit”, (serial transmission) or by combining the bits to produce a single “byte” output (parallel transmission).

Light Sensor used to produce an Digital Signal

digital signal
In our simple example above, the speed of the rotating shaft is measured by using a digital LED/Opto-detector sensor. The disc which is fixed to a rotating shaft (for example, from a motor or robot wheels), has a number of transparent slots within its design. As the disc rotates with the speed of the shaft, each slot passes by the sensor in turn producing an output pulse representing a logic “1” or logic “0” level.
These pulses are sent to a register of counter and finally to an output display to show the speed or revolutions of the shaft. By increasing the number of slots or “windows” within the disc more output pulses can be produced for each revolution of the shaft. The advantage of this is that a greater resolution and accuracy is achieved as fractions of a revolution can be detected. Then this type of sensor arrangement could also be used for positional control with one of the discs slots representing a reference position.
Compared to analogue signals, digital signals or quantities have very high accuracies and can be both measured and “sampled” at a very high clock speed. The accuracy of the digital signal is proportional to the number of bits used to represent the measured quantity. For example, using a processor of 8 bits, will produce an accuracy of 0.390% (1 part in 256). While using a processor of 16 bits gives an accuracy of 0.0015%, (1 part in 65,536) or 260 times more accurate. This accuracy can be maintained as digital quantities are manipulated and processed very rapidly, millions of times faster than analogue signals.
In most cases, sensors and more specifically analogue sensors generally require an external power supply and some form of additional amplification or filtering of the signal in order to produce a suitable electrical signal which is capable of being measured or used. One very good way of achieving both amplification and filtering within a single circuit is to use Operational Amplifiers as seen before.

Signal Conditioning of Sensors

As we saw in the Operational Amplifier tutorial, op-amps can be used to provide amplification of signals when connected in either inverting or non-inverting configurations.
The very small analogue signal voltages produced by a sensor such as a few milli-volts or even pico-volts can be amplified many times over by a simple op-amp circuit to produce a much larger voltage signal of say 5v or 5mA that can then be used as an input signal to a microprocessor or analogue-to-digital based system.
Therefore, to provide any useful signal a sensors output signal has to be amplified with an amplifier that has a voltage gain up to 10,000 and a current gain up to 1,000,000 with the amplification of the signal being linear with the output signal being an exact reproduction of the input, just changed in amplitude.
Then amplification is part of signal conditioning. So when using analogue sensors, generally some form of amplification (Gain), impedance matching, isolation between the input and output or perhaps filtering (frequency selection) may be required before the signal can be used and this is conveniently performed by Operational Amplifiers.
Also, when measuring very small physical changes the output signal of a sensor can become “contaminated” with unwanted signals or voltages that prevent the actual signal required from being measured correctly. These unwanted signals are called “Noise“. This Noise or Interference can be either greatly reduced or even eliminated by using signal conditioning or filtering techniques as we discussed in the Active Filter tutorial.
By using either a Low Pass, or a High Pass or even Band Pass filter the “bandwidth” of the noise can be reduced to leave just the output signal required. For example, many types of inputs from switches, keyboards or manual controls are not capable of changing state rapidly and so low-pass filter can be used. When the interference is at a particular frequency, for example mains frequency, narrow band reject or Notch filters can be used to produce frequency selective filters.

Typical Op-amp Filters

sensors and transducers filters
Were some random noise still remains after filtering it may be necessary to take several samples and then average them to give the final value so increasing the signal-to-noise ratio. Either way, both amplification and filtering play an important role in interfacing both sensors and transducers to microprocessor and electronics based systems in “real world” conditions.
In the next tutorial about Sensors, we will look at Positional Sensors which measure the position and/or displacement of physical objects meaning the movement from one position to another for a specific distance or angle. 

 
As their name implies, Position Sensors detect the position of something which means that they are referenced either to or from some fixed point or position. These types of sensors provide a “positional” feedback.
One method of determining a position, is to use either “distance”, which could be the distance between two points such as the distance travelled or moved away from some fixed point, or by “rotation” (angular movement). For example, the rotation of a robots wheel to determine its distance travelled along the ground. Either way, Position Sensors can detect the movement of an object in a straight line using Linear Sensors or by its angular movement using Rotational Sensors.

The Potentiometer

The most commonly used of all the “Position Sensors”, is the potentiometer because it is an inexpensive and easy to use position sensor. It has a wiper contact linked to a mechanical shaft that can be either angular (rotational) or linear (slider type) in its movement, and which causes the resistance value between the wiper/slider and the two end connections to change giving an electrical signal output that has a proportional relationship between the actual wiper position on the resistive track and its resistance value. In other words, resistance is proportional to position.
potentiometer sensor
Potentiometer
Potentiometers come in a wide range of designs and sizes such as the commonly available round rotational type or the longer and flat linear slider types. When used as a position sensor the moveable object is connected directly to the rotational shaft or slider of the potentiometer.
A DC reference voltage is applied across the two outer fixed connections forming the resistive element. The output voltage signal is taken from the wiper terminal of the sliding contact as shown below.
This configuration produces a potential or voltage divider type circuit output which is proportional to the shaft position. Then for example, if you apply a voltage of say 10v across the resistive element of the potentiometer the maximum output voltage would be equal to the supply voltage at 10 volts, with the minimum output voltage equal to 0 volts. Then the potentiometer wiper will vary the output signal from 0 to 10 volts, with 5 volts indicating that the wiper or slider is at its half-way or center position.

Potentiometer Construction

potentiometer construction
The output signal (Vout) from the potentiometer is taken from the centre wiper connection as it moves along the resistive track, and is proportional to the angular position of the shaft.

Example of a simple Positional Sensing Circuit

potentiometer output
While resistive potentiometer position sensors have many advantages: low cost, low tech, easy to use etc, as a position sensor they also have many disadvantages: wear due to moving parts, low accuracy, low repeatability, and limited frequency response.
But there is one main disadvantage of using the potentiometer as a positional sensor. The range of movement of its wiper or slider (and hence the output signal obtained) is limited to the physical size of the potentiometer being used.
For example a single turn rotational potentiometer generally only has a fixed mechanical rotation of between 0o and about 240 to 330o maximum. However, multi-turn pots of up to 3600o (10 x 360o) of mechanical rotation are also available.
Most types of potentiometers use carbon film for their resistive track, but these types are electrically noisy (the crackle on a radio volume control), and also have a short mechanical life.
Wire-wound pots also known as rheostats, in the form of either a straight wire or wound coil resistive wire can also be used, but wire wound pots suffer from resolution problems as their wiper jumps from one wire segment to the next producing a logarithmic (LOG) output resulting in errors in the output signal. These too suffer from electrical noise.
For high precision low noise applications conductive plastic resistance element type polymer film or cermet type potentiometers are now available. These pots have a smooth low friction electrically linear (LIN) resistive track giving them a low noise, long life and excellent resolution and are available as both multi-turn and single turn devices. Typical applications for this type of high accuracy position sensor is in computer game joysticks, steering wheels, industrial and robot applications.

Inductive Position Sensors

Linear Variable Differential Transformer

One type of positional sensor that does not suffer from mechanical wear problems is the “Linear Variable Differential Transformer” or LVDT for short. This is an inductive type position sensor which works on the same principle as the AC transformer that is used to measure movement. It is a very accurate device for measuring linear displacement and whose output is proportional to the position of its moveable core.
It basically consists of three coils wound on a hollow tube former, one forming the primary coil and the other two coils forming identical secondaries connected electrically together in series but 180o out of phase either side of the primary coil.
A moveable soft iron ferromagnetic core (sometimes called an “armature”) which is connected to the object being measured, slides or moves up and down inside the tubular body of the LVDT.
A small AC reference voltage called the “excitation signal” (2 – 20V rms, 2 – 20kHz) is applied to the primary winding which in turn induces an EMF signal into the two adjacent secondary windings (transformer principles).
If the soft iron magnetic core armature is exactly in the centre of the tube and the windings, “null position”, the two induced emf’s in the two secondary windings cancel each other out as they are 180o out of phase, so the resultant output voltage is zero. As the core is displaced slightly to one side or the other from this null or zero position, the induced voltage in one of the secondaries will be become greater than that of the other secondary and an output will be produced.
The polarity of the output signal depends upon the direction and displacement of the moving core. The greater the movement of the soft iron core from its central null position the greater will be the resulting output signal. The result is a differential voltage output which varies linearly with the cores position. Therefore, the output signal from this type of position sensor has both an amplitude that is a linear function of the cores displacement and a polarity that indicates direction of movement.
The phase of the output signal can be compared to the primary coil excitation phase enabling suitable electronic circuits such as the AD592 LVDT Sensor Amplifier to know which half of the coil the magnetic core is in and thereby know the direction of travel.

The Linear Variable Differential Transformer

ldvt position sensor
When the armature is moved from one end to the other through the centre position the output voltages changes from maximum to zero and back to maximum again but in the process changes its phase angle by 180 deg’s. This enables the LVDT to produce an output AC signal whose magnitude represents the amount of movement from the centre position and whose phase angle represents the direction of movement of the core.
A typical application of a linear variable differential transformer (LVDT) sensor would be as a pressure transducer, were the pressure being measured pushes against a diaphragm to produce a force. The force is then converted into a readable voltage signal by the sensor.
Advantages of the linear variable differential transformer, or LVDT compared to a resistive potentiometer are that its linearity, that is its voltage output to displacement is excellent, very good accuracy, good resolution, high sensitivity as well as frictionless operation. They are also sealed for use in hostile environments.

Inductive Proximity Sensors.

Another type of inductive position sensor in common use is the Inductive Proximity Sensor also called an Eddy current sensor. While they do not actually measure displacement or angular rotation they are mainly used to detect the presence of an object in front of them or within a close proximity, hence their name “proximity sensor“.
Proximity sensors, are non-contact position sensors that use a magnetic field for detection with the simplest magnetic sensor being the reed switch. In an inductive sensor, a coil is wound around an iron core within an electromagnetic field to form an inductive loop.
When a ferromagnetic material is placed within the eddy current field generated around the inductive sensor, such as a ferromagnetic metal plate or metal screw, the inductance of the coil changes significantly. The proximity sensors detection circuit detects this change producing an output voltage. Therefore, inductive proximity sensors operate under the electrical principle of Faraday’s Law of inductance.

Inductive Proximity Sensors

inductive proximity sensor
An inductive proximity sensor has four main components; The oscillator which produces the electromagnetic field, the coil which generates the magnetic field, the detection circuit which detects any change in the field when an object enters it and the output circuit which produces the output signal, either with normally closed (NC) or normally open (NO) contacts.
Inductive proximity sensors allow for the detection of metallic objects in front of the sensor head without any physical contact of the object itself being detected. This makes them ideal for use in dirty or wet environments. The “sensing” range of proximity sensors is very small, typically 0.1mm to 12mm.
proximity sensor
Proximity Sensor
As well as industrial applications, inductive proximity sensors are also commonly used to control the flow of traffic by changing of traffic lights at junctions and cross roads. Rectangular inductive loops of wire are buried into the tarmac road surface.
When a car or other road vehicle passes over this inductive loop, the metallic body of the vehicle changes the loops inductance and activates the sensor thereby alerting the traffic lights controller that there is a vehicle waiting.
One main disadvantage of these types of position sensors is that they are “Omni-directional”, that is they will sense a metallic object either above, below or to the side of it. Also, they do not detect non-metallic objects although Capacitive Proximity Sensors and Ultrasonic Proximity Sensors are available. Other commonly available magnetic positional sensors include: reed switches, Hall Effect Sensors and variable reluctance sensors.

Rotary Encoders

Rotary Encoders are another type of position sensor which resemble potentiometers mentioned earlier but are non-contact optical devices used for converting the angular position of a rotating shaft into an analogue or digital data code. In other words, they convert mechanical movement into an electrical signal (preferably digital).
All optical encoders work on the same basic principle. Light from an LED or infra-red light source is passed through a rotating high-resolution encoded disk that contains the required code patterns, either binary, grey code or BCD. Photo detectors scan the disk as it rotates and an electronic circuit processes the information into a digital form as a stream of binary output pulses that are fed to counters or controllers which determine the actual angular position of the shaft.
There are two basic types of rotary optical encoders, Incremental Encoders and Absolute Position Encoders.

Incremental Encoder

optical encoder disk
Encoder Disk
Incremental Encoders, also known as quadrature encoders or relative rotary encoder, are the simplest of the two position sensors. Their output is a series of square wave pulses generated by a photocell arrangement as the coded disk, with evenly spaced transparent and dark lines called segments on its surface, moves or rotates past the light source. The encoder produces a stream of square wave pulses which, when counted, indicates the angular position of the rotating shaft.
Incremental encoders have two separate outputs called “quadrature outputs”. These two outputs are displaced at 90o out of phase from each other with the direction of rotation of the shaft being determined from the output sequence.
The number of transparent and dark segments or slots on the disk determines the resolution of the device and increasing the number of lines in the pattern increases the resolution per degree of rotation. Typical encoded discs have a resolution of up to 256 pulses or 8-bits per rotation.
The simplest incremental encoder is called a tachometer. It has one single square wave output and is often used in unidirectional applications where basic position or speed information only is required. The “Quadrature” or “Sine wave” encoder is the more common and has two output square waves commonly called channel A and channel B. This device uses two photo detectors, slightly offset from each other by 90o thereby producing two separate sine and cosine output signals.

Simple Incremental Encoder

incremental positional encoder
By using the Arc Tangent mathematical function the angle of the shaft in radians can be calculated. Generally, the optical disk used in rotary position encoders is circular, then the resolution of the output will be given as: θ = 360/n, where n equals the number of segments on coded disk.
Then for example, the number of segments required to give an incremental encoder a resolution of 1o will be: 1o = 360/n, therefore, n = 360 windows, etc. Also the direction of rotation is determined by noting which channel produces an output first, either channel A or channel B giving two directions of rotation, A leads B or B leads A. This arrangement is shown below.

Incremental Encoder Output

incremental encoder output
One main disadvantage of incremental encoders when used as a position sensor, is that they require external counters to determine the absolute angle of the shaft within a given rotation. If the power is momentarily shut off, or if the encoder misses a pulse due to noise or a dirty disc, the resulting angular information will produce an error. One way of overcoming this disadvantage is to use absolute position encoders.

Absolute Position Encoder

Absolute Position Encoders are more complex than quadrature encoders. They provide a unique output code for every single position of rotation indicating both position and direction. Their coded disk consists of multiple concentric “tracks” of light and dark segments. Each track is independent with its own photo detector to simultaneously read a unique coded position value for each angle of movement. The number of tracks on the disk corresponds to the binary “bit”-resolution of the encoder so a 12-bit absolute encoder would have 12 tracks and the same coded value only appears once per revolution.

4-bit Binary Coded Disc

absolute positional encoder
One main advantage of an absolute encoder is its non-volatile memory which retains the exact position of the encoder without the need to return to a “home” position if the power fails. Most rotary encoders are defined as “single-turn” devices, but absolute multi-turn devices are available, which obtain feedback over several revolutions by adding extra code disks.
Typical application of absolute position encoders are in computer hard drives and CD/DVD drives were the absolute position of the drives read/write heads are monitored or in printers/plotters to accurately position the printing heads over the paper.
In this tutorial about Position Sensors, we have looked at several examples of sensors that can be used to measure the position or presence of objects. In the next tutorial we will look at sensors that are used to measure temperature such as thermistors, thermostats and thermocouples, and as such are known commonly as Temperature Sensors.   


Temperature Sensors

These types of temperature sensor vary from simple ON/OFF thermostatic devices which control a domestic hot water heating system to highly sensitive semiconductor types that can control complex process control furnace plants.
We remember from our school science classes that the movement of molecules and atoms produces heat (kinetic energy) and the greater the movement, the more heat that is generated. Temperature Sensors measure the amount of heat energy or even coldness that is generated by an object or system, allowing us to “sense” or detect any physical change to that temperature producing either an analogue or digital output.
There are many different types of Temperature Sensor available and all have different characteristics depending upon their actual application. A temperature sensor consists of two basic physical types:
  • Contact Temperature Sensor Types – These types of temperature sensor are required to be in physical contact with the object being sensed and use conduction to monitor changes in temperature. They can be used to detect solids, liquids or gases over a wide range of temperatures.
  • Non-contact Temperature Sensor Types – These types of temperature sensor use convection and radiation to monitor changes in temperature. They can be used to detect liquids and gases that emit radiant energy as heat rises and cold settles to the bottom in convection currents or detect the radiant energy being transmitted from an object in the form of infra-red radiation (the sun).
The two basic types of contact or even non-contact temperature sensors can also be sub-divided into the following three groups of sensors, Electro-mechanical, Resistive and Electronic and all three types are discussed below.

The Thermostat

The Thermostat is a contact type electro-mechanical temperature sensor or switch, that basically consists of two different metals such as nickel, copper, tungsten or aluminium etc, that are bonded together to form a Bi-metallic strip. The different linear expansion rates of the two dissimilar metals produces a mechanical bending movement when the strip is subjected to heat.
The bi-metallic strip can be used itself as an electrical switch or as a mechanical way of operating an electrical switch in thermostatic controls and are used extensively to control hot water heating elements in boilers, furnaces, hot water storage tanks as well as in vehicle radiator cooling systems.

The Bi-metallic Thermostat

bi-metallic strip thermostat
The thermostat consists of two thermally different metals stuck together back to back. When it is cold the contacts are closed and current passes through the thermostat. When it gets hot, one metal expands more than the other and the bonded bi-metallic strip bends up (or down) opening the contacts preventing the current from flowing.
thermostat temperature sensor
On/Off Thermostat
There are two main types of bi-metallic strips based mainly upon their movement when subjected to temperature changes. There are the “snap-action” types that produce an instantaneous “ON/OFF” or “OFF/ON” type action on the electrical contacts at a set temperature point, and the slower “creep-action” types that gradually change their position as the temperature changes.
Snap-action type thermostats are commonly used in our homes for controlling the temperature set point of ovens, irons, immersion hot water tanks and they can also be found on walls to control the domestic heating system.
Creeper types generally consist of a bi-metallic coil or spiral that slowly unwinds or coils-up as the temperature changes. Generally, creeper type bi-metallic strips are more sensitive to temperature changes than the standard snap ON/OFF types as the strip is longer and thinner making them ideal for use in temperature gauges and dials etc.
Although very cheap and are available over a wide operating range, one main disadvantage of the standard snap-action type thermostats when used as a temperature sensor, is that they have a large hysteresis range from when the electrical contacts open until when they close again. For example, it may be set to 20oC but may not open until 22oC or close again until 18oC.
So the range of temperature swing can be quite high. Commercially available bi-metallic thermostats for home use do have temperature adjustment screws that allow for a more precise desired temperature set-point and hysteresis level to be pre-set.

The Thermistor

The Thermistor is another type of temperature sensor, whose name is a combination of the words THERM-ally sensitive res-ISTOR. A thermistor is a special type of resistor which changes its physical resistance when exposed to changes in temperature.
thermistor temperature sensor
Thermistor
Thermistors are generally made from ceramic materials such as oxides of nickel, manganese or cobalt coated in glass which makes them easily damaged. Their main advantage over snap-action types is their speed of response to any changes in temperature, accuracy and repeatability.
Most types of thermistor’s have a Negative Temperature Coefficient of resistance or (NTC), that is their resistance value goes DOWN with an increase in the temperature, and of course there are some which have a Positive Temperature Coefficient, (PTC), in that their resistance value goes UP with an increase in temperature.
Thermistors are constructed from a ceramic type semiconductor material using metal oxide technology such as manganese, cobalt and nickel, etc. The semiconductor material is generally formed into small pressed discs or balls which are hermetically sealed to give a relatively fast response to any changes in temperature.
Thermistors are rated by their resistive value at room temperature (usually at 25oC), their time constant (the time to react to the temperature change) and their power rating with respect to the current flowing through them. Like resistors, thermistors are available with resistance values at room temperature from 10’s of MΩ down to just a few Ohms, but for sensing purposes those types with values in the kilo-ohms are generally used.
Thermistors are passive resistive devices which means we need to pass a current through it to produce a measurable voltage output. Then thermistors are generally connected in series with a suitable biasing resistor to form a potential divider network and the choice of resistor gives a voltage output at some pre-determined temperature point or value for example:

Temperature Sensors Example No1

The following thermistor has a resistance value of 10KΩ at 25oC and a resistance value of 100Ω at 100oC. Calculate the voltage drop across the thermistor and hence its output voltage (Vout) for both temperatures when connected in series with a 1kΩ resistor across a 12v power supply.
thermistor circuit
At 25oC
thermistor at 25 degrees
At 100oC
thermistor at 100 degrees
By changing the fixed resistor value of R2 (in our example 1kΩ) to a potentiometer or preset, a voltage output can be obtained at a predetermined temperature set point for example, 5v output at 60oC and by varying the potentiometer a particular output voltage level can be obtained over a wider temperature range.
It needs to be noted however, that thermistor’s are non-linear devices and their standard resistance values at room temperature is different between different thermistor’s, which is due mainly to the semiconductor materials they are made from. The Thermistor, have an exponential change with temperature and therefore have a Beta temperature constant ( β ) which can be used to calculate its resistance for any given temperature point.
However, when used with a series resistor such as in a voltage divider network or Whetstone Bridge type arrangement, the current obtained in response to a voltage applied to the divider/bridge network is linear with temperature. Then, the output voltage across the resistor becomes linear with temperature.

Resistive Temperature Detectors (RTD).

Another type of electrical resistance temperature sensor is the Resistance Temperature Detector or RTD. RTD’s are precision temperature sensors made from high-purity conducting metals such as platinum, copper or nickel wound into a coil and whose electrical resistance changes as a function of temperature, similar to that of the thermistor. Also available are thin-film RTD’s. These devices have a thin film of platinum paste is deposited onto a white ceramic substrate.
resistive temperature detector
A Resistive RTD
Resistive temperature detectors have positive temperature coefficients (PTC) but unlike the thermistor their output is extremely linear producing very accurate measurements of temperature.
However, they have very poor thermal sensitivity, that is a change in temperature only produces a very small output change for example, 1Ω/oC.
The more common types of RTD’s are made from platinum and are called Platinum Resistance Thermometer or PRT‘s with the most commonly available of them all the Pt100 sensor, which has a standard resistance value of 100Ω at 0oC. The downside is that Platinum is expensive and one of the main disadvantages of this type of device is its cost.
Like the thermistor, RTD’s are passive resistive devices and by passing a constant current through the temperature sensor it is possible to obtain an output voltage that increases linearly with temperature. A typical RTD has a base resistance of about 100Ω at 0oC, increasing to about 140Ω at 100oC with an operating temperature range of between -200 to +600oC.
Because the RTD is a resistive device, we need to pass a current through them and monitor the resulting voltage. However, any variation in resistance due to self heat of the resistive wires as the current flows through it,  I2, (Ohms Law) causes an error in the readings. To avoid this, the RTD is usually connected into a Whetstone Bridge network which has additional connecting wires for lead-compensation and/or connection to a constant current source.

The Thermocouple

The Thermocouple is by far the most commonly used type of all the temperature sensor types. Thermocouples are popular due to its simplicity, ease of use and their speed of response to changes in temperature, due mainly to their small size. Thermocouples also have the widest temperature range of all the temperature sensors from below -200oC to well over 2000oC.
Thermocouples are thermoelectric sensors that basically consists of two junctions of dissimilar metals, such as copper and constantan that are welded or crimped together. One junction is kept at a constant temperature called the reference (Cold) junction, while the other the measuring (Hot) junction. When the two junctions are at different temperatures, a voltage is developed across the junction which is used to measure the temperature sensor as shown below.

Thermocouple Construction

thermocouple temperature sensor
The operating principal of a thermocouple is very simple and basic. When fused together the junction of the two dissimilar metals such as copper and constantan produces a “thermo-electric” effect which gives a constant potential difference of only a few millivolts (mV) between them. The voltage difference between the two junctions is called the “Seebeck effect” as a temperature gradient is generated along the conducting wires producing an emf. Then the output voltage from a thermocouple is a function of the temperature changes.
If both the junctions are at the same temperature the potential difference across the two junctions is zero in other words, no voltage output as V1 = V2. However, when the junctions are connected within a circuit and are both at different temperatures a voltage output will be detected relative to the difference in temperature between the two junctions, V1 – V2. This difference in voltage will increase with temperature until the junctions peak voltage level is reached and this is determined by the characteristics of the two dissimilar metals used.
Thermocouples can be made from a variety of different materials enabling extreme temperatures of
between -200oC to over +2000oC to be measured. With such a large choice of materials and temperature range, internationally recognised standards have been developed complete with thermocouple colour codes to allow the user to choose the correct thermocouple sensor for a particular application. The British colour code for standard thermocouples is given below.

Thermocouple Colour Codes

Thermocouple Sensor Colour CodesExtension and Compensating Leads
Code TypeConductors (+/-)SensitivityBritish BS 1843:1952
ENickel Chromium / Constantan-200 to 900oCtype e thermocouple
JIron / Constantan0 to 750oCtype j thermocouple
KNickel Chromium / Nickel Aluminium-200 to 1250oCtype k thermocouple
NNicrosil / Nisil0 to 1250oCtype n thermocouple
TCopper / Constantan-200 to 350oCtype t thermocouple
UCopper / Copper Nickel Compensating for “S” and “R”0 to 1450oCtype u thermocouple
The three most common thermocouple materials used above for general temperature measurement are Iron-Constantan (Type J), Copper-Constantan (Type T), and Nickel-Chromium (Type K). The output voltage from a thermocouple is very small, only a few millivolts (mV) for a 10oC change in temperature difference and because of this small voltage output some form of amplification is generally required.

Thermocouple Amplification

temperature sensor amplifier
The type of amplifier, either discrete or in the form of an Operational Amplifier needs to be carefully selected, because good drift stability is required to prevent recalibration of the thermocouple at frequent intervals. This makes the chopper and instrumentation type of amplifier preferable for most temperature sensing applications.
Other Temperature Sensor Types not mentioned here include, Semiconductor Junction Sensors, Infra-red and Thermal Radiation Sensors, Medical type Thermometers, Indicators and Colour Changing Inks or Dyes.
In this tutorial about “Temperature Sensor Types”, we have looked at several examples of sensors that can be used to measure changes in temperature. In the next tutorial we will look at sensors that are used to measure light quantity, such as Photodiodes, Phototransistors, Photovoltaic Cells and the Light Dependent Resistor.   


Light Sensors

A Light Sensor generates an output signal indicating the intensity of light by measuring the radiant energy that exists in a very narrow range of frequencies basically called “light”, and which ranges in frequency from “Infra-red” to “Visible” up to “Ultraviolet” light spectrum.

The light sensor is a passive devices that convert this “light energy” whether visible or in the infra-red parts of the spectrum into an electrical signal output. Light sensors are more commonly known as “Photoelectric Devices” or “Photo Sensors” because the convert light energy (photons) into electricity (electrons).
Photoelectric devices can be grouped into two main categories, those which generate electricity when illuminated, such as Photo-voltaics or Photo-emissives etc, and those which change their electrical properties in some way such as Photo-resistors or Photo-conductors. This leads to the following classification of devices.
  • • Photo-emissive Cells – These are photodevices which release free electrons from a light sensitive material such as caesium when struck by a photon of sufficient energy. The amount of energy the photons have depends on the frequency of the light and the higher the frequency, the more energy the photons have converting light energy into electrical energy.
  • • Photo-conductive Cells – These photodevices vary their electrical resistance when subjected to light. Photoconductivity results from light hitting a semiconductor material which controls the current flow through it. Thus, more light increase the current for a given applied voltage. The most common photoconductive material is Cadmium Sulphide used in LDR photocells.
  • • Photo-voltaic Cells – These photodevices generate an emf in proportion to the radiant light energy received and is similar in effect to photoconductivity. Light energy falls on to two semiconductor materials sandwiched together creating a voltage of approximately 0.5V. The most common photovoltaic material is Selenium used in solar cells.
  • • Photo-junction Devices – These photodevices are mainly true semiconductor devices such as the photodiode or phototransistor which use light to control the flow of electrons and holes across their PN-junction. Photojunction devices are specifically designed for detector application and light penetration with their spectral response tuned to the wavelength of incident light.

The Photoconductive Cell

A Photoconductive light sensor does not produce electricity but simply changes its physical properties when subjected to light energy. The most common type of photoconductive device is the Photoresistor which changes its electrical resistance in response to changes in the light intensity.
Photoresistors are Semiconductor devices that use light energy to control the flow of electrons, and hence the current flowing through them. The commonly used Photoconductive Cell is called the Light Dependent Resistor or LDR.

The Light Dependent Resistor

a light dependant resistor
Typical LDR
As its name implies, the Light Dependent Resistor (LDR) is made from a piece of exposed semiconductor material such as cadmium sulphide that changes its electrical resistance from several thousand Ohms in the dark to only a few hundred Ohms when light falls upon it by creating hole-electron pairs in the material.
The net effect is an improvement in its conductivity with a decrease in resistance for an increase in illumination. Also, photoresistive cells have a long response time requiring many seconds to respond to a change in the light intensity.
Materials used as the semiconductor substrate include, lead sulphide (PbS), lead selenide (PbSe), indium antimonide (InSb) which detect light in the infra-red range with the most commonly used of all photoresistive light sensors being Cadmium Sulphide (Cds).
Cadmium sulphide is used in the manufacture of photoconductive cells because its spectral response curve closely matches that of the human eye and can even be controlled using a simple torch as a light source. Typically then, it has a peak sensitivity wavelength (λp) of about 560nm to 600nm in the visible spectral range.

The Light Dependent Resistor Cell

ldr photocell
The most commonly used photoresistive light sensor is the ORP12 Cadmium Sulphide photoconductive cell. This light dependent resistor has a spectral response of about 610nm in the yellow to orange region of light. The resistance of the cell when unilluminated (dark resistance) is very high at about 10MΩ’s which falls to about 100Ω’s when fully illuminated (lit resistance).
To increase the dark resistance and therefore reduce the dark current, the resistive path forms a zigzag pattern across the ceramic substrate. The CdS photocell is a very low cost device often used in auto dimming, darkness or twilight detection for turning the street lights “ON” and “OFF”, and for photographic exposure meter type applications.
ldr voltage divider
Connecting a light dependant resistor in series with a standard resistor like this across a single DC supply voltage has one major advantage, a different voltage will appear at their junction for different levels of light.
The amount of voltage drop across series resistor, R2 is determined by the resistive value of the light dependant resistor, RLDR. This ability to generate different voltages produces a very handy circuit called a “Potential Divider” or Voltage Divider Network.
As we know, the current through a series circuit is common and as the LDR changes its resistive value due to the light intensity, the voltage present at VOUT will be determined by the voltage divider formula. An LDR’s resistance, RLDR can vary from about 100Ω’s in the sun light, to over 10MΩ’s in absolute darkness with this variation of resistance being converted into a voltage variation at VOUT as shown.
One simple use of a Light Dependent Resistor, is as a light sensitive switch as shown below.
ldr switch
LDR Switch
This basic light sensor circuit is of a relay output light activated switch. A potential divider circuit is formed between the photoresistor, LDR and the resistor R1. When no light is present ie in darkness, the resistance of the LDR is very high in the Megaohms (MΩ’s) range so zero base bias is applied to the transistor TR1 and the relay is de-energised or “OFF”.
As the light level increases the resistance of the LDR starts to decrease causing the base bias voltage at V1 to rise. At some point determined by the potential divider network formed with resistor R1, the base bias voltage is high enough to turn the transistor TR1 “ON” and thus activate the relay which in turn is used to control some external circuitry. As the light level falls back to darkness again the resistance of the LDR increases causing the base voltage of the transistor to decrease, turning the transistor and relay “OFF” at a fixed light level determined again by the potential divider network.
By replacing the fixed resistor R1 with a potentiometer VR1, the point at which the relay turns “ON” or “OFF” can be pre-set to a particular light level. This type of simple circuit shown above has a fairly low sensitivity and its switching point may not be consistent due to variations in either temperature or the supply voltage. A more sensitive precision light activated circuit can be easily made by incorporating the LDR into a “Wheatstone Bridge” arrangement and replacing the transistor with an Operational Amplifier as shown.

Light Level Sensing Circuit

light activated switch
In this basic dark sensing circuit, the light dependent resistor LDR1 and the potentiometer VR1 form one adjustable arm of a simple resistance bridge network, also known commonly as a Wheatstone bridge, while the two fixed resistors R1 and R2 form the other arm. Both sides of the bridge form potential divider networks across the supply voltage whose outputs V1 and V2 are connected to the non-inverting and inverting voltage inputs respectively of the operational amplifier.
The operational amplifier is configured as a Differential Amplifier also known as a voltage comparator with feedback whose output voltage condition is determined by the difference between the two input signals or voltages, V1 and V2. The resistor combination R1 and R2 form a fixed voltage reference at input V2, set by the ratio of the two resistors. The LDR – VR1 combination provides a variable voltage input V1 proportional to the light level being detected by the photoresistor.
As with the previous circuit the output from the operational amplifier is used to control a relay, which is protected by a free wheel diode, D1. When the light level sensed by the LDR and its output voltage falls below the reference voltage set at V2 the output from the op-amp changes state activating the relay and switching the connected load.
Likewise as the light level increases the output will switch back turning “OFF” the relay. The hysteresis of the two switching points is set by the feedback resistor Rf can be chosen to give any suitable voltage gain of the amplifier.
The operation of this type of light sensor circuit can also be reversed to switch the relay “ON” when the light level exceeds the reference voltage level and vice versa by reversing the positions of the light sensor LDR and the potentiometer VR1. The potentiometer can be used to “pre-set” the switching point of the differential amplifier to any particular light level making it ideal as a simple light sensor project circuit.

Photojunction Devices

Photojunction Devices are basically PN-Junction light sensors or detectors made from silicon semiconductor PN-junctions which are sensitive to light and which can detect both visible light and infra-red light levels. Photo-junction devices are specifically made for sensing light and this class of photoelectric light sensors include the Photodiode and the Phototransistor.

The Photodiode.

photo-diode
Photo-diode
The construction of the Photodiode light sensor is similar to that of a conventional PN-junction diode except that the diodes outer casing is either transparent or has a clear lens to focus the light onto the PN junction for increased sensitivity. The junction will respond to light particularly longer wavelengths such as red and infra-red rather than visible light.
This characteristic can be a problem for diodes with transparent or glass bead bodies such as the 1N4148 signal diode. LED’s can also be used as photodiodes as they can both emit and detect light from their junction. All PN-junctions are light sensitive and can be used in a photo-conductive unbiased voltage mode with the PN-junction of the photodiode always “Reverse Biased” so that only the diodes leakage or dark current can flow.
The current-voltage characteristic (I/V Curves) of a photodiode with no light on its junction (dark mode) is very similar to a normal signal or rectifying diode. When the photodiode is forward biased, there is an exponential increase in the current, the same as for a normal diode. When a reverse bias is applied, a small reverse saturation current appears which causes an increase of the depletion region, which is the sensitive part of the junction. Photodiodes can also be connected in a current mode using a fixed bias voltage across the junction. The current mode is very linear over a wide range.

Photo-diode Construction and Characteristics

photodiode
When used as a light sensor, a photodiodes dark current (0 lux) is about 10uA for geranium and 1uA for silicon type diodes. When light falls upon the junction more hole/electron pairs are formed and the leakage current increases. This leakage current increases as the illumination of the junction increases.
Thus, the photodiodes current is directly proportional to light intensity falling onto the PN-junction. One main advantage of photodiodes when used as light sensors is their fast response to changes in the light levels, but one disadvantage of this type of photodevice is the relatively small current flow even when fully lit.
The following circuit shows a photo-current-to-voltage converter circuit using an operational amplifier as the amplifying device. The output voltage (Vout) is given as Vout = Ip × Rf and which is proportional to the light intensity characteristics of the photodiode.
This type of circuit also utilizes the characteristics of an operational amplifier with two input terminals at about zero voltage to operate the photodiode without bias. This zero-bias op-amp configuration gives a high impedance loading to the photodiode resulting in less influence by dark current and a wider linear range of the photocurrent relative to the radiant light intensity. Capacitor Cf is used to prevent oscillation or gain peaking and to set the output bandwidth (1/2πRC).

Photo-diode Amplifier Circuit

photodiode amplifier
Photodiodes are very versatile light sensors that can turn its current flow both “ON” and “OFF” in nanoseconds and are commonly used in cameras, light meters, CD and DVD-ROM drives, TV remote controls, scanners, fax machines and copiers etc, and when integrated into operational amplifier circuits as infrared spectrum detectors for fibre optic communications, burglar alarm motion detection circuits and numerous imaging, laser scanning and positioning systems etc.

The Phototransistor

phototransistor
Photo-transistor
An alternative photo-junction device to the photodiode is the Phototransistor which is basically a photodiode with amplification. The Phototransistor light sensor has its collector-base PN-junction reverse biased exposing it to the radiant light source.
Phototransistors operate the same as the photodiode except that they can provide current gain and are much more sensitive than the photodiode with currents are 50 to 100 times greater than that of the standard photodiode and any normal transistor can be easily converted into a phototransistor light sensor by connecting a photodiode between the collector and base.
Phototransistors consist mainly of a bipolar NPN Transistor with its large base region electrically unconnected, although some phototransistors allow a base connection to control the sensitivity, and which uses photons of light to generate a base current which in turn causes a collector to emitter current to flow. Most phototransistors are NPN types whose outer casing is either transparent or has a clear lens to focus the light onto the base junction for increased sensitivity.

Photo-transistor Construction and Characteristics

phototransistor light sensor
In the NPN transistor the collector is biased positively with respect to the emitter so that the base/collector junction is reverse biased. therefore, with no light on the junction normal leakage or dark current flows which is very small. When light falls on the base more electron/hole pairs are formed in this region and the current produced by this action is amplified by the transistor.
Usually the sensitivity of a phototransistor is a function of the DC current gain of the transistor. Therefore, the overall sensitivity is a function of collector current and can be controlled by connecting a resistance between the base and the emitter but for very high sensitivity optocoupler type applications, Darlington phototransistors are generally used.
photo darlington transistor
Photo-darlington
Photodarlington transistors use a second bipolar NPN transistor to provide additional amplification or when higher sensitivity of a photodetector is required due to low light levels or selective sensitivity, but its response is slower than that of an ordinary NPN phototransistor.
Photo darlington devices consist of a normal phototransistor whose emitter output is coupled to the base of a larger bipolar NPN transistor. Because a darlington transistor configuration gives a current gain equal to a product of the current gains of two individual transistors, a photodarlington device produces a very sensitive detector.
Typical applications of Phototransistors light sensors are in opto-isolators, slotted opto switches, light beam sensors, fibre optics and TV type remote controls, etc. Infrared filters are sometimes required when detecting visible light.
Another type of photojunction semiconductor light sensor worth a mention is the Photo-thyristor. This is a light activated thyristor or Silicon Controlled Rectifier, SCR that can be used as a light activated switch in AC applications. However their sensitivity is usually very low compared to equivalent photodiodes or phototransistors.
To help increase their sensitivity to light, photo-thyristors are made thinner around the gate junction. The downside to this process is that it limits the amount of anode current that they can switch. Then for higher current AC applications they are used as pilot devices in opto-couplers to switch larger more conventional thyristors.

Photovoltaic Cells.

The most common type of photovoltaic light sensor is the Solar Cell. Solar cells convert light energy directly into DC electrical energy in the form of a voltage or current to a power a resistive load such as a light, battery or motor. Then photovoltaic cells are similar in many ways to a battery because they supply DC power.
However, unlike the other photo devices we have looked at above which use light intensity even from a torch to operate, photovoltaic solar cells work best using the suns radiant energy.
Solar cells are used in many different types of applications to offer an alternative power source from conventional batteries, such as in calculators, satellites and now in homes offering a form of renewable power.
photovoltaic cell
Photovoltaic Cell
Photovoltaic cells are made from single crystal silicon PN junctions, the same as photodiodes with a very large light sensitive region but are used without the reverse bias. They have the same characteristics as a very large photodiode when in the dark.
When illuminated the light energy causes electrons to flow through the PN junction and an individual solar cell can generate an open circuit voltage of about 0.58v (580mV). Solar cells have a “Positive” and a “Negative” side just like a battery.
Individual solar cells can be connected together in series to form solar panels which increases the output voltage or connected together in parallel to increase the available current. Commercially available solar panels are rated in Watts, which is the product of the output voltage and current (Volts times Amps) when fully lit.

Characteristics of a typical Photovoltaic Solar Cell.

photovoltaic solar cell
The amount of available current from a solar cell depends upon the light intensity, the size of the cell and its efficiency which is generally very low at around 15 to 20%. To increase the overall efficiency of the cell commercially available solar cells use polycrystalline silicon or amorphous silicon, which have no crystalline structure, and can generate currents of between 20 to 40mA per cm2.
Other materials used in the construction of photovoltaic cells include Gallium Arsenide, Copper Indium Diselenide and Cadmium Telluride. These different materials each have a different spectrum band response, and so can be “tuned” to produce an output voltage at different wavelengths of light.
In this tutorial about Light Sensors, we have looked at several examples of devices that are classed as Light Sensors. This includes those with and those without PN-junctions that can be used to measure the intensity of light.
In the next tutorial we will look at output devices called Actuators. Actuators convert an electrical signal into a corresponding physical quantity such as movement, force, or sound. One such commonly used output device is the Electromagnetic Relay.
 
 

Input Devices or Sensors

  • Sensors are “Input” devices which convert one type of energy or quantity into an electrical analogue signal.
  • The most common forms of sensors are those that detect Position, Temperature, Light, Pressure and Velocity.
  • The simplest of all input devices is the switch or push button.
  • Some sensors called “Self-generating” sensors generate output voltages or currents relative to the quantity being measured, such as thermocouples and photo-voltaic solar cells and their output bandwidth equals that of the quantity being measured.
  • Some sensors called “Modulating” sensors change their physical properties, such as inductance or resistance relative to the quantity being measured such as inductive sensors, LDR’s and potentiometers and need to be biased to provide an output voltage or current.
  • Not all sensors produce a straight linear output and linearisation circuitry may be required.
  • Signal conditioning may also be required to provide compatibility between the sensors low output signal and the detection or amplification circuitry.
  • Some form of amplification is generally required in order to produce a suitable electrical signal which is capable of being measured.
  • Instrumentation type Operational Amplifiers are ideal for signal processing and conditioning of a sensors output signal.

Output Devices or Actuators

  • “Output” devices are commonly called Actuators and the simplest of all actuators is the lamp.
  • Relays provide good separation of the low voltage electronic control signals and the high power load circuits.
  • Relays provide separation of DC and AC circuits (i.e. switching an alternating current path via a DC control signal or vice versa).
  • Solid state relays have fast response, long life, no moving parts with no contact arcing or bounce but require heat sinking.
  • Solenoids are electromagnetic devices that are used mainly to open or close pneumatic valves, security doors and robot type applications. They are inductive loads so a flywheel diode is required.
  • Permanent magnet DC motors are cheaper and smaller than equivalent wound motors as they have no field winding.
  • Transistor switches can be used as simple ON/OFF unipolar controllers and pulse width speed control is obtained by varying the duty cycle of the control signal.
  • Bi-directional motor control can be achieved by connecting the motor inside a transistor H-bridge.
  • Stepper motors can be controlled directly using transistor switching techniques.
  • The speed and position of a stepper motor can be accurately controlled using pulses so can operate in an Open-loop mode.
  • Microphones are input sound transducers that can detect acoustic waves either in the Infra sound, Audible sound or Ultrasound range generated by a mechanical vibration.
  • Loudspeakers, buzzers, horns and sounders are output devices and are used to produce an output sound, note or alarm.

Input Interfacing Circuits

Interfacing is the method of connecting or linking together one device, especially a computer or micro-controller with another allowing us to design or adapt the output and input configurations of the two electronic devices so that they can work together.
 
But interfacing is more than just using the software program of computers and processors to control something. While computer interfacing uses the unidirectional and bidirectional input and output ports to drive various peripheral devices, many simple electronic circuits can be used to interface to the real world either using mechanical switches as inputs, or individual LEDs as outputs.
pushbutton switch
Pushbutton Switch
For an electronic or micro-electronic circuit to be useful and effective, it has to interface with something. Input interface circuits connect electronic circuits such as op-amps, logic gates, etc. to the outside world expanding its capabilities.
Electronic circuits amplify, buffer or process signals from sensors or switches as input information or to control lamps, relays or actuators for output control. Either way, input interfacing circuits convert the voltage and current output of one circuit to the equivalent of another.
Input sensors provide an input for information about an environment. Physical quantities such as temperature, pressure or position that vary slowly or continuously with time can be measured using various sensors and switching devices giving an output signal relative to the physical quantity being measured.
Many of the sensors that we can use in our electronic circuits and projects are resistive in that their resistance changes with the measured quantity. For example, thermistors, strain gauges or light dependant resistors (LDR). These devices are all classed as input devices.

Input Interfacing Circuits

The simplest and most common type of input interfacing device is the push button switch. Mechanical ON-OFF toggle switches, push-button switches, rocker switches, key switches and reed switches, etc. are all popular as input devices because of their low cost and easy of input interfacing to any circuit. Also the operator can change the state of an input simply by operating a switch, pressing a button or moving a magnet over a reed switch.

Input Interfacing A Single Switch

input interfacing a single switch
Switches and push-buttons are mechanical devices that have two or more sets of electrical contacts. When the switch is open or disconnected, the contacts are open circuited and when the switch is closed or operated these contacts are shorted together.
The most common way of input interfacing a switch (or push button) to an electronic circuit is via a pull-up resistor to the supply voltage as shown. When the switch is open, 5 volts, or a logic “1” is given as the output signal. When the switch is closed the output is grounded and 0v, or a logic “0” is given as the output.
Then depending upon the position of the switch, a “high” or a “low” output is produced. A pull-up resistor is necessary to hold the output voltage level at the required value (in this example, +5v) when the switch is open and also to prevent the switch from shorting out the supply when closed.
The size of the pull-up resistor depends on the circuit current when the switch is open. For example, with the switch open, current will flow down through the resistor to the VOUT terminal and from Ohms Law this flow of current will cause a voltage drop to appear across the resistor.
Then if we assume a digital logic TTL gate requires an input “HIGH” current of 60 micro-amps (60uA), this causes a voltage drop across the resistor of: 60uA x 10kΩ = 0.6V, producing an input “HIGH” voltage of 5.0 - 0.6 = 4.4V which is well within the input specifications of a standard digital TTL gate.
A switch or push-button can also be connected in “active high” mode where the switch and resistor are reversed so that the switch is connected between the +5V supply voltage and the output. The resistor, which is now known as a pull-down resistor, is connected between the output and the 0v ground. In this configuration when the switch is open, the output signal, VOUT is at 0v, or logic “0”. When the witch is operated the output goes “HIGH” to the +5 volts supply voltage or logic “1”.
Unlike the pull-up resistor which is used to limit the current, the main purpose of a pull-down resistor is to keep the output terminal, VOUT from floating about by tying it to 0v or ground. As result a much smaller resistor can be used as the voltage drop across it will usually be very small. However, using a too small a pull-down resistor value will result in high currents and high power dissipation in the resistor when the switch is closed or operated.

DIP Switch Input Interfacing

dip switch input interfacing
As well as input interfacing individual push-buttons and rocker switches to circuits, we can also interface several switches together in the form of keypads and DIP switches.
DIP or Dual-in-line Package switches are individual switches that are grouped together as four or eight switches within a single package. This allows DIP switches to be inserted into standard IC sockets or wired directly onto a circuit or breadboard.
Each switch within a DIP switch package normally indicates one of two conditions by its ON-OFF status and a four switch DIP package will have four outputs as shown. Both slide and rotary type DIP switches can be connected together or in combinations of two or three switches which makes input interfacing them to a wide range of circuits very easy.
Mechanical switches are popular because of their low cost and ease of input interfacing. However, mechanical switches have a common problem called “contact bounce”. Mechanical switches consist of two pieces of metal contacts which are pushed together to complete a circuit when you operate the switch. But instead of producing a single clean switching action, the metal parts touch and bounce together inside the body of the switch causing the switching mechanism to open and close several times very quickly.
Because the mechanical switch contacts are designed to open and close quickly, there is very little resistance, called damping to stop the contacts from bouncing about as they make or break. The result is that this bouncing action produces a series of pulses or voltage spikes before the switch makes a solid contact.

Switch Bounce Waveform

switch bounce waveform
The problem is that any electronic or digital circuit which the mechanical switch is input interfaced too could read these multiple switch operations as a series of ON and OFF signals lasting several milliseconds instead of just the one intended single and positive switching action.
This multiple switch closing (or opening) action is called Switch Bounce in switches with the same action being called Contact Bounce in relays. Also, as switch and contact bounce occurs during both the opening and closing actions, the resultant bouncing and arcing across the contacts causes wear, increases contact resistance, and lowers the working life of the switch.
However, there are several ways in which we can solve this problem of switch bounce by using some extra circuitry in the form of a debounce circuit to “de-bounce” the input signal. The easiest and most simplest way is to create an RC debounce circuit that allows the switch to charge and discharge a capacitor as shown.

RC Switch Debounce Circuit

switch debounce circuit
 
With the addition of an extra 100Ω resistor and a 1uF capacitor to the switches input interfacing circuit, the problems of switch bounce can be filtered out. The RC time constant, T is chosen to be longer than the bounce time of the mechanical switching action. An inverting Schmitt-trigger buffer can also be used to produce a sharp output transition from LOW to HIGH, and from HIGH to LOW.
So how does this type of input interfacing circuit work?. Well we saw in the RC Charging tutorial that a capacitor charges up at a rate determined by its time constant, T. This time constant value is measured in terms of T = R x C, in seconds, where R is the value of the resistor in Ohms and C is the value of the capacitor in Farads. This then forms the basis of an RC time constant.
Lets first assume that the switch is closed and the capacitor is fully discharged, then the input to the inverter is LOW and its output is HIGH. When the switch is opened, the capacitor charges up via the two resistors, R1 and R2 at a rate determined by the C(R1+R2) time constant of the RC network.
As the capacitor charges up slowly, any bouncing of the switch contacts are smoothed out by the voltage across the capacitors plates. When the charge on the plates is equal too or greater than the lower input voltage ( VIL ) of the inverter, the inverter changes state and the output becomes LOW. In this simple switch input interfacing example, the RC value is about 10mS giving the switch contacts enough time to settle into their final open state.
When the switch is closed, the now fully charged capacitor will quickly discharge to zero through the 100Ω at a rate determined by the C(R2) time constant changing the state of the inverters output from LOW to HIGH. However, the operation of the switch causes the contacts to bounce about resulting in the capacitor wanting to repeatedly charge up and then discharge rapidly back to zero.
Since the RC charging time constant is ten times longer than the discharge time constant, the capacitor can not charge up fast enough before the switch bounces back to its final closed position as the input rise time has been slowed down, so the inverter keeps the output HIGH. The result is that no matter how much the switch contacts bounce when opening or closing, you will only get a single output pulse from the inverter.
The advantage of this simple switch debounce circuit is hat if the switch contacts bounce too much or fr too long the RC time constant can be increased to compensate. Also remember that this RC time delay means that you will need to wait before you can operate the switch again because if you operate the switch again too soon it will not generate another output signal.
While this simple switch debounce circuit will work for input interfacing single (SPST) switches to electronic and micro controller circuits, the disadvantage of the RC time constant is that it introduces a delay before the next switching action can occur. If the switching action changes state quickly, or multiple keys are operated as on a keypad, then this delay may be unacceptable. One way to overcome this problem and produce a faster input interfacing circuit is to use a cross coupled 2-input NAND or 2-input NOR gates as shown below.

Switch Debounce with NAND Gates

switch debounce with cross coupled nand gates
 
This type of switch debounce circuit operates in a very similar way to the SR Flip-flop we looked at in the Sequential Logic section. The two digital logic gates are connected as a pair of cross-coupled NAND gates with active LOW inputs forming a SR Latch circuit as two of the NAND gate inputs are held HIGH (+5v) by the two 1kΩ pull-up resistors as shown.
Also, as the circuit operates as a Set-Reset SR latch, the circuit requires a single-pole double-throw (SPDT) changeover switch rather than a single-pole single-throw (SPST) switch of the previous RC debounce circuit.
When the switch of the cross-coupled NAND debounce circuit is in position A, NAND gate U1 is “set” and the output at Q is HIGH at logic “1”. When the switch is moved to position B, U2 becomes “set” which resets U1. The output at Q is now LOW at logic “0”.
The operating the switch between positions A and B toggles or switches the output at Q from HIGH to LOW or from LOW to HIGH. As the latch requires two switching actions to set and reset it, any bouncing of the switch contacts in either direction for both opening and closing are not seen at the output Q. Also the advantage of this SR latch debounce circuit is that it can provide complementary outputs at Q and Q.
As well as using cross-coupled NAND gates to form a bistable latch input interfacing circuit, we can also use cross-coupled NOR gates by changing the position of the two resistors and reducing their value to 100Ω’s as shown below.

Switch Debounce with NOR Gates

switch debounce with cross coupled nor gates
 
The operation of the cross-coupled NOR gate debounce circuit is the same as for the NAND circuit except that the output at Q is HIGH when the switch is in position B and LOW when it is in position A. The reverse of the cross-couple NAND bistable latch.
Then its worth noting that when input interfacing switches to circuits using a NAND or a NOR latch to use as debounce circuits, the NAND configuration requires a LOW or logic “0” input signal to change state, while the NOR configuration requires a HIGH or logic “1” input signal to change state.

Interfacing with Opto Devices

An Optocoupler (or optoisolator) is an electronic component with an LED and photo-sensitive device, such as a photodiode or phototransistor encased in the same package. The Opto-coupler which we look at in a previous tutorial interconnects two separate electrical circuits by means of a light sensitive optical interface. This means that we can effectively interface two circuits of different voltage or power ratings together without one electrically affecting the other.
Optical Switches (or opto-switches) are another type of optical (photo) switching devices which can be used for input interfacing. The advantage here is that the optical switch can be used for input interfacing harmful voltage levels onto the input pins of microcontrollers, PICs and other such digital circuits or for detecting objects using light as the two components are electrically separate but optically coupled providing a high degree of isolation (typically 2-5kV).
Optical switches come in a variety of different types and designs for use in a whole range of interfacing applications. The most common use for opto-switches is in the detection of moving or stationary objects. The phototransistor and photodarlington configurations provide most of the features required for photo-switches and are therefore the most commonly used.

Slotted Optical Switch

slotted optical switch
 
A DC voltage is generally used to drive a light emitting diode (LED) which converts the input signal into infrared light energy. This light is reflected and collected by the phototransistor on the other side of the isolation gap and converted back into an output signal.
For normal opto-switches, the forward voltage drop of the LED is about 1.2 to 1.6 volts at a normal input current of 5 to 20 milliamperes. This gives a series resistor value of between 180 and 470Ω’s.

Slotted Opto-switch Circuit

slotted opto switch circuit
 
Rotary and slotted disk optical sensors are used extensively in positional encoders, shaft encoders and even the rotary wheel of your computer mouse and as such make excellent input interfacing devices. The rotary disk has a number of slots cut out of an opaque wheel with the number of evenly spaced slots representing the resolution per degree of rotation. Typical encoded discs have a resolution of up to 256 pulses or 8-bits per rotation.
During one revolution of the disk the infrared light from the LED strikes the phototransistor through the slot and then is blocked as the disk rotates, turning the transistor “ON” and then “OFF” each pass of the slot. Resistor R1 set the LED current and the pull-up resistor R2 ensures the supply voltage, Vcc is connected to the input of the Schmitt inverter when the transistor is “OFF” producing a LOW, logic “0” output.
When the disk rotates to an open cut out, the infrared light from the LED strikes the phototransistor and shorts the Collector-to-Emitter terminals to ground producing a LOW input to the Schmitt inverter which in turn outputs a HIGH or logic “1”. If the inverters output was connected to a digital counter or encoder, then it would be possible to determine the shafts position or count the numbers of shaft revolutions per unit time to give the shafts rotations per minute (rpm).
As well as using slotted opto devices as input interfacing switches, there is another type of optical device called a reflective optical sensor which uses an LED and photodevice to detect an object. The reflective opto switch can detect the absence or presence of an object by reflecting (hence its name) the LEDs infrared light of the reflective object being sensed. The basic arrangement of a reflective opto sensor is given below.

Reflective Optical Switch

reflective optical switch
 
The phototransistor has a very high “OFF” resistance (dark) and a low “ON” resistance (light), which are controlled by the amount of light striking its base from the LED. If there is no object in front of the sensor then the LEDs infrared light will shine forward as a single beam. When there is an object in close proximity to the sensor the LEDs light is reflected back and detected by the phototransistor. The amount of reflected light sensed by the phototransistor and the degree of transistor saturation will depend on how close or reflective the object is.

Other Types of Opto Devices

As well as using slotted or reflective photoswitches for the input interfacing of circuits, we can also use other types of semiconductor light detectors such as photo resistive light detectors, PN junction photodiodes and even solar cells. All these photo sensitive devices use ambient light such as sunlight or normal room light to activate the device allowing them to be esily interfaced to any type of electronic circuit.
Normal signal and power diodes have their PN junction sealed within a plastic body for both safety and to stop photons of light from hitting it. When a diode is reverse biased it blocks the flow of current, acting like a high resistance open switch. However, if we were to shine a light onto this PN junction the photons of light open up the junction allowing current to flow depending upon the intensity of the light on the junction.
Photodiodes exploit this by having a small transparent window that allows light to strike their PN junction making the photodiode extremely photosensitive. Depending upon the type and amount of semiconductor doping, some photodiodes respond to visible light, and some to infrared (IR) light. When there is no incident light, the reverse current, is almost negligible and is called the “dark current”. An increase in the amount of light intensity produces an increase in the reverse current.
Then we can see that a photodiode allows reverse current to flow in one direction only which is the opposite to a standard rectifying diode. This reverse current only flows when the photodiode receives a specific amount of light acting as very high impedances under dark conditions and as low impedance devices under bright light conditions and as such of the photodiode can be used in many applications as a high speed light detector.

Interfacing Photodiodes

interfacing photodiodes
 
In the two basic circuits on the left, the photodiode is simply reverse biased through the resistor with the output voltage signal taken from across the series resistor. This resistor can be of a fixed value, usually between the 10kΩ to 100kΩ range, or as a variable 100kΩ potentiometer as shown. This resistor can be connected between the photodiode and 0v ground, or between the photodiode and the positive Vcc supply.
While photodiodes such as the BPX48 give a very fast response to changes in light level, they can be less sensitive compared to other photo-devices such as the Cadmium Sulphide LDR cell so some form of amplification in the form of a transistor or op-amp may be required. Then we have seen that the photodiode can be used as a variable-resistive device controlled by the amount of light falling on its junction. Photodiodes can be switch from “ON” to “OFF” and back very fast sometimes in nano-seconds or with frequencies above 1MHz and so are commonly used in optical encoders and fibre optic communications.
As well as PN junction photo devices, such as the photodiode or the phototransistor, there are other types of semiconductor light detectors that operate without a PN junction and change their resistive characteristics with changes or variations in light intensity. These devices are called Light Dependant Resistors, or LDR’s.
The LDR, also known as a cadmium-sulphide (CdS) photocell, is a passive device with a resistance that varies with visible light intensity. When no light is present their internal resistance is very high in the order of mega-ohms ( MΩ’s ). However, when illuminated their resistance falls to below 1kΩ in strong sunlight. Then light dependant resistors operate in a similar fashion to potentiometers but with light intensity controlling their resistive value.

Interfacing LDR Photoresistors

interfacing ldr photoresistors
 
Light dependant resistors change their resistive value in proportion to the light intensity. Then LDRs can be used with a series resistor, R to form a voltage divider network across the supply. In the dark the resistance of the LDR is much greater than that of the resistor so by connecting the LDR from supply to resistor or resistor to ground, it can be used as a light detector or as a dark detector as shown.
As LDRs such as the NORP12, produce a variable voltage output relative to their resistive value, they can be used for analogue input interfacing circuits. But LDRs can also be connected as part of a Wheatstone Bridge arrangement as the input of an op-amp voltage comparator or a Schmitt trigger circuit to produce a digital signal for interfacing to digital and microcontroller input circuits.
Simple threshold detectors for either light level, temperature or strain can be used to produce TTL compatible outputs suitable for interfacing directly to a logic circuit or digital input port. Light and temperature level threshold detectors based on an op-amp comparator generate a logic “1” or a logic “0” input whenever the measured level exceeds or falls below the threshold setting.

Input Interfacing Summary

As we have seen throughout this tutorial section on input and output devices, there are many different types of sensors which can be used to convert one or more physical properties into an electrical signal that can then be used and processed by a suitable electronic, microcontroller or digital circuit.
The problem is that just about all of the physical properties being measured can not be directly connected to the processing or amplifying circuit. Then some form of input interfacing circuit is required to interface the wide range of different analogue input voltages and currents to a microprocessor digital circuit.
Today with modern PC’s, microcontrollers, PIC’s and other such microprocessor based systems, input interfacing circuits allows these low voltage, low power devices to easily communicate with the outside world as many of these PC based devices have built-in inputoutput ports for transferring data to and from the controllers program and attached switches or sensors.
We have seen that sensors are electrical components that convert one type of property into an electrical signal thereby functioning as input devices. Adding input sensors to an electronic circuit can expand its capabilities by providing information about the surrounding environment. However, sensors can not operate on their own and in the most cases an electrical or electronic circuit called an interface is required.
Then input interfacing circuits allow external devices to exchange signals (data or codes) from either simple switches using switch debounce techniques from a single push button or keyboard for data entry, to input sensors that can detect physical quantities such as light, temperature, pressure, and speed for conversion using analogue-to-digital converters. Then interfacing circuits allow us to do just that.    


 

Thermistors

The Thermistor is a special type of variable resistive element that changes its physical resistance when exposed to changes in temperature.


The Thermistor is a solid state temperature sensing device that acts a bit like an electrical resistor but is temperature sensitive. Thermistors can be used to produce an analogue output voltage with variations in ambient temperature and as such can be referred to as a transducer. This is because it creates a change in its electrical properties due to a physical change in heat.
A thermistor is basically a two-terminal solid state thermally sensitive transducer made from sensitive semiconductor based metal oxides with metallised or sintered connecting leads onto a ceramic disc or bead. This allows it to change its resistive value in proportion to small changes in temperature. In other words, as its temperature changes, so too does its resistance and as such its name, “Thermistor” is a combination of the words THERM-ally sensitive res-ISTOR.
While the change in resistance due to heat is generally undesirable in standard resistors, this effect can be put to good use in many temperature detection circuits. Thus being non-linear variable-resistance devices, thermistors are commonly used as temperature sensors having many applications to measure the temperature of both liquids and ambient air.
Also, being a solid state device made from highly sensitive metal oxides, they operate at the molecular level with the outermost (valence) electrons becoming more active and producing a negative temperature coefficient, or less active producing a positive temperature coefficient as the temperature of the thermistor is increased. This means that they can have very good reproducible resistance verses temperature characteristics allowing them to operate up to temperatures of about 200oC.
ntc thermistor
Typical Thermistor
While the primarily used of thermistors are as resistive temperature sensors, being resistive devices belonging the the resistor family, they can also be used in series with a component or device to control the current flowing through them. In other words, they can also be used as current-limiting devices.
Thermistors are available in a range of types, materials and sizes depending on the response time and operating temperature. Also, hermetically sealed thermistors eliminate errors in resistance readings due to moisture penetration while offering high operating temperatures and a compact size. The three most common types are: Bead thermistors, Disk thermistors, and Glass encapsulated thermistors.
These heat-dependent resistors can operate in one of two ways, either increasing or decreasing their resistive value with changes in temperature. Then there are two types of thermistors available: negative temperature coefficient (NTC) of resistance and positive temperature coefficient (PTC) of resistance.

Negative Temperature Coefficient Thermistor

Negative temperature coefficient of resistance thermistors, or NTC thermistors for short, reduce or decrease their resistive value as the operating temperature around them increases. Generally, NTC thermistors are the most commonly used type of temperature sensors as they can be used in virtually any type of equipment where temperature plays a role.
NTC temperature thermistors have a negative electrical resistance versus temperature (R/T) relationship. The relatively large negative response of an NTC thermistor means that even small changes in temperature can cause significant changes in its electrical resistance. This makes them ideal for accurate temperature measurement and control.
We said previously that a thermistor is an electronic component whose resistance is highly dependent on temperature so if we send a constant current through the thermistor and then measure the voltage drop across it, we can thus determine its resistance and temperature.
NTC thermistors reduce in resistance with an increase in temperature and are available in a variety of base resistances and curves. They are usually characterised by their base resistance at room temperature, that is 25oC, (77oF) as this provides a convenient reference point. So for example, 2k2Ω at 25oC, 10kΩ at 25oC or 47kΩ at 25oC, etc.
Another important characteristic is the “B” value. The B value is a material constant which is determined by the ceramic material from which it is made and describes the gradient of the resistive (R/T) curve over a particular temperature range between two temperature points. Each thermistor material will have a different material constant and therefore a different resistance versus temperature curve.
Then the B value will define the thermistors resistive value at the first temperature or base point, (which is usually 25oC), called T1, and the thermistors resistive value at a second temperature point, for example 100oC, called T2. Therefore the B value will define the thermistors material constant between the range of T1 and T2. That is BT1/T2 or B25/100 with typical NTC thermistor B values given anywhere between about 3000 and about 5000.
Note however, that both the temperature points of T1 and T2 are calculated in the temperature units of Kelvin where 00C = 273.15 Kelvin. Thus a value of 25oC is equal to 25o + 273.15 = 298.15K, and 100oC is equal to 100o + 273.15 = 373.15K, etc.
So by knowing the B value of a particular thermistor (obtained from manufacturers datasheet), it is possible to produce a table of temperature versus resistance to construct a suitable graph using the following normalised equation:

Thermistor Equation

thermistor equation
  • Where:
  • T1 is the first temperature point in Kelvin
  • T2 is the second temperature point in Kelvin
  • R1 is the thermistors resistance at temperature T1 in Ohms
  • R2 is the thermistors resistance at temperature T2 in Ohms

Thermistor Example No1

A 10kΩ NTC thermistor has a B value of 3455 between the temperature range of 25 to 100oC. Calculate its resistive value at 25oC and at 100oC.
Data given: B = 3455, R1 = 10kΩ at 25o. In order to convert the temperature scale from degrees Celsius, oC to degrees Kelvin add the mathematical constant 273.15
The value of R1 is already given as its 10kΩ base resistance, thus the value of R2 at 100oC is calculated as:
thermistor resistance
Giving the following two point characteristics graph of:
ntc thermistor graph
 
Note that in this simple example, only two points were found, but generally thermistors change their resistance exponentially with changes in temperature so their characteristic curve is nonlinear, therefore the more temperature points are calculated the more accurate will be the curve.
Temperature
(oC)
10202530405060708090100110120
Resistance
(Ω)
1847612185100008260574040802960218816451257973765608
and these points can be plotted as shown to give a more accurate characteristics curve for the 10kΩ NTC Thermistor which has a B-value of 3455.

NTC Thermistor Characteristics Curve

10k ntc thermistor characteristics curve
 
Notice that it has a negative temperature coefficient (NTC), that is its resistance decreases with increasing temperatures.

Using a Thermistor to Measure Temperature.

So how can we use a thermistor to measure temperature. Hopefully by now we know that a thermistor is a resistive device and therefore according to Ohms law, if we pass a current through it, a voltage drop will be produced across it. As a thermistor is an active type of a sensor, that is, it requires an excitation signal for its operation, any changes in its resistance as a result of changes in temperature can be converted into a voltage change.
ntc thermistor divider circuit
The simplest way of doing this is to use the thermistor as part of a potential divider circuit as shown. A constant voltage is applied across the resistor and thermistor series circuit with the output voltage measured across the thermistor.
If for example we use a 10kΩ thermistor with a series resistor of 10kΩ, then the output voltage at the base temperature of 25oC will be half the supply voltage.
When the resistance of the thermistor changes due to changes in temperature, the fraction of the supply voltage across the thermistor also changes producing an output voltage that is proportional to the fraction of the total series resistance between the output terminals.
Thus the potential divider circuit is an example of a simple resistance to voltage converter where the resistance of the thermistor is controlled by temperature with the output voltage produced being proportional to the temperature. So the hotter the thermistor gets, the lower the voltage.
If we reversed the positions of the series resistor, RS and the thermistor, RTH, then the output voltage will change in the opposite direction, that is the hotter the thermistor gets, the higher the output voltage.
thermistor h-bridge circuit
We can use ntc thermistors as part of a basic temperature sensing configuration using a bridge circuit as shown. The relationship between resistors R1 and R2 sets the reference voltage, VREF to the value required. For example, if both R1 and R2 are of the same resistive value, the reference voltage will be equal to half of the supply voltage. That is Vs/2.
As the temperature and therefore the resistance of the thermistor changes, the voltage at VTH also changes either higher or lower than that at VREF producing a positive or negative output signal to the connected amplifier.
The amplifier circuit used for this basic temperature sensing bridge circuit could act as a differential amplifier for high sensitivity and amplification, or a simple Schmitt-trigger circuit for ON-OFF switching.
The problem with passing a current through a thermistor in this way, is that thermistors experience what is called self-heating effects, that is the I2.R power dissipation could be high enough to create more heat than can be dissipated by the thermistor affecting its resistive value producing false results.
Thus it is possible that if the current through the thermistor is too high it would result in increased power dissipation and as the temperature increases, its resistance decreases causing more current to flow, which increases the temperature further resulting in what is known as Thermal Runaway. In other words, we want the thermistor to be hot due to the external temperature being measured and not by itself heating up.
Then the value for the series resistor, RS above should be chosen to provide a reasonably wide response over the range of temperatures for which the thermistor is likely to be used while at the same time limiting the current to a safe value at the highest temperature.
One way of improving on this and having a more accurate conversion of resistance against temperature (R/T) is by driving the thermistor with a constant current source. The change in resistance can be measured by using a small and measured direct current, or DC, passed through the thermistor in order to measure the voltage drop produced.

Thermistor Used For Inrush Current Suppression

We have seen that thermistors are primarily used as resistive temperature sensitive transducers, but the resistance of a thermistor can be changed either by external temperature changes or by changes in temperature caused by an electrical current flowing through them, as after all, they are resistive devices.
Ohm’s Law tells us that when an electrical current passes through a resistance R, as a result of the applied voltage, power is consumed in the form of heat due to the I2R heating effect. Because of the self-heating effect of current in a thermistor, a thermistor can change its resistance with changes in current.
Inductive electrical equipment such as motors, transformers, ballast lighting, etc, suffer from excessive inrush currents when they are first turned-on. But series connected thermistors can be used to effectively limit these high initial currents to a sfe value. NTC thermistors with low values of cold resistance (at 25oC) are generally used for current regulation.

Inrush Current Limiting Thermistor

inrush current limiting thermistor
 
Inrush current suppressors and surge limiters are types of series connected thermistor whose resistance drops to a very low value as it is heated by the load current passing through it. At the initial turn-on, the thermistors cold resistance value (its base resistance) is fairly high controlling the initial inrush current to the load.
As a result of the load current, the thermistor heats up and reduces its resistance relatively slowly to the point were the power dissipated across it is sufficient to maintain its low resistance value with most of the applied voltage developed across the load.
Due to the thermal inertia of its mass this heating effect takes a few seconds during which the load current increases gradually rather than instantaneously, so any high inrush current is restricted and the power it draws reduces accordingly. Because of this thermal action, inrush current suppression thermistors can run very hot in the low-resistance state so require a cool-down or recovery period after power is removed to allow the resistance of the NTC thermistor to increase sufficiently to provide the required inrush current suppression the next time it is needed.
Thus the speed of response of a current limiting thermistor is given by its time constant. That is, the time taken for its resistance to change by by 63% (i.e. 1 to 1/e) of the total change. For example, suppose the ambient temperature changes from 0 to 100oC, then the 63% time constant would be the time taken for the thermistor to have a resistive value at 63oC.
Thus NTC thermistors provide protection from undesirably high inrush currents, while their resistance remains negligibly low during continuous operation supplying power to the load. The advantage here is that they able to effectively handle much higher inrush currents than standard fixed current limiting resistors with the same power consumption.

Thermistor Summary

We have seen here in this tutorial about thermistors, that a thermistor is a two terminal resistive transducer which changes its resistive value with changes in surrounding ambient temperature, hence the name thermal-resistor, or simply “thermistor”.
Thermistors are inexpensive, easily-obtainable temperature sensors constructed using semiconductor metal oxides, and are available with either a negative temperature coefficient, (NTC) of resistance or a positive temperature coefficient (PTC) of resistance. The difference being that NTC thermistors reduce their resistance as the temperature increases, while PTC thermistors increase their resistance as the temperature increases.
NTC thermistors are the most commonly used (especially the 10KΩ ntc thermistor) and along with an addition series resistor, RS can be used as part of a simple potential divider circuit so that changes to its resistance due to changes in temperature, produces a temperature-related output voltage.
However, the operating current of the thermistor must be kept as low as possible to reduce any self-heating effects. If they pass operating currents which are too high, they can create more heat than can be quickly dissipated from the thermistor which may cause false results.
Thermistors are characterised by their base resistance and their B value. The base resistance, for example, 10kΩ, is the resistance of the thermistor at a given temperature, usually 25oC and is defined as: R25. The B value is a fixed material constant that describes the shape of the slope of the resistive curve over temperature (R/T).
We have also seen that thermistors can be used to measure an external temperature or can be used control a current as a result of the I2R heating effect caused by the current flowing through it. By connecting an NTC thermistor in series with a load, it is possible to effectively limit the high inrush currents.
 

Resistivity

Resistivity of materials is the resistance to the flow of an electric current with some materials resisting the current flow more than others
 
Ohms Law states that when a voltage (V) source is applied between two points in a circuit, an electrical current (I) will flow encouraged by the presence of a potential difference between these two points. The amount of electrical current that flows is restricted by the amount of resistance (R) present. In other words, the voltage encourages the current to flow (the movement of charge), but it is resistance that discourages it.
But the electrical resistance between these two points can depend on many factors such as the conductors length, its cross-sectional area, the temperature, as well as the actual material from which it is made. For example, let’s assume we have a piece of wire (a conductor) that has a length L, a cross-sectional area A and a resistance R as shown.

A Single Conductor

resistivity of a single conductor
 
The electrical resistance, R of this simple conductor is a function of its length, L and the conductors area, A. Ohms law tells us that for a given resistance R, the current flowing through the conductor is proportional to the applied voltage as I = V/R. Now suppose we connect two identical conductors together in a series combination as shown.

Doubling the Length of a Conductor

doubling the length of a conductor
 
Here by connecting the two conductors together in a series, we have effectively doubled the total length of the conductor, 2L while the cross-sectional area, A remains exactly the same. But as well as doubling the length, we have also doubled the total resistance of the conductor, giving 2R. Thus the resistance of the conductor is proportional to its length, that is: R ∝ L. In other words, we would expect the electrical resistance of a conductor (or wire) to be proportionally greater the longer it is.
Note also that by doubling the length and therefore the resistance of the conductor (2R), to force the same current, i to flow through the conductor as before, we need to double (increase) the applied voltage as now I = (2V)/(2R). Next suppose we connect the two identical conductors together in parallel combination as shown.

Doubling the Area of a Conductor

doubling the area of a conductor
 
Here by connecting the two conductors together in a parallel combination, we have effectively doubled the total area giving 2A, while the conductors length, L remains the same as the original single conductor. But as well as doubling the area, by connecting the two conductors together in parallel we have effectively halved the total resistance of the conductor, giving 1/2R as now each half of the current flows through each conductor branch.
Thus the resistance of the conductor is inversely proportional to its area, that is: R 1/∝ A, or R ∝ 1/A. In other words, we would expect the electrical resistance of a conductor (or wire) to be proportionally less the greater is its cross-sectional area.
Also by doubling the area and therefore halving the total resistance of the conductor branch (1/2R), for the same current, i to flow through the parallel conductor branch as before we only need half (decrease) the applied voltage as now I = (1/2V)/(1/2R).
So hopefully we can see that the resistance of a conductor is directly proportional to the length (L) of the conductor, that is: R ∝ L, and inversely proportional to its area (A), R ∝ 1/A. Thus we can correctly say that resistance is:

Proportionality of Resistance

proportionality of resistance
 
But as well as length and conductor area, we would also expect the electrical resistance of the conductor to depend upon the actual material from which it is made, because different conductive materials, copper, silver, aluminium, etc all have different physical and electrical properties. Thus we can convert the proportionality sign (∝) of the above equation into an equals sign simply by adding a “proportional constant” into the above equation giving:

Electrical Resistivity Equation

resistivity equation
 
Where: R is the resistance in ohms (Ω), L is the length in meters (m), A is the area in square meters (m2), and where the proportional constant ρ (the Greek letter “rho”) is known as Resistivity.

Resistivity

The electrical resistivity of a particular conductor material is a measure of how strongly the material opposes the flow of electric current through it. This resistivity factor, sometimes called its “specific electrical resistance”, enables the resistance of different types of conductors to be compared to one another at a specified temperature according to their physical properties without regards to their lengths or cross-sectional areas. Thus the higher the resistivity value of ρ the more resistance and vice versa.
For example, the resistivity of a good conductor such as copper is on the order of 1.72 x 10-8 ohms per meter (or 17.2 nΩ/m), whereas the resistivity of a poor conductor (insulator) such as air can be well over 1.5 x 1014 or 150 trillion Ω/m.
Materials such as copper and aluminium are known for their low levels of resistivity thus allowing electrical current to easily flow through them making these materials ideal for making electrical wires and cables. Silver and gold have much low resistivity values, but for obvious reasons are more expensive to turn into electrical wires.
Then the factors which affect the resistance (R) of a conductor in ohms can be listed as:
  • The resistivity (ρ) of the material from which the conductor is made.
  • The total length (L) of the conductor.
  • The cross-sectional area (A) of the conductor.
  • The temperature of the conductor.

Resistivity Example No1

Calculate the total DC resistance of a 100 meter roll of 2.5mm2 copper wire if the resistivity of copper at 20oC is 1.72 x 10-8 Ω per meter.
Given: resistivity of copper at 20oC is 1.72 x 10-8, coil length L = 100m, the cross-sectional area of the conductor is 2.5mm2 giving an area of: A = 2.5 x 10-6 meters2.
resistivity example
 
We said previously that resistivity is the electrical resistance per unit length and per unit of conductor cross-sectional area thus showing that resistivity, ρ has the dimensions of ohms per meter, or Ω.m as it is commonly written. Thus for a particular material at a specified temperature its electrical resistivity is given as.

Electrical Resistivity, Rho

electrical resistivity rho

Electrical Conductivity

While both the electrical resistance (R) and resistivity (or specific resistance) ρ, are a function of the physical nature of the material being used, and of its physical shape and size expressed by its length (L), and its sectional area (A), Conductivity, or specific conductance relates to the ease at which electric current con flow through a material.
Conductance (G) is the reciprocal of resistance (1/R) with the unit of conductance being the siemens (S) and is given the upside down ohms symbol mho, ℧. Thus when a conductor has a conductance of 1 siemens (1S) it has a resistance is 1 ohm (1Ω). So if its resistance is doubled, the conductance halves, and vice-versa as: siemens = 1/ohms, or ohms = 1/siemens.
While a conductors resistance gives the amount of opposition it offers to the flow of electric current, the conductance of a conductor indicates the ease by which it allows electric current to flow. So metals such as copper, aluminium or silver have very large values of conductance meaning that they are good conductors.
Conductivity, σ (Greek letter sigma), is the reciprocal of the resistivity. That is 1/ρ and is measured in siemens per meter (S/m). Since electrical conductivity σ = 1/ρ, the previous expression for electrical resistance, R can be rewritten as:

Electrical Resistance as a Function of Conductivity

electrical resistance as a function of conductivity
 
Then we can say that conductivity is the efficiency by which a conductor passes an electric current or signal without resistive loss. Therefore a material or conductor that has a high conductivity will have a low resistivity, and vice versa, since 1 siemens (S) equals 1Ω-1. So copper which is a good conductor of electric current, has a conductivity of 58.14 x 106 siemens per meter.

Resistivity Example No2

A 20 meter length of cable has a cross-sectional area of 1mm2 and a resistance of 5 ohms. Calculate the conductivity of the cable.
Given: DC resistance, R = 5 ohms, cable length, L = 20m, and the cross-sectional area of the conductor is 1mm2 giving an area of: A = 1 x 10-6 meters2.
conductivity example
 
That is 4 mega-siemens per meter length.

Resistivity Summary

We have seen in this tutorial about resistivity, that resistivity is the property of a material or conductor that indicates of well the material conducts electrical current and also that the electrical resistance (R) of a conductor depends not only on the material from which the conductor is made, copper, silver, aluminium, etc. but also on its physical dimensions.
The resistance of a conductor is directly proportional to its length (L) as R ∝ L. Thus doubling its length will double its resistance, while halving its length would halve its resistance. Also the resistance of a conductor is inversely proportional to its cross-sectional area (A) as R ∝ 1/A. Thus doubling its cross-sectional area would halve its resistance, while halving its cross-sectional area would double its resistance.
We have also learnt that the resistivity (symbol: ρ) of the conductor (or material) relates to the physical property from which it is made and varies from material to material. For example, the resistivity of copper is generally given as: 1.72 x 10-8 Ω.m. The resistivity of a particular material is measured in units of Ohm-Meters (Ω.m) which is also affected by temperature.
Depending upon the electrical resistivity value of a particular material, it can be classified as being either a “conductor”, an “insulator” or a “semiconductor”. Note that semiconductors are materials where its conductivity is dependent upon the impurities added to the material.
Resistivity is also important in power distribution systems as the effectiveness of the earth grounding system for an electrical power and distribution system greatly depends on the resistivity of the earth and soil material at the location of the system ground.
Conduction is the name given to the movement of free electrons in the form of an electric current. Conductivity, σ is the reciprocal of the resistivity. That is 1/ρ and has the unit of siemens per metre, S/m. Conductivity ranges from zero (for a perfect insulator) to infinity (for a perfect conductor). Thus a super conductor has infinite conductance and virtually zero ohmic resistance.
 
   potentiometer  
 
   resistor colour code wheel   Our Resistor Colour Code Wheel  
 
  The coloured bands are shown as: BLUE, RED, BLACK, BROWN and BROWN. Then the resistance using the colour wheel is found as:
5 band resistor colour code value
 
As this is a 5-band resistor, all the disks of the resistor colour code wheel can be used to find the resistive value. Then the colour code wheel shows:
The first colour band (blue) gives the first digit value of 6. The second colour band (red) gives the second digit value of 2. The third colour band (black) gives the third digit value of 0. This gives a three digit value of 620. We now multiply this by the value of the fourth band, brown which has a value of 10. So the resistor has a resistive value of 6200 ohms (620 × 10 = 6200) or 6k2Ω’s. The last band gives the resistors tolerance value and brown equals a tolerance range of ±1%.
Then using the resistor colour wheel, the resistor has the following resistance:
Blue Red Black Brown = 6 2 0 0 = 6 2 0 x 10 = 6200Ω or 6k2Ω ±1%.
 
So there you have it, a fun little project to do at home for use at school or the science lab, just download, print and cut out to give you a very useful reference tool for finding the resistive values of 4 or 5-band resistors using this free and simple Resistor Colour Code Wheel.
 
 

Pulse Width Modulation

There are many different ways to control the speed of motors but one very simple and easy way is to use Pulse Width Modulation
 

Convert ATX PSU to Bench Supply

Is it possible to use an ATX power supply unit or PSU from an old PC as a bench top power supply to power 5V logic, but with some limitations
 
The standard computer power supply unit (PSU) turns the incoming 110V or 220VAC (alternating current) into various DC (direct current) output voltages suitable for powering the computer’s internal components and with a little bit of imagination it is possible to convert ATX PSU to a bench power supply.
atx psu
Most computer PSU’s range from about 150W up to 500W so there is plenty of power. The original ATX standard connector used for powering the motherboard was a single 20-pin Molex that has all the required +12VDC and +5VDC voltages with huge output currents and short circuit protection as well as a Power-ON wire that allows the PC’s software to turn “OFF” the PSU on shut down.
Firstly and more importantly before you start to convert ATX PSU, make sure that the PSU is unplugged from the mains supply and discharged by letting it sit unconnected for several minutes before you start. This is important! as it could result in a potentially dangerous or even lethal situation due to the high voltages inside the PSU if you decide to dismantle it. Also make sure that the metal box of the PSU is correctly earthed or grounded. You are responsible for your own safety!.
We can not just simply plug the PSU into the mains supply and expect to get the required 5 or 12 volts output. The standard PC power supply unit has two safety mechanisms that prevent it from being switched “ON” without the motherboard attached.
  • Number 1, the PSU requires a “Power-ON” zero voltage signal to start up similar to the “ON-OFF” switch on the front of a PC.
  • Number 2, for the PSU to correctly regulate the +5V output voltage it needs to have some sort of load attached, at least 5W to trick the PSU into thinking its attached to the motherboard
Unfortunately you can not just have the wires left open, luckily both of these issues are easily fixed.
There are several different coloured wires attached to the 20-pin ATX connector providing several different voltage outputs such as +3.3V, +5V, +12V, -12V, -5V as well as a number of black ground wires and a couple signal wires as shown in the following image along with their colour-code and description.

20-pin Molex ATX Connector

20-pin molex connector
 
Pin outs of the 20-pin connector with the colours of the wires used in a standard ATX PSU connector.
PinNameColourDescription
13.3V Orange+3.3 VDC
23.3V Orange+3.3 VDC
3COMMON BlackGround
45V Red+5 VDC
5COMMON BlackGround
65V Red+5 VDC
7COMMON BlackGround
8Pwr_Ok GreyPower Ok (+5 VDC when power is Ok)
9+5VSB Purple+5 VDC Standby Voltage
1012V Yellow+12 VDC
113.3V Orange+3.3 VDC
12-12V Blue-12 VDC
13COMMON BlackGround
14Pwr_ON GreenPower Supply On (active low)
15COMMON BlackGround
16COMMON BlackGround
17COMMON BlackGround
18-5V White-5 VDC
195V Red+5 VDC
205V Red+5 VDC
 
There are a number of ways to convert a standard computer ATX power supply unit into a usable bench top power supply. You can keep the 20-pin Molex connector attached and connect directly into it or cut it off completely and group together the individual wires keeping the same colours together, reds to reds, blacks to blacks etc.
I cut off the connector to have access to the individual wires and connected them into a screw connector strip to give me a higher amperage output for both the +5V and +12V supplies. You can connect the same coloured wires together using crimp connectors or posts, is the same thing. Some of the other individual coloured wires we need to keep separate as detailed below.
To start up a stand alone PSU for either testing purposes or as a bench power supply, we need to short together pin 14 – Green (Power-ON) to one of the common black wires (ground) which is how the motherboard tells the power supply to turn “ON”. Luckily, pin 15 – Black is next to it so I connected a switch between the Pwr_On signal (pin 14) and Ground (pin 15). When pin 14 is momentarily connected to ground via the switch, the power supply will turn-ON.
Next we need to provide a small load on the +5V (red wires) output to trick the PSU into thinking its attached to the motherboard and to keep the power supply in the “ON” mode. To do this we have to connect a large resistor of 10 Ohms or less, with a standard power rating of 5W to 10W across the +5V output using just one set of the red and black wires, pins 3 and 4 will do.
Remembering from Ohms Law that the power (P), developed in a resistor is given by the equation of: P = I2 × R or P = V2 / R, where: P = power developed in the resistor in watts (W), I = current through the resistor in amps (A), R = resistance of the resistor in ohms (ohm) and V = voltage across the resistor in volts (V). The voltage will be +5V and the power required is 5W or above. Then any standard power resistor below 5 Ohms will do. Remember though that this resistor will get HOT! so make sure its out of the way.
One other option we have is to use pin 8 – Grey (Pwr_Ok) as a visual indication that the PSU has started up correctly and is ready to operate. The Pwr_Ok signal goes high (+5V) when the power supply has settled down after its initial start up, and all the voltages are within their proper tolerance ranges. I used a red LED in series with a 220 Ohm current limiting resistor connected between pins 8 and pin 7, (ground) for this power ready light but anything similar will do, its only indication.

Testing the Power Supply

Once assembled you should end up with something like this.
20-pin molex connections
 
When you plug the PSU into the wall socket and turn the switch “ON” at the back of the power supply (if it has one), only two voltages should be present at the connector. One is pin 14 the Pwr_ON green wire which will have +5V on it. The second is pin 9 the +5V Standby (+5VSB) purple wire which should also have +5V on it.
This standby voltage, is used for the motherboard’s power control buttons, Wake on LAN feature, etc and typically provides about 500mA of current, even when the main DC outputs are “OFF”, so it can be useful as a permanent +5V supply for small power uses without the need to turn the PSU “fully-ON”.
Some newer ATX12V power supplies may have “voltage sense” wires that need to be connected to the actual voltage wires for proper operation. In the main power cables you should now have three red wires (+5V) all connected together and three black wires (0V) connected together as the others have been used for the switch and LED. Also connect together the three orange wires to give a +3.3V output if you require it.
If you have only two orange wires, you may have a brown wire instead which must be connected with the orange’s, the +3.3V for the unit to be able to power up. If you only have three red wires, another wire (sometimes pink) must be connected to them. But check this first.
If everything looks ok then we are good to go and the PSU should switch “ON” giving you a very cheap bench top power supply. You can test the output voltages using a multimeter or connecting a 12V bulb into the different sockets to see if the PSU works. The voltage combinations that can be outputted by the PSU are 24v (+12, -12), 17v (+5, -12), 12v (+12, 0), 10v (+5, -5), 7v (+12, +5), 5v (+5, 0) which should be sufficient for most electronics circuits.
You could also connect a LM317 Adjustable Voltage Regulator, a 5k adjustable potentiometer, a 240 Ohm resistor for biasing and a couple of smoothing capacitors across the +12V supply to give a separate adjustable output voltage from about 2.0 to 12 volts but this is an additional feature.

The 24-pin Molex ATX Connector

In newer desktop PC’s, version 2 ATX power supplies are used called ATX12V. The old 20-pin connector has been replaced by a larger 24-pin Molex connector or even a 20+4pin connector. The four additional pins are: two additional pins numbered 11 and 12 are +12v (yellow), and +3.3v (orange) and the two additional pins numbered 23 and 24 are +5v (red), and ground (black) respectively. The newer ATX12V pin outs and colours are given in the following table for reference.

24-pin Molex ATX Connector

24-pin molex connector
 
Pin outs of the 24-pin connector with their respective colours of the wires in the PSU cables.
PinNameColourDescription
13.3V Orange+3.3 VDC
23.3V Orange+3.3 VDC
3COM BlackGround
45V Red+5 VDC
5COM BlackGround
65V Red+5 VDC
7COM BlackGround
8Pwr_Ok GreyPower Ok (+5 VDC when power is Ok)
9+5VSB Purple+5 VDC Standby Voltage
1012V Yellow+12 VDC
1112V Yellow+12 VDC
123.3V Orange+3.3 VDC
133.3V Orange+3.3 VDC
14-12V Blue-12 VDC
15COM BlackGround
16Pwr_ON GreenPower Supply On (active low)
17COM BlackGround
18COM BlackGround
19COM BlackGround
20-5V White-5 VDC
21+5V Red+5 VDC
22+5V Red+5 VDC
23+5V Red+5 VDC
24COM BlackGround
 
The newer type ATX12V PSU’s are a little more tricky to convert as they use a ‘soft’ power switch function and require a much larger external load resistance. To get them to start-up, or switch-ON, the supply must be loaded to at least 20W or 10% of the rated power for the larger 600W+ PSU’s. Anything below this the power supply may run, but regulation will be very poor less than 50%.
Again the voltages that can be output by this unit are the same as before 24v (+12, -12), 17v (+5, -12), 12v (+12, 0), 10v (+5, -5), 7v (+12, +5), 5v (+5, 0). Note that some ATX12V power supplies with a 24-pin motherboard connector may not have the -5V (pin 20) white lead. In this case use the older ATX power supplies with a 20-pin connector above if you need the additional -5V supply.
An old PC power supply unit makes an excellent and cheap bench top power supply for the electronics constructor. The power supply unit uses switching regulators to maintain a constant supply with good regulation and short circuit protection cause the unit to shutdown and be re-powered immediately if something goes wrong.
The only downside with using an ATX PSU as a bench power supply is that the cooling fan’s rpm responds to the amount of current being drawn from the PSU so can get a little noisy. Also the ATX PSU requires a certain amount of fresh air to keep it cool inside which may not be possible when laid onto a bench.
All in all, converting an ATX PSU to a bench power supply is an easy project with many uses. Not bad for something that would otherwise get thrown away.
 

Variable Voltage Power Supply

Continuing on from our tutorial about converting an ATX PSU to a bench power supply, one very good addition to this is the LM317T positive voltage regulator.


Optocoupler Tutorial

An Optocoupler, also known as an Opto-isolator or Photo-coupler, is an electronic components that interconnects two separate electrical circuits by means of a light sensitive optical interface. 

In other words, transformers isolate the primary input voltage from the secondary output voltage using electromagnetic coupling by means of a magnetic flux circulating within the iron laminated core.
typical 4n35 optocoupler
But we can also provide electrical isolation between an input source and an output load using just light by using a very common and valuable electronic component called an Optocoupler.
The basic design of an optocoupler consists of an LED that produces infra-red light and a semiconductor photo-sensitive device that is used to detect the emitted infra-red beam. Both the LED and photo-sensitive device are enclosed in a light-tight body or package with metal legs for the electrical connections as shown.
An optocoupler or opto-isolator consists of a light emitter, the LED and a light sensitive receiver which can be a single photo-diode, photo-transistor, photo-resistor, photo-SCR, or a photo-TRIAC with the basic operation of an optocoupler being very simple to understand.

Phototransistor Optocoupler

phototransistor optocoupler
 
Assume a photo-transistor device as shown. Current from the source signal passes through the input LED which emits an infra-red light whose intensity is proportional to the electrical signal.
This emitted light falls upon the base of the photo-transistor, causing it to switch-ON and conduct in a similar way to a normal bipolar transistor.
The base connection of the photo-transistor can be left open (unconnected) for maximum sensitivity to the LEDs infrared light energy or connected to ground via a suitable external high value resistor to control the switching sensitivity making it more stable and resistant to false triggering by external electrical noise or voltage transients.
When the current flowing through the LED is interrupted, the infrared emitted light is cut-off, causing the photo-transistor to cease conducting. The photo-transistor can be used to switch current in the output circuit. The spectral response of the LED and the photo-sensitive device are closely matched being separated by a transparent medium such as glass, plastic or air. Since there is no direct electrical connection between the input and output of an optocoupler, electrical isolation up to 10kV is achieved.
Optocouplers are available in four general types, each one having an infra-red LED source but with different photo-sensitive devices. The four optocouplers are called the: Photo-transistor, Photo-darlington, Photo-SCR and Photo-triac as shown below.

Optocoupler Types

optocoupler types
 
The photo-transistor and photo-darlington devices are mainly for use in DC circuits while the photo-SCR and photo-triac allow AC powered circuits to be controlled. There are many other kinds of source-sensor combinations, such as LED-photodiode, LED-LASER, lamp-photoresistor pairs, reflective and slotted optocouplers.
Simple homemade optocouplers can be constructed by using individual components. An Led and a photo-transistor are inserted into a rigid plastic tube or encased in heat-shrinkable tubing as shown. The advantage of this home-made optocoupler is that tubing can be cut to any length you want and even bent around corners. Obviously, tubing with a reflective inner would be more efficient than dark black tubing.

Home-made Optocoupler

home made optocoupler

Optocoupler Applications

Optocouplers and opto-isolators can be used on their own, or to switch a range of other larger electronic devices such as transistors and triacs providing the required electrical isolation between a lower voltage control signal and the higher voltage or current output signal. Common applications for optocouplers include microprocessor input/output switching, DC and AC power control, PC communications, signal isolation and power supply regulation which suffer from current ground loops, etc. The electrical signal being transmitted can be either analogue (linear) or digital (pulses).
In this application, the optocoupler is used to detect the operation of the switch or another type of digital input signal. This is useful if the switch or signal being detected is within an electrically noisy environment. The output can be used to operate an external circuit, light or as an input to a PC or microprocessor.

An Optotransistor DC Switch

optotransistor switch
 
As well as detecting DC signals and data, Opto-triac isolators are also available which allow AC powered equipment and mains lamps to be controlled. Opto-coupled triacs such as the MOC 3020, have voltage ratings of about 400 volts making them ideal for direct mains connection and a maximum current of about 100mA. For higher powered loads, the opto-triac may be used to provide the gate pulse to another larger triac via a current limiting resistor as shown.

Triac Optocoupler Application

triac optocoupler application
 
This type of optocoupler configuration forms the basis of a very simple solid state relay application which can be used to control any AC mains powered load such as lamps and motors. Also unlike a thyristor (SCR), a triac is capable of conducting in both halves of the mains AC cycle with zero-crossing detection allowing the load to receive full power without the heavy inrush currents when switching inductive loads.
Optocouplers and Opto-isolators are great electronic devices that allow devices such as power transistors and triacs to be controlled from a PC’s output port, digital switch or from a low voltage data signal such as that from a logic gate. The main advantage of opto-couplers is their high electrical isolation between the input and output terminals allowing relatively small digital signals to control much large AC voltages, currents and power.
An optocoupler can be used with both DC and AC signals with optocouplers utilizing a SCR (thyristor) or triac as the photo-detecting device are primarily designed for AC power-control applications. The main advantage of photo-SCRs and photo-triacs is the complete isolation from any noise or voltage spikes present on the AC power supply line as well as zero-crossing detection of the sinusoidal waveform which reduces switching and inrush currents protecting any power semiconductors used from thermal stress and shock.

Voltage Multiplier

In the tutorial about Rectifiers, we saw that the DC output voltage being controlled by the rectifier is at a value below that of the mains input voltage.

The Voltage Multiplier, however, is a special type of diode rectifier circuit which can potentially produce an output voltage many times greater than of the applied input voltage.
Although it is usual in electronic circuits to use a voltage transformer to increase a voltage, sometimes a suitable step-up transformer or a specially insulated transformer required for high voltage applications may not always be available. One alternative approach is to use a diode voltage multiplier circuit which increases or “steps-up” the voltage without the use of a transformer.
Voltage multipliers are similar in many ways to rectifiers in that they convert AC-to-DC voltages for use in many electrical and electronic circuit applications such as in microwave ovens, strong electric field coils for cathode-ray tubes, electrostatic and high voltage test equipment, etc, where it is necessary to have a very high DC voltage generated from a relatively low AC supply.
Generally, the DC output voltage (Vdc) of a rectifier circuit is limited by the peak value of its sinusoidal input voltage. But by using combinations of rectifier diodes and capacitors together we can effectively multiply this input peak voltage to give a DC output equal to some odd or even multiple of the peak voltage value of the AC input voltage. Consider the basic voltage multiplier circuit below.

Full Wave Voltage Multiplier

full wave voltage multiplier
 
The above circuit shows a basic symmetrical voltage multiplier circuit made up from two half-wave rectifier circuits. By adding a second diode and capacitor to the output of a standard half-wave rectifier, we can increase its output voltage by a set amount. This type of voltage multiplier configuration is known as a Full Wave Series Multiplier because one of the diodes is conducting in each half cycle, the same as for a full wave rectifier circuit.
When the sinusoidal input voltage is positive, capacitor C1 charges up through diode D1 and when the sinusoidal voltage is negative, capacitor C2 charges up through diode, D2. The output voltage 2VIN is taken across the two series connected capacitors.
The voltage produced by a voltage multiplier circuit is in theory unlimited, but due to their relatively poor voltage regulation and low current capability there are generally designed to increase the voltage by a factor less than ten. However, if designed correctly around a suitable transformer, voltage multiplier circuits are capable of producing output voltages in the range of a few hundred to tens’s of thousand’s of volts, depending upon their original input voltage value but all with low currents in the milliamperes range.

The Voltage Doubler

As its name suggests, a Voltage Doubler is a voltage multiplier circuit which has a voltage multiplication factor of two. The circuit consists of only two diodes, two capacitors and an oscillating AC input voltage (a PWM waveform could also be used). This simple diode-capacitor pump circuit gives a DC output voltage equal to the peak-to-peak value of the sinusoidal input. In other words, double the peak voltage value because the diodes and the capacitors work together to effectively double the voltage.

DC Voltage Doubler Circuit

voltage doubler circuit
 
So how does it work. The circuit shows a half wave voltage doubler. During the negative half cycle of the sinusoidal input waveform, diode D1 is forward biased and conducts charging up the pump capacitor, C1 to the peak value of the input voltage, (Vp). Because there is no return path for capacitor C1 to discharge into, it remains fully charged acting as a storage device in series with the voltage supply. At the same time, diode D2 conducts via D1 charging up capacitor, C2.
During the positive half cycle, diode D1 is reverse biased blocking the discharging of C1 while diode D2 is forward biased charging up capacitor C2. But because there is a voltage across capacitor C1 already equal to the peak input voltage, capacitor C2 charges to twice the peak voltage value of the input signal.
In other words, V(positive peak) + V(negative peak), so on the negative half-cycle, D1 charges C1 to Vp and on the positive half-cycle D2 adds the AC peak voltage to Vp onC1 and transfers it all to C2. The voltage across capacitor, C2 discharges through the load ready for the next half cycle.
Then the voltage across capacitor, C2 can be calculated as: Vout = 2Vp, (minus of course the voltage drops across the diodes used) where Vp is the peak value of the input voltage. Note that this double output voltage is not instantaneous but increases slowly on each input cycle, eventually settling to 2Vp.
As capacitor C2 only charges up during one half cycle of the input waveform, the resulting output voltage discharged into the load has a ripple frequency equal to the supply frequency, hence the name half wave voltage doubler. The disadvantage of this is that it can be difficult to smooth out this large ripple frequency in much the same way as for a half wave rectifier circuit. Also, capacitor C2 must have a DC voltage rating at least twice the value of the peak input voltage.
The advantage of “Voltage Multiplier Circuits” is that it allows higher voltages to be created from a low voltage power source without a need for an expensive high voltage transformer as the voltage doubler circuit makes it possible to use a transformer with a lower step up ratio than would be need if an ordinary full wave supply were used. However, while voltage multipliers can boost the voltage, they can only supply low currents to a high-resistance (+100kΩ) load because the generated output voltage quickly drops-off as load current increases.
By reversing the direction of the diodes and capacitors in the circuit we can also reverse the direction of the output voltage creating a negative voltage output. Also, if we connected the output of one multiplying circuit onto the input of another (cascading), we can continue to increase the DC output voltage in integer steps to produce voltage triplers, or voltage quadruplers circuits, etc, as shown.

DC Voltage Tripler Circuit

voltage tripler circuit
 
By adding an additional single diode-capacitor stage to the half-wave voltage doubler circuit above, we can create another voltage multiplier circuit that increases its input voltage by a factor of three and producing what is called a Voltage Tripler Circuit.
A “voltage tripler circuit” consists of one and a half voltage doubler stages. This voltage multiplier circuit gives a DC output equal to three times the peak voltage value (3Vp) of the sinusoidal input signal. As with the previous voltage doubler, the diodes within the voltage tripler circuit charge and block the discharge of the capacitors depending upon the direction of the input half-cycle. Then 1Vp is dropped across C3 and 2Vp across C2 and as the two capacitors are in series, this results in the load seeing a voltage equivalent to 3Vp.
Note that the real output voltage will be three times the peak input voltage minus the voltage drops across the diodes used, 3Vp – V(diode).
If a voltage tripler circuit can be made by cascading together one and a half voltage multipliers, then a Voltage Quadrupler Circuit can be constructed by cascading together two full voltage doubler circuits as shown.

DC Voltage Quadrupler Circuit

voltage quadrupler circuit
 
The first voltage multiplier stage doubles the peak input voltage and the second stage doubles it again, giving a DC output equal to four times the peak voltage value (4Vp) of the sinusoidal input signal. Also, using large value capacitors will help to reduce the ripple voltage.

Voltage Multiplier Summary

Then we have seen that Voltage Multipliers are simple circuits made from diodes and capacitors that can increase the input voltage by two, three, or four times and by cascading together individual half or full stage multipliers in series to apply the desired DC voltage to a given load without the need for a step-up transformer.
Voltage multiplier circuits are classified as voltage doubler’s, tripler’s, or quadrupler’s, etc, depending on the ratio of the output voltage to the input voltage. In theory any desired amount of voltage multiplication can be obtained and a cascade of “N” doublers, would produce an output voltage of 2N.Vp volts.
For example, a 10-stage voltage multiplier circuit with a peak input voltage of 100 volts would give a DC output voltage of about 1,000 volts or 1kV, assuming no losses, without the use of a transformer.
However, the diodes and capacitors used in all multiplication circuits need to have a minimum reverse breakdown voltage rating of at least twice the peak voltage across them as multi-stage voltage multiplication circuits can produce very high voltages, so take care. Also, voltage multipliers usually supply low currents to a high-resistance loads as the output voltage quickly drops away as the load current increases.
The Voltage Multiplication Circuits shown above, are all designed to give a positive DC output voltage. But they can also be designed to give negative voltage outputs by simply reversing the polarities of all the multiplier diodes and capacitors to produce a negative voltage doubler.

Tidak ada komentar:

Posting Komentar