Tech Search

Custom Search

Sunday, September 25, 2011

Digital to Analog Converter DAC 0800

Digital to Analog Converter : DAC 0800
Digital to Analog Converter(DAC 0800) with Current to Voltage converter(LM741)

In electronics, a digital-to-analog converter (DAC or D-to-A) is a device for converting a digital (usually binary) code to an analog signal (current, voltage or electric charge). Digital-to-analog converters are interfaces between the abstract digital world and analog real life. An analog-to-digital converter (ADC) performs the reverse operation. A DAC usually only deals with pulse-code modulation (PCM)-encoded signals. The job of converting various compressed forms of signals into PCM is left to codecs. Basic Operation: The DAC fundamentally converts finite-precision numbers (usually fixed-point binary numbers) into a physical quantity, usually an electrical voltage. 
Normally the output voltage is a linear function of the input number. Usually these numbers are updated at uniform sampling intervals and can be thought of as numbers obtained from a sampling process. These numbers are written to the DAC, sometimes along with a clock signal that causes each number to be latched in sequence, at which time the DAC output voltage changes rapidly from the previous value to the value represented by the currently latched number. The effect of this is that the output voltage is held in time at the current value until the next input number is latched resulting in a piecewise constant output. This is equivalently a zero-order hold operation and has an effect on the frequency response of the reconstructed signal. 
Basic Operation: The DAC fundamentally converts finite-precision numbers (usually fixed-point binary numbers) into a physical quantity, usually an electrical voltage. Normally the output voltage is a linear function of the input number. Usually these numbers are updated at uniform sampling intervals and can be thought of as numbers obtained from a sampling process. These numbers are written to the DAC, sometimes along with a clock signal that causes each number to be latched in sequence, at which time the DAC output voltage changes rapidly from the previous value to the value represented by the currently latched number. The effect of this is that the output voltage is held in time at the current value until the next input number is latched resulting in a piecewise constant output. This is equivalently a zero-order hold operation and has an effect on the frequency response of the reconstructed signal. The fact that practical DACs do not output a sequence of dirac impulses (that, if ideally low-pass filtered, result in the original signal before sampling) but instead output a sequence of piecewise constant values or rectangular pulses, means that there is an inherent effect of the zero-order hold on the effective frequency response of the DAC resulting in a mild roll-off of gain at the higher frequencies (a 3.9224 Db loss at the Nyquist frequency). 
This zero-order hold effect is a consequence of the hold action of the DAC and is not due to the sample and hold that might precede a conventional analog to digital converter as is often misunderstood. DAC0800 The DAC0800 series are monolithic 8 bit high speed current output digital to analog faturing typical setting times of 100ns. When used as a multiplying DAC, monotonic performance over a 40 to 1 refeence current range is possible. The DAC0800 series also features high complemementary current output to allow diferential output voltages of 20 Vp-p with simple resistor loads. The reference to full scale current matching of better than l LAB elimanates the need for full scale trims in most application while the nonlinearities of better than 0.1 over temperature minimize system error accumulations. 
The noise immune inputs of the DAC0800 series wil accepet TTL levels with the logic thershold pin grounded. Channging the Vlc potential will allow direct interface to other logic families. The pefrormance and characteriststics of the device are essentially unchanged over the full 4.5v to 18v power supply range power dissipation is only 33mvw with +5v supplies and is independent of the logic input states. The output of the DAC is current signal. So it is given to current voltage converter which is constructed by the LM 741 operational amplifier. Finally the anlaog voltage is given to Triac or SCR control circuit.

Wednesday, September 21, 2011

PROXIMITY SENSORs


PROXIMITY SENSOR
A proximity sensor detects an object when the object approaches within the detection boundary of the sensor. Proximity sensors are used in various facets of manufacturing for detecting the approach of metal objects. 
Various types of proximity sensors are used for detecting the presence or absence of an object. The design of a proximity sensor can be based on a number of principles of operation, some examples include: variable reluctance, eddy current loss, saturated core, and Hall Effect. Depending on the principle of operation, each type of sensor will have different performance levels for sensing different types of objects. 

Common types of non-contact proximity sensors include inductive proximity sensors, capacitive proximity sensors, ultrasonic proximity sensors, and photoelectric sensors. Hall-effect sensorsdetect a change in a polarity of a magnetic field. 
Variable reluctance sensors typically include a U-type core and coils wound around the core legs. Inductive proximity sensors have a lossy resonant circuit (oscillator) at the input side whose loss resistance can be changed by the proximity of an electrically conductive medium. 
An electrical capacitance proximity sensor converts a variation in electrostatic capacitance between a detecting electrode and a ground electrode caused by approaching the nearby object into a variation in an oscillation frequency, transforms or linearizes the oscillation frequency into a direct current voltage, and compares the direct current voltage with a predetermined threshold value to detect the nearby object. 

Ultrasonic sensing systems provide a much more efficient and effective method of longer range detection. These sensors require the use of a transducer to produce ultrasonic signals. 
Eddy-current proximity sensors are well known and operate on the principle that the impedance of an ac-excited electrical coil is subject to change as the coil is brought in close proximity to a metallic object. 

Proximity sensors often are employed in manufacturing industries in which the sensors are exposed to harsh environmental conditions. Inductive proximity sensors are used in automation engineering to define operating states in automating plants, production systems and process engineering plants.
Magnetic proximity detectors are commonly used on ski lifts and tramways for detecting a derope condition of the steel cable used as a haul line or haul rope. 
Proximity sensors are widely used in the automotive industry to automate the control of power accessories. For instance, proximity sensors are often used in power window controllers to detect the presence of obstructions in the window frame when the window pane is being directed to the closed position.

Friday, September 16, 2011

IC ULN 2803 driver circuit

IC ULN 2803 driver circuit
A ULN2803 is an Integrated Circuit (IC) chip with a High Voltage/High Current Darlington Transistor Array. It allows you to interface TTL signals. A TTL signal operates from 0-5V, with everything between 0.0 and 0.8V considered "low" or off, and 2.2 to 5.0V being considered "high" or on. The maximum power available on a TTL signal depends on the type, but generally does not exceed 25mW (~5mA @ 5V), so it is not useful for providing power to something like a relay coil. Computers and other electronic devices frequently generate TTL signals. On the output side the ULN2803 is generally rated at 50V/500mA, so if can operate small loads directly. 
Alternatively, it is frequently used to power the coil of one or more relays, which in turn allow even higher voltages/currents to be controlled by the low level signal. In electrical terms, the ULN2803 uses the low level (TTL) signal to switch on/turn off the higher voltage/current signal on the output side. The ULN2803 comes in an 18-pin IC configuration and includes eight (8) transistors. Pins 1-8 receive the low level signals; pin 9 is grounded (for the low level signal reference). Pin 10 is the common on the high side and would generally be connected to the positive of the voltage you are applying to the relay coil. Pins 11-18 are the outputs (Pin 1 drives Pin 18, Pin 2 drives 17, etc.).
The ULN2803 is a small integrated circuit that contains 8 transistor driver channels. Each channel has an input to a resistor connected to the base of a transistor and a 1 amp open collector output capable of handling up to about 30volts .Each of the collectors has a reverse biased diode connected to a common Vcc pin that provides inductive spike protection. Typical uses are for micro-processor interfaces to relays, lamps, solenoids and small motors. A 2803 with a set of relays is a simple and effective way of switching mains voltages for example.
Driver Features 
• TTL, DTL, PMOS, or CMOS Compatible Inputs 
• Output Current to 500 mA 
• Output Voltage to 95 V 
• Transient-Protected Outputs 
• Dual In-Line Package or Wide-Body Small-Outline Package 

Wednesday, September 14, 2011

Relay Vs Switch
A relay is an electrically operated switch. Current flowing through the coil of the relay creates a magnetic field which attracts a lever and changes the switch contacts. The coil current can be on or off so relays have two switch positions and they are double throw (changeover) switches. 

Relays allow one circuit to switch a second circuit which can be completely separate from the first. For example a low voltage battery circuit can use a relay to switch a 230V AC mains circuit. There is no electrical connection inside the relay between the two circuits; the link is magnetic and mechanical. The coil of a relay passes a relatively large current, typically 30mA for a 12V relay, but it can be as much as 100mA for relays designed to operate from lower voltages. 
Most ICs (chips) cannot provide this current and a transistor is usually used to amplify the small IC current to the larger value required for the relay coil. The maximum output current for the popular 555 timer IC is 200mA so these devices can supply relay coils directly without amplification. 
Relays are usually SPDT or DPDT but they can have many more sets of switch contacts, for example relays with 4 sets of changeover contacts are readily available. For further information about switch contacts and the terms used to describe them please see the page on switches. Most relays are designed for PCB mounting but you can solder wires directly to the pins providing you take care to avoid melting the plastic case of the relay. The supplier's catalogue should show you the relay's connections. The coil will be obvious and it may be connected either way round. Relay coils produce brief high voltage 'spikes' when they are switched off and this can destroy transistors and ICs in the circuit. To prevent damage you must connect a protection diode across the relay coil. The animated picture shows a working relay with its coil and switch contacts.
You can see a lever on the left being attracted by magnetism when the coil is switched on. This lever moves the switch contacts. There is one set of contacts (SPDT) in the foreground and another behind them, making the relay DPDT. 
The relay's switch connections are usually labeled COM, NC and NO: 
• COM = Common, always connect to this,it is the moving part of the switch. 
• NC = Normally Closed, 
COM is connected to this when the relay coil is off.
• NO = Normally Open, COM is connected to this when the relay coil is on. 
• Connect to COM and NO if you want the switched circuit to be on when the relay coil is on. 
• Connect to COM and NC if you want the switched circuit to be on when the relay coil is off. 
 Choosing a relay You need to consider several features when choosing a relay: 
1. Physical size and pin arrangement If you are choosing a relay for an existing PCB you will need to ensure that its dimensions and pin arrangement are suitable. You should find this information in the supplier's catalogue. 
2. Coil voltage The relay's coil voltage rating and resistance must suit the circuit powering the relay coil. Many relays have a coil rated for a 12V supply but 5V and 24V relays are also readily available. Some relays operate perfectly well with a supply voltage which is a little lower than their rated value. 
3. Coil resistance The circuit must be able to supply the current required by the relay coil. You can use Ohm's law to calculate the current: Relay coil current = supply voltage coil resistance 
4. For example: A 12V supply relay with a coil resistance of 400 passes a current of 30mA. This is OK for a 555 timer IC (maximum output current 200mA), but it is too much for most ICs and they will require a transistor to amplify the current. 
5. Switch ratings (voltage and current) The relay's switch contacts must be suitable for the circuit they are to control. You will need to check the voltage and current ratings. Note that the voltage rating is usually higher for AC, for example: "5A at 24V DC or 125V AC". 
6. Switch contact arrangement (SPDT, DPDT etc) Most relays are SPDT or DPDT which are often described as "single pole changeover" (SPCO) or "double pole changeover" (DPCO). For further information please see the page on switches. 
Protection diodes for relays Transistors and ICs (chips) must be protected from the brief high voltage 'spike' produced when the relay coil is switched off. The diagram shows how a signal diode (e.g. 1N4148) is connected across the relay coil to provide this protection. Note that the diode is connected 'backwards' so that it will normally not conduct. Conduction only occurs when the relay coil is switched off, at this moment current tries to continue flowing through the coil and it is harmlessly diverted through the diode. Without the diode no current could flow and the coil would produce a damaging high voltage 'spike' in its attempt to keep the current flowing. 
Advantages of relays: • Relays can switch AC and DC, transistors can only switch DC. • Relays can switch high voltages, transistors cannot. • Relays are a better choice for switching large currents (> 5A). • Relays can switch many contacts at once.
Disadvantages of relays: • Relays are bulkier than transistors for switching small currents. • Relays cannot switch rapidly (except reed relays), transistors can switch many times per second. • Relays use more power due to the current flowing through their coil. • Relays require more current than many chips can provide, so a low power transistor may be needed to switch the current for the relay's coil.