Thursday, April 07, 2011



PC Interfacing - Introduction Computers and Programming


Machine Language

The machine language (also known as machine code or native code) is a system of instructions for a specific processor or a data processing system which can be run without compilation process.
In contrast to assembly language or high level language , it is very hard for us to understand the   code , It can be read only by experts and usually they will try to understand machine code with the help of special programs which is called machine language monitors . 
 The machine code is usually generated from assembler or compiler from other programming languages.  Machine language can be programmed directly which means no assembler for the target processor is needed.
Normally if we want to program a processor we need an assembler to translate our program from a text file assembly program into binary machine instructions.
For the execution and translation of machine code on unsuitable processors, we can use emulators .

Assembly Language

An assembly language is a special programming language , which is written in a human readable form for a specific processor. Each computer architecture has its own assembly language.
program in assembly language is also known as assembler code. It has a special compiler or also known as assembler. It converts the assembly language directly to executable machine language. The process to convert back the machine code to human-readable assembly code is called disassembly . However after this process some information such as identifiers and comments could not be recovered, as this information already lost during compiling process and it makes us difficult to understand the program.
When we program a computer in assembly language, the full range of computer hardware and chip program can be directly exploited. It is because assembly language programs works very well since they are often much smaller and faster than higher level programs that have a similar degree of complexity.  Nowadays assembly language is rarely used, unless the programs are very critical (for example, the programming for device drivers of graphics cards ) or completely new technologies whereby the high-level language libraries are still not exist. In principle, nowadays most machines use high-level programming.  Other disadvantage of assembly code is there are higher error rate (due to the complexity.


High Level Language

A high-level programming is a programming language , which allows the writing of a computer program in an abstract language (it is understandable for humans).
The first computers were using programs in machine code instruction. This is merely a sequence of numbers. The processors will interpret the sequence of commands. These commands consist of simple instructions such as arithmetic, memory access, etc. The first innovation was the invention of assembly languages ​​. It is not abstract, but the command is represented in text form.

In the end of 1950 , computer was so powerful that translation software programs could significantly facilitate the input. Fortran , Algol , and Lisp was the first generation of high level languages:
§  Fortran - FOR mula TRAN slation = formula translation
§  ALGOL - ALGO rithmic L anguage = language algorithms
§  LISP - LIS t P rocessing for list processing
These first generation of higher-level languages ​​contain abstract elements such as conditional statements ("if X is true, then do y") and loops ("while x, leads from y"). This make the program are more readable.

Most "modern" programming languages ​​( BASIC , C , C + + , C # , Pascal - known by the IDE Borland Delphi and Lazarus IDE - and Java ) are the languages ​​of the third generation .

Comparison between assembly language and high – level language
High-level programming
Assembly language
Syntax often adapted to human ways of thinking
Space-saving, highly compressed syntax
Mostly machine-independent
Only on a particular type of processor running
Loss of speed through abstraction (trend)
Machine-oriented commands increase the speed
Abstract, machine-independent data types (integer, float, ...)
Data types of the processor ( byte , word , long word)
Several control structures ( if , while ,...)
Jump instructions, macros
Data structures (field record)
Only simple types
Extensive semantic analysis is possible
Only basic semantic analysis is possible
Example:
  A: = 2; FOR I: = 1 TO 20 LOOP A: = A * I; END LOOP; PRINT (A);
Example:
      . ST ST START: MOV R1, # 2 MOV R2, # 1 M1: CMP R2, # 20 BGT M2 MUL R1, R2, R2 JMP INI M1 M2. JSR PRINT END

Borland C++ Builder

C++Builder is Borland’s hot new rapid application development (RAD) product for writing C++ applications.
With C++Builder you can write C++ Windows programs more quickly and more easily than was ever possible before. You can create Win32 console applications or Win32 GUI (graphical user interface) programs.
When creating Win32 GUI applications with C++Builder, you have all the power of C++ wrapped up in a RAD environment. What this means is that you can create the user interface to a program (the user interface means the menus, dialog boxes, main window, and so on) using drag-and drop techniques for true rapid application development.
You can also drop OCX controls on forms to create specialized programs such as Web browsers in a matter of minutes.
C++Builder gives you all of this, but you don’t sacrifice program execution speed because you still have the power that the C++ language offers you.

Object Oriented programming (OOP)

OOP is a new technique in software development. By emphasizing software reusability in program coding, OOP has the potential of increasing programmer productivity while reducing the cost of software maintenance. It does this by treating data as objects capable of manipulating themselves and gives great importance to relationships between objects.
C++ is one of the widely-used OOP languages today. C++ provides classes for declaring objects. In fact, before it was called C++ this programming language was called C with classes.

Wednesday, January 12, 2011

Tuesday, January 12, 2010

Autotronics - Sensor

Introductions


- A technical component which can detect a special physical condition or chemical characteristic (e.g. light, temperature, pressure, humidity) and change it to electrical signal

- Input -> physical or chemical effects

- Output -> electrical signal.

- Biological term -> receptor

- Sensors can be divided into 2 groups which can be differentiated by the applications and the form of creations.

- Active sensor

         o Created base on the measurement principal of electrical energy i.e. electro dynamic or piezo electric.

         o It doesn’t need any electrical energy.

- Passive sensor

         o Consists of passive components
   
         o The act of the sensor is depend on the changing of the parameter value of the passive components.

        o E.g. resistor thermometer



Applications

- Light ray -> light, X ray.

- Sounds -> the changing of the sound.

- Temporal -> time between 2 recordings

- Spectral -> width of band , number of bands

- Used in medicine and biology -> CCD Sensors

- Automation -> provide signals



Virtual sensor

- Realised by software.

- Measure the calculated values which can be collected by the real sensors.

- Used by applications where the real sensor is very expensive.



Digital Sensor

- Used in automation field.

- E.g. AC converter

- Get the digital signal directly.

- High linearity

Monday, January 11, 2010

Autotronics - Relays

Introductions


- Electrically operated switch

- Use electromagnet to operate switching mechanism.

- Necessary to control a circuit by a low-power signal.

- Help to control several circuits using one signal.


Basic Design and Operation

- It works using the principal of electromagnet.

- Consist of :-

          o A coil of wire surrounding a soft iron core

          o Iron yoke provides a low reluctance for magnetic flux

          o A movable iron armature.

          o Sets of contacts

- When the electric current passed through the coil, magnetic field attracts the armature.

- Movement of movable contacts makes or breaks a connection with a fixed contact.

- When current is off the armature will return back to its original position by a force.

- The force is normally provided by spring or gravity.

- In low voltage application -> relays operate quickly to reduce noise.

- In high voltage application -> relays operate quickly to reduce arcing.



Types of Relays

- Latching relay

          o Has 2 relaxed states

          o Also called as impulse, keep, stay

          o When the current is switched off, the relay remains in its last state.

           o It consumes power only for an instant while is being switched, and it retains its last setting across a power outage.

           o A current pulse in opposite polarity will change the state.


- Reed relay

          o Set of contacts inside a vacuum or inert gas filled glass tube.

          o It protects against atmospheric corrosion.

          o Capable of faster switching speeds than larger types of relays.

          o Have low switch current and voltage ratings.


- Mercury-wetted relay

          o Contacts are wetted with mercury.

          o Used to switch low voltage signals due to low contact resistance.

          o Used for high-speed counting and timing applications.

          o Position sensitive and must be mounted vertically.


- Polarized relay

        o Placed the armature between the poles of a permanent magnet to increase sensitivity.

         o Used to detect faint pulses and correct telegraphic distortion.



Applications

 to switch on many circuits using only one control circuit at the same time.

 To switch on a high voltage circuit using a low voltage circuit.

 To separate 2 conductors with different characteristics in a circuit.



Advantages

 high switching load.

 don't need any coolant

 can be shorted without losing its function.

 It can switch from small signals until high frequency power.



Disadvantages

 high delay time

 sensitive to vibration.

 Life span is depend on the mechanical components.

 It can create noise during switching.
Autotronics - Notes

Friday, January 08, 2010

Autotronics - Transistor

Introductions


- Active electronic devices used as switches and amplifier for electrical signal.

- Can usually be found as part of electronic switches in the application of communication technique, power electronics and computer system.

- Nowadays transistors are widely applied in integrated circuit especially in microelectronic industries.

- Made of silicon material with at least 3 terminals for connection to an external circuit.

- A voltage or current applied to one pair of transistor’s terminals changes the current flowing through another pair of terminals.

- There are 2 types of transistors which are bipolar transistor and field effect transistor.

- Both of them can be differentiated by the way signal is controlled.

- Bipolar transistor :-

      o The most commonly used transistor

      o Become the transistor of choice for many analogue circuits due to their great linearity and ease of manufacture.

- MOSFET

      o Widely used in digital circuits because of their utility in low-power devices

      o Usually in CMOS configuration.



Simple Operation

- The common usage as amplifier by controlling its output in proportion to the input signal.

- This action is due to its gain properties which enable it to use a small signal applied between one pair of its terminal to control a much larger signal at another pair of terminals.

- Another common application of transistor is as switch.

- Used to turn current on or off in a circuit as an electrically controlled switch.



a) Bipolar transistor

- Control electron (negative charge carrier) and hole (positive charge carrier) by manipulating the principal of generation and recombination of electron in a crystal.

- The principal is basically same as diode whereby electron and hole play a big role.

- A bipolar transistor has terminals labelled as base, collector and emitter.

- A small current at the base terminal(that is flowing from the base to the emitter) can control or switch a much larger current between the collector and the emitter terminals.

- Controlled by manipulating the electrical current.

- The contacts are Base, Emitter and Collector.

- Small control current is applied at the Base-Emitter path.

- The characteristic of NPN-transistor and PNP-transistor can be differentiated by the structure of the transistor.

- Bipolar transistor is basically a self block whereby without control from the small current at the Base-Emitter path, current can’t flow through the Collector-Emitter path.





Field Effect Transistor

- Field Effect Transistor (FET)

- Also known as uni polar transistor is controlled by manipulating voltage across it.

- The contacts are known as Gate, Drain and Source.

- In metal oxide semiconductor FET (MOSFET) there is an extra contact which is called as Bulk, where it is connected to Source.

- The resistance and also the current across the Drain-Source path are controlled by the voltage and also electric field at gate.

- The controlled current in the Drain-Source Canal can flow in both position rather than Collector current in bipolar transistor which can flow only in one direction.



Junction Field Effect Transistor (JFET)

- Normally JFET is a self conductive transistor.

- When there is no voltage at gate, the path between Source and Drain become conductive.

- But if voltage is applied at the Gate the conductivity between Source and Drain will reduce.

- There are 2 types of JFET i.e. N-Canal and P-Canal.

- N-Canal transistor can be recognized by referring to the arrow symbol which direction is showing into the transistor.

- For P-Canal the arrow will point in the opposite direction.

- JFET is normally used in special application such as microphone amplifier due to the complexity of the control.



Metal-Oxide Semiconductor – Field-Effect-Transistor

- This transistor is known as MOSFET due to the structure of semiconductor layer at the Gate.

- But nowadays poly silicon is used as the material at gate.

- MOSFET is normally used for charge transport which is suitable for use at very high frequencies e.g. microwave frequencies.



Special Type of Transistor

- Beside the normal type of transistors there are other types of transistors for special usage such as Bipolar transistor with isolated Gate electrode.

- This type of transistor is widely used in power electronic area where by it is actually a combination of MOS- and bipolar technology in a same package.

- Due to its capability it has been used in power electronic area to replace thyristor.

- Fototransistor is actually an optically sensitive bipolar transistor which has same application as other opto-coupler devices.

- The control of the transistor is not by the Base-emitter current but it is controlled by light.

- Light act similar as the Base current at the PN-junction.

- In some of the LCD display monitor, thin film transistors are used to control every pixel on the monitor.

- These FET is actually transparent. They are used to control the contrast, colour and the brightness of the monitor for each pixel.

- Therefore for each monitor more than million thin film transistors are used for this purpose.

- In programmable storage disk such as EPROMs and EEPROMs special MOSFET (floating gate) are used as prime storage element.

- By manipulating the electrical charge which are stored in the floating gate, the transistor can be switched on and off and also information of one bit can also be stored.



Applications


Digital Circuit

- Here transistors are used mainly in the making of integrated circuit in the RAM-Storage, Flash-Storage, microcontroller, microprocessor and logic gate.

- Normally there are about 1 billion of transistors on a substrat which are made of silicon.


Analogue Circuit

- In the analogue circuit transistors are used as operational amplifier, signal generator and also as reference voltage source.

- To convert between analogue to digital or vice versa Analogue-digital converter and digital-analogue converter are used frequently.

- The number of transistors used are about 100 to 10000.
Autotronics - Diodes

Introduction


- electronic component which let current flow through a conductor in one direction and act as an insulator in the opposite direction.

- can be thought as an electronic version of check valve.

- act as a rectifier to convert AC current to DC current and remove modulation from radio signals in radio receivers.

- The term of diode related to the semiconductor characteristics of PN junction .



The Construction of Semiconductor Diode

- made of impurities P-N semiconductor material (mostly Silicon, Germanium, Galliumarsenide and Sillicon carbide).

- The conductivity of a conductor is depend on the polarity of potential difference i.e. Anode (p-type semiconductor) and Cathode (n – type semiconductor) or the direction of the current flowing across it.

- The PN junction is an area where the action of diode takes place.

- Here the positive charge carriers (holes) from the P-type semiconductor and the negative charge carriers (electron) from the n-type semiconductor combine together.

- The crystal conducts current in a direction from p-type (anode) to the n-type side(cathode) but not in opposite direction.



Mechanical Model of Diode

- The function of diode can be represented as a simple check valve.

- When the pressure( potential difference) of the check valve (diode) is given in the opposite direction the current flow will be blocked.

- Enough pressure must be given in this direction until the spring of the check valve spoil to let the current flow.

- The voltage which is needed to let current flow is called threshold voltage or forward voltage drop.

- To reach this situation voltage at such value must be put in the direction of forward voltage so that diode will become conductive at certain position.


Semiconductor Diode

- made of semiconductor material such as silicon which has been added with impurities in it.

- The impurities is very important to create region on one side which contains negative charge carriers (electrons) i.e. n-type semiconductor.

- On another side it is a region which contains positive charge carriers (holes), called p-type semiconductor.

- Each of these regions are attached by diodes terminals

- between them there is a border which is called PN junction where here all actions of diode takes place.

- Currents flow in a direction from p-type side (anode) to the n-type side (cathode) but not in the opposite direction.

- Another type of semiconductor diode is the Schottky Diode which is formed from the contact between a metal and a semiconductor rather than by p-n junction.





Current – voltage Characteristic

- The behaviour of a semiconductor diode can be observed by the current-voltage characteristic.

- The shape of the curve in the graph is influenced by the transport of charge carriers through the depletion layer in the p-n junction.

- At first when the p-n junction is created the electrons from the N-type region diffuse into the p-type region where there are more holes (places for electron in which no electron is present).

- When an electron from the n-type region combines together with a hole, both electron and hole disappear.

- Now on the N-side, there is a static positively charged donor and on the P-side there is a negatively charged acceptor.

- Therefore right now the area around the P-N junction becomes depleted of charge carriers and thus behaves as an insulator.

- However the width of the depletion region can grow with limit.

- Each time the electron-hole recombines, a positively-charged ion is left behind in N-type region and negatively charged ion is left in the P-type region.

- This process happens continuously and more ions are created.

- After some time an increasing electric field develops in the depletion region and make the process slower and finally stop the recombination process.

- Now there is a built-in potential across the depletion area.

- Now let say if we put an external voltage across the diode with the same polarity as the built-in potential

- the depletion area will act as an insulator to prevent any electric current flow.

- This phenomenon is called reverse bias.

- However if the polarity of the external voltage is put in the opposite direction of the built in potential, the recombination process happen again to create a current flow through the p-n junction.

- For silicon diodes the built-in potential is approximately 0.6V.

- Thus if an external current passed through the diode about 0.6V will be developed across the diode such that the P-doped region is positive with respect to the N-typed region.

- Therefore the diode is said to be turned on as it has forward bias.



Types of Semiconductor Diode

- There are several types of diode

- differentiated by geometric scaling, doping level, choosing the right electrodes and the application of diodes.

- Normally these diodes are made of doped silicon

- rarely germanium.


a) Avalanche Diodes

- It conducts in the reverse direction when the reverse bias voltage exceeds the breakdown voltage.

- Normally they are mistakenly called Zener diodes due to electrical similarity.

- Avalanche diode break down by different mechanism, the avalanche effect.

- It is designed to break down at a well defined reverse voltage without being destroyed.

- The only practical difference is that the two types have temperature coefficients of opposite polarities.


b) Crystal diode

- It is a type of point-contact diode.

- It consists of a thin or sharpened metal wire pressed against a semiconducting crystal, typically galena or a piece of a coal.

- The wire forms the anode and the crystal forms the cathode.

- This type of diode is used normally as a crystal radio receivers.

- But nowadays crystal diode are generally obsolete, but may be available from a few manufacturers.


c) Constant current diode

- It is actually a JFET with the gate shorted to the source and function like a two-terminal current limiter analogue to the Zener diode, which is limiting voltage.

- Current is allowed to pass through then to rise to a certain value, and then level off at a specific value.

- It is also called CLDs, constant-current diode, diode-connected transistors or current-regulating diodes.


d) Esaki or tunnel diode

- It has a region of operation showing negative resistance caused by quantum tunnelling, thus allowing amplification of signals and very simple bistable circuits.

- This diode is also the type most resistant to nuclear radiation.


e) Gunn diode

- It is similar to tunnel diode in that it is made of materials such GaAs or InP that exhibit a region of negative differential resistance.

- With appropriate biasing, dipole domains form and travel across the diode, allowing high frequency microwave oscillators to be built.


f) Light emitting diode (LED)

- In a diode formed from a direct band-gap semiconductor, such as gallium arsenide, carriers that cross the junction emit photons when they recombine with the majority carrier on the other side.

- Depending on the material, wavelengths (or colors) from the infrared to the near ultraviolet may be produced.

- The forward potential of these diodes depends on the wavelength of the emitted photons: 1.2 V corresponds to red, 2.4 V to violet.

- The first LEDs were red and yellow, and higher-frequency diodes have been developed over time.

- All LEDs produce incoherent, narrow-spectrum light; “white” LEDs are actually combinations of three LEDs of a different color, or a blue LED with a yellow scintillator coating.

- LEDs can also be used as low-efficiency photodiodes in signal applications. An LED may be paired with a photodiode or phototransistor in the same package, to form an opto-isolator.


Laser diodes

- When an LED-like structure is contained in a resonant cavity formed by polishing the parallel end faces, a laser can be formed.

- Laser diodes are commonly used in optical storage devices and for high speed optical communication.


Peltier diodes

- These diodes are used as sensors, heat engines for thermoelectric cooling.

- Charge carriers absorb and emit their band gap energies as heat.


Photodiodes

- All semiconductors are subject to optical charge carrier generation.

- This is typically an undesired effect, so most semiconductors are packaged in light blocking material.

- Photodiodes are intended to sense light(photodetector), so they are packaged in materials that allow light to pass, and are usually PIN (the kind of diode most sensitive to light).

- A photodiode can be used in solar cells, in photometry, or in optical communications.

- Multiple photodiodes may be packaged in a single device, either as a linear array or as a two-dimensional array.

- These arrays should not be confused with charge-coupled devices.


Point-contact diodes

- These work the same as the junction semiconductor diodes described above, but their construction is simpler.

- A block of n-type semiconductor is built, and a conducting sharp-point contact made with some group-3 metal is placed in contact with the semiconductor.

- Some metal migrates into the semiconductor to make a small region of p-type semiconductor near the contact.

- The long-popular 1N34 germanium version is still used in radio receivers as a detector and occasionally in specialized analog electronics.


PIN diodes

- A PIN diode has a central un-doped, or intrinsic, layer, forming a p-type/intrinsic/n-type structure.

- They are used as radio frequency switches and attenuators.

- They are also used as large volume ionizing radiation detectors and as photodetectors.

- PIN diodes are also used in power electronics, as their central layer can withstand high voltages.

- Furthermore, the PIN structure can be found in many power semiconductor devices, such as IGBTs, power MOSFETs, and thyristors.



Schottky diodes

- Schottky diodes are constructed from a metal to semiconductor contact.

- They have a lower forward voltage drop than p-n junction diodes.

- Their forward voltage drop at forward currents of about 1 mA is in the range 0.15 V to 0.45 V, which makes them useful in voltage clamping applications and prevention of transistor saturation.

- They can also be used as low loss rectifiers although their reverse leakage current is generally higher than that of other diodes.

- Schottky diodes are majority carrier devices and so do not suffer from minority carrier storage problems that slow down many other diodes — so they have a faster “reverse recovery” than p-n junction diodes.

- They also tend to have much lower junction capacitance than p-n diodes which provides for high switching speeds and their use in high-speed circuitry and RF devices such as switched-mode power supply, mixers and detectors.


Super Barrier Diodes

- Super barrier diodes are rectifier diodes that incorporate the low forward voltage drop of the Schottky diode with the surge-handling capability and low reverse leakage current of a normal p-n junction diode.


Gold-doped diodes

- As a dopant, gold (or platinum) acts as recombination centers, which help a fast recombination of minority carriers.

- This allows the diode to operate at signal frequencies, at the expense of a higher forward voltage drop.

- Gold doped diodes are faster than other p-n diodes (but not as fast as Schottky diodes).


Snap-off or Step recovery diodes

- The term step recovery relates to the form of the reverse recovery characteristic of these devices.

- After a forward current has been passing in an SRD and the current is interrupted or reversed, the reverse conduction will cease very abruptly (as in a step waveform).

- SRDs can therefore provide very fast voltage transitions by the very sudden disappearance of the charge carriers.


Transient voltage suppression diode (TVS)

- These are avalanche diodes designed specifically to protect other semiconductor devices from high-voltage transients.

- Their p-n junctions have a much larger cross-sectional area than those of a normal diode, allowing them to conduct large currents to ground without sustaining damage.


Varicap or varactor diodes

- These are used as voltage-controlled capacitors.

- These are important in PLL (phase-locked loop) and FLL (frequency-locked loop) circuits, allowing tuning circuits, such as those in television receivers, to lock quickly, replacing older designs that took a long time to warm up and lock.

- A PLL is faster than an FLL, but prone to integer harmonic locking (if one attempts to lock to a broadband signal).

- They also enabled tuneable oscillators in early discrete tuning of radios, where a cheap and stable, but fixed-frequency, crystal oscillator provided the reference frequency for a voltage-controlled oscillator.


Zener diodes

- Diodes that can be made to conduct backwards.

- This effect, called Zener breakdown, occurs at a precisely defined voltage, allowing the diode to be used as a precision voltage reference.

- In practical voltage reference circuits Zener and switching diodes are connected in series and opposite directions to balance the temperature coefficient to near zero.

- Some devices labeled as high-voltage Zener diodes are actually avalanche diodes (see above).

- Two (equivalent) Zeners in series and in reverse order, in the same package, constitute a transient absorber (or Transorb, a registered trademark).

Thursday, January 07, 2010

Autotronics - Electrical Switches

Introduction


   - Electrical component which can break an electrical circuit.

   - Interrupting the current or diverting it from one conductor to another.

   - A manually operated electro mechanical device with one or more sets of electrical contacts.

   - Closed – contacts are touching and electricity can flow.

   - Open – contacts are separated and non conducting.


Contacts

   - The simplest -> 2 pieces of metal called contacts to make a circuit when they touch and separate to break the circuit.

   - Material of contacts are chosen base on its resistance to corrosion.

   - This is due to the problem of insulating oxides form at the metal which prevents the switch from working.

   - Materials of contacts are chosen base on the electrical conductivity, hardness (resistance to abrasive wear), mechanical strength, low cost and low toxicity.



Actuator

   - Moving part which applies the operating force to the contacts.

   - E.g. toggle , dolly, push-button.



Arcs and Quenching

   - When the wattage or voltage are large-> electron flow across opening switch contacts is sufficient to ionize the air molecules as the switch opened.

   - Gas plasma / electric arc is formed.

   - The disadvantage of gas plasma :

      o Low resistance

      o Able to sustain power flow.

      o Very hot and capable to erode the metal surfaces.

   - To minimize arc formation and preventing contact damage :

      o Use fast-moving switch mechanism. e.g. a spring operated tipping point mechanism.

      o Use a series of nonconductive blades spanning between switch contacts.

     o Use a puffer to blow a sudden high velocity burst of gas across the switch contacts.



Contact Arrangements

   - SPST -> Single Pole Single Throw

   - SPDT -> Single Pole Double Throw

   - SPCO -> Single Pole Change Over

   - DPST -> Double Pole Single Throw

   - DPCO -> Double Pole Change Over



Biased Switches

   - Switch that contain a spring to return the actuator to a certain point.

   - E.g. momentary push-button

     o Push-to-make (Normally Open)

     o Push-to-break (Normally Close)



Special Types

   - Designed to respond to any type of mechanical stimulus :

      o Vibration

      o Tilt

      o Air pressure

      o Fluid level

     o The turning of a key

     o Linear or rotary movement

     o Presence of a magnetic field

   - Mercury tilt switch

     o Consists of a drop of mercury inside a glass bulb with 2 or more contacts

     o When the bulb tilt contacts will be connected by mercury.

     o Better than ball tilt switch.-> unaffected by dirt, debris and oxidation.

     o Used when arcing is dangerous e.g. presence of explosive vapour.

   - Knife switch

     o Consist of flat metal plate hinged at one end and a fixed contact.

     o Usually it is not enclosed.

     o Used in electrical transmission and distribution, gang-operated switches which us used in circuits up to the highest voltages.

     o Disadvantages :- slow opening speed

 

Monday, January 04, 2010

Autotronics - Power Source


Introduction


- Source of electrical power.

- Device or system that supplies electrical or other types of energy to an output load or group of loads

- It is called a power supply unit or PSU.


Primary or Secondary Power Supplies

There are a lot of types of power supplies which may include a power distribution system as well as primary or secondary of energy such as:

- A converter which converts one form of electrical power to other desired form like converting AC voltage to a well regulated lower voltage DC for electronic devices. Low voltage or low power DC power supply units are normally integrated into electronic devices such as computers and household electronics.

- Batteries

- Fuel cells

- Solar power

- Generators or alternators.


There are some factors that should be considered when using a power supply:

- The amount of the power that can be supplied

- The duration of supply without needing some kind of recharging or refuelling

- The stability of the output voltage or current under varying load conditions

- Whether they provide continuous power or pulses.


Power Supply types

A) Linear Power Supply

- Simple design which becomes bulky and heavy for high current devices.

- Voltage regulation in a linear supply can result in low efficiency.

Battery Power Supply

- linear power supply which is mobile, portable and reliable.

- Constructed using multiple electrochemical cells connected to get the voltage desired


(i) Dry-Cell Battery

- The most commonly used dry-cell battery is the carbon-zinc dry cell battery.

- Made of carbon plate, electrolyte paste and a zinc plate which are stacked together.

- The chemical process which happened inside the battery produce voltage desired.

- The voltage is produced during the discharge of a carbon-zinc battery

- The zinc metal is converted to a zinc salt in the electrolyte

- Magnesium dioxide is reduced at the carbon electrode.

- It produces a voltage at about 1.5V.


(ii) Lead –acid battery

- Rechargeable

- Consists of lead and lead/dioxide electrodes which are immersed in sulphuric acid

- When fully charged it can produce about 2.06-2.14V voltage

- During discharge process, the lead is converted to lead sulphate and the sulphuric acid is converted to water

- But during charging process, the lead sulphate is converted back to lead and lead dioxide.


(iii) Nickel-cadmium battery

- become more popular.

- Completely sealed and rechargeable.

- Has longer life span because electrolyte is not involved in the electrode reaction

- During the charging process nickel oxide is oxidized to its higher oxidization state and cadmium oxide is reduced.

- It can be stored both charged and uncharged

- Has a long service life, high current availabilities, constant voltage and ability to be recharged.



AC Linear Power Supply

- Uses transformer to convert the voltage from the socket outlet (mains) to lower voltage.

- If it used to produce DC voltage so a rectifier will be used.

- A capacitor is used to smooth the pulsating current from the rectifier.

- The voltage produced by unregulated power supply will vary depending on the load and the variations in the AC power supply.

- Linear regulator is normally used by critical electronics applications to stabilize and adjust the voltage.

- It normally provides current limiting, protecting the power supply and attached circuit from the over current.

- The simplest dc power supply circuit consists of a single diode and resistor in series with the AC supply.

- The circuit is common in rechargeable flashlights.


AC/DC Supply

- Formerly mains electricity was supplied as DC and AC separately.

- A simple power supply would run directly from the either AC or DC mains often without using transformer.

- Consisted of a rectifier and a capacitor filter.



B) Switching power supply.
- A switched mode supply of the same rating as a linear supply will be smaller
- Usually more efficient but will be more complex.



Switch Mode power supply (SMPS)

- A SMPS work differently.

- AC, mains input is directly rectified without the use of a transformer, to obtain DC voltage.

- This voltage is then sliced into small pieces by a high-speed electronic switch.

- The size of these slices grows larger as power output requirement increase.

- The input power slicing occurs at a very high speed.

- High frequency and high voltages in this first stage permit much smaller step down transformers than are in a linear power supply.

- After transformer secondary, the AC is again rectified to DC.

- To keep output voltage constant the power supply needs a sophisticated feedback controller to monitor current draw by the load.

- Nowadays it is equipped by the crowbar circuit as the safety features to help protect the device form the harm.

- When the abnormal high current power is detected, it can assume this is a direct short and will shut down before it is damaged.

- Normally used in PC to provide a power good signal to the motherboard which prevents operation when abnormal supply voltages are present.


Programmable power supply

- Can supply output which can be varied remotely.

- Can be controlled digitally using a computer interface.

- Composed of a processor, voltage/current programming circuits, current shunt, and voltage/current read-back circuits.

- Used in many applications such as automated equipment testing, crystal growth monitoring, and differential thermal analysis.


Uninterruptable power supply (UPS)

- It takes its power from two or more sources simultaneously.

- Usually powered by AC (mains), while simultaneously charge the storage battery.

- Should there be a dropout or failure of the mains, the battery will take over so that the load never experiences an interruption.

- Such a scheme can supply power as long as the battery charge suffices, e.g., in a computer installation, giving the operator sufficient time to effect an orderly system shutdown without loss of data.

- Other UPS schemes may use an internal combustion engine or turbine to continuously supply power to a system in parallel with power coming from the AC mains.

- The engine-driven generators would normally be idling, but could come to full power in a matter of a few seconds in order to keep vital equipment running without interruption.

- Such a scheme might be found in hospitals or telephone central offices.


High-voltage power supply

- It refers to an output on the order of hundreds or thousands.

- High voltage supplies use a linear setup to produce voltage in this range.

- It is able to reverse the output polarity along with the use of circuit breakers and special connectors to minimize arcing and accidental contact with human hands.


Voltage multipliers

- It is actually a circuit designed to multiply the input voltage.

- The input voltage may be doubled (voltage doubler), quadrupled (voltage quadrupled).

- It is also actually a power converter.

- An AC input inside converted to a higher DC output.

- It allows high voltages to be obtained using a much lower voltage AC source.

- It can be found in televisions, photocopier, cathode ray tubes, and oscilloscopes.


Applications


Computer power supply

A modern power supply is a switched mode supply designed to convert 110-240V AC power from mains supply to several output both positive DC voltages.


Welding power supply

Arc welding uses electricity to melt the surfaces of the metals in order to join them together. The electricity is provided by a welding power supply and can be either AC or DC. It requires high current between 100 and 350 amps.


AC Adapter

A linear or switched mode power supply that is built in the top of the plug is known as power adapter. They are actually either the same kind of DC plug offering different voltage or polarity or different plug offering the same voltage.

The least expensive AC units consists of a small transformer while DC adapters include a few additional diodes. Whether or not a load is connected to the power adapter, the transformer has a magnetic field continuously present and normally cannot be completely turned off unless unplugged.

Sunday, August 30, 2009

Autocad - Blocks , Attribute and other Tools For Collaboration

Create and Insert Block

To view object information :
-> Start the list command.
-> Select the outer rectangle.
-> Press
-> View the info.


To create a block .
-> Click Make block .
-> Enter the name.
-> Under base point , click Pick Point. Click one point.
-> Under Object select Object.
-> Select the object.
-> Click OK.
-> View the Object information.


To insert the block.
-> Click Insert Block.
-> Select the listed name. Place the object.


Use Design Center

-> On the Standard Annotation toolbar , click Design Center.
-> Position and resize the DesignCenter.
-> Use objects from the DesignCenter.

Use Tool Palettes

-> On the Standard Annotation toolbar, click Tool Palettes Window.
-> Select any tabs.
-> Select the object.

Saturday, August 29, 2009

Autocad - Dimension

Creating and Saving a Dimension Style

We can get most information from drawing just by looking at it but we won’t know everything unless we dimension it. Dimension is very important to convey information which have clear and accurate dimensions.

There are many ways to dimension a drawing and each of them has its own rules. E.g a drawing of gear would use a different style of dimensioning than that of a subdivision.
A dimension style is a named collection of dimension settings that controls the appearance of dimensions, such as arrowhead style, text location and lateral tolerances. We create dimension styles to specify the format of dimensions quickly and to ensure that dimensions conform to industry or project standards.

A few things that we have to remember :

· When we create a dimension style, it uses the setting of the current dimension style.

· If we change the setting of dimension style, all dimensions in the drawing use the style update automatically.

· We can create dimension substyles for specified types of dimensions or any deviation from the current dimension style.

· If necessary we can override the current style temporarily.

To set the style of dimension: Select the Dimension dropdown menu and choose the Dimension style. Here we can select the appropriate arrows styles and the dimension style from the list.

Linear Dimension

-> On the dimension panel, click Linear.
-> Click the points and position the dimension accordingly.
-> Repeat the Linear dimension and do to the rest.

To Correct the Dimension Spacing

-> On the Dimensions panel , click Dimspace.
-> Select the inner most dimension for the base.
-> Click the remain dimensions from the bottom to top.
-> Press twice to accept the auto spacing.

To create an aligned dimension

-> On the Dimensions panel , click Aligned.
-> Select starting point (1).
-> Select end point (2).
-> Position the dimension accordingly.

To create a radial dimension :

-> On the Dimensions panel , click Radius.
-> Select the circle and position the dimension accordingly.

To create a jogged dimension :

-> On the dimensions panel , click Jogged.
-> Select the arc/circle at point (1).
-> Specify the center location override at point (2).
-> Specify the dimension line location at point (3).
-> Specify the jog location at point (4).

To create a diameter dimension :

-> On the Dimension panel , click Diameter.
-> Select the circle and position the dimension .

To create an angular dimension :

-> On the dimensions panel , click angular.
-> Select the line at point (1).
-> Select the line at point (2).Position the dimension.

To create baseline dimension :

-> On the dimensions toolbar, click baseline e.g base dimension.
-> The last dimension created is automatically used as the base dimension.
-> Select other points.
-> Press to complete the baseline command.
-> Press to complete the dimension command.

To clean up the overlapping extension lines :

-> On the dimensions panel , click Dimbreak.
-> Right click . Click Multiple.
-> Select the left end extension line 1 and 2 as shown.
-> Right click. Click break.
-> The selected extension lines break whenever they cross extension line.

Modify a Dimension Style

-> On the Dimension Panel click dimension style.
-> Here we can modify the dimension lines, symbols and arrows, text , fit and units.

Editing Dimension

-> Click on the selective dimension.
-> Use the grip box to edit either the line or the position of the text.

Sunday, June 21, 2009

AutoCad - Text

Single text : DTEXT : It is designed for creating single lines . Although we can press Enter to create more than one line of text each line becomes a separate text object.

These texts are independent object which can be relocated, reformatted or modified. When we create a single-line text we can assign the text style and set the alignment. We can use TEXT command besides DTEXT to enter the text-in-place or enter –text on the command line to enter the text on the command line.

During the execution we have to specify the start point of text, the text height and the rotation angle of text. As we creating the text we can align the text by justifying it with one of these options : TL(Top Left), ML(Middle Left), TC(Top Center), TR(Top Right), MR(Middle Right), BR(Bottom Right), MC(Middle Center), BC(Bottom Center), BL(Bottom Left) and etc.....


Text Using Character Codes

In addition to Unicode characters for entering special characters , we can also overscore text , underscore text or insert a special character by including control information in the text string. We have to use a pair of percent signs to introduce each control sequence.

%%nnn -> Draws character number nnn.

%%o -> Overscore the character

%%u -> Underscore the character

%%d -> Draws degrees symbol (°)

%%p -> Draws plus/minus tolerance symbol (±)

%%c -> Draws circles diameter dimensioning symbol. (Ø)


Entering Multiline text using MTEXT.

Paragraph text : MTEXT : It is designed for multiple lines with word-wrapping. AutoCad keeps the multiple lines together as a single object. Other special formatting such as numbered and bulleted list is possible.

We can create one or more paragraphs of multiline text in the In-Place Text Editor (or an alternative text editor) or use prompts on the command line. We have to specify the opposite corners of a text bounding box before entering or importing text. This text bounding box defines the width of the paragraphs in the multiline text object. The length of the multiline text object depends on the amount of text, not the length of the bounding box. We can use grips to move or rotate a multiline text object.

The characteristics of the text are controlled by the style of text which sets the default font and other options such as line spacing, justification, and color. Within the multiline text object we can override the current text style by applying formatting such as underlining, boldface and different fonts to individual characters.

We can view and change the object properties at the properties palette including properties that apply specifically to the text.


Editing text Using DEDIT

To edit a single-line text or dimension text from the toolbar we can just click the icon or we have to go to menu Modify->Object->Text->Edit... We can also type DDEDIT at the command entry.



Thursday, April 23, 2009

AutoCad - Polar and Object Snap

Creating Rectangular And Polar Array

We can create copies of objects in a rectangular or polar (circular) pattern called an array.

For rectangular arrays, we control the number of rows and columns and the distance between each. For polar arrays, we control the number of copies of the object and whether the copies are rotated. To create many regularly spaced objects, arraying is faster than copying.

Rectangular Array

To create a rectangular array :

  1. At the drop down menu select Modify -> Array.
  2. In the array dialog box we have to select rectangular array.
  3. Then click select object . The dialog box will be minimized for us to select the object. Press to prompt the dialog box.
  4. We have to enter the number of row and column.
  5. After that specify the offset of the vertical and horizontal spacing by entering the distance of offset at the dialogue box or by clicking the both offset button or by clicking the offset button for row and column independently.
  6. Enter the angle of rotation.
  7. At last click OK to execute the command.

Polar Array

To create the polar array :

  1. At the drop down menu select Modify -> Array.
  2. Select polar array.
  3. Select the center point by specifying the coordinate or by clicking the center point button to allocate the cursor to the correct center point.
  4. Click select object button and select the object.
  5. Then we can select whether to use a) total number of item and angle to fill b) total number of item and angle between item c) angle to fill and angle between item.
  6. Enter number of item including the original item if available.
  7. We can either rotate the object as it arrayed and select rotate item as copied or specify the x and y base point .
  8. Click OK to proceed.
  • Then we have to select which method that we want to use :

Using the Rotate Command and Polar Tracking at any angle.

Polar Tracking

Polar tracking is similar to using Ortho to constrain screen pointing motion. The big difference is the ability to specify our own increment angle.

To activate the function ,we have to activate the button at the status line which state POLAR. To set the angle just right click on the button and pick setting on the menu that appears. In the increment angle section, seelct 45 from the list. This will lock the polar tracking at the 45 degree angle.

On the same tab, select the radio button Track using all polar angle settings, instead of tracking orthogonally (90 degrees increments). After finish click OK. Make sure the POLAR button is turned on.

Rotate Command

We can rotate objects in our drawing around a specified base point.

To determine the angle of rotation, we can enter an angle value, drag using the cursor, or specify a reference angle to align to an absolute angle.

To rotate a drawing at a specified angle , we have to enter a rotation angle value from 0 to 360 degrees. We can also enter values in radians, grads, or surveyor bearings. Entering a positive angle value rotates the objects counterclockwise or clockwise, depending on the Direction Control setting in the Drawing Units dialog box.

We can also rotate a drawing by dragging the object around the base point and specify a second point. We have to use Ortho mode, polar tracking, or object snaps for greater precision.

For example, we can rotate the plan view of a house by selecting the objects , specifying a base point , and specifying an angle of rotation by dragging to another point .

With the Reference option, we can rotate an object to align it to an absolute angle.

For example, to rotate a part so the diagonal edge rotates to 90 degrees, we select the objects to be rotated , specify the base point , and enter the Reference option. For the reference angle, specify the two endpoints of the diagonal line . For the new angle, enter 90.

Creating Mirror Images of Objects.

To create a symmetrical mirror image we have to flip the object about a specified axis.

Mirroring is useful to create symmetrical objects because we can quickly draw half the object and then mirror it instead of drawing the entire object.

We can flip object about an axis called a mirror line to create a mirror image. To specify this temporary mirror line we have to enter two points. We can choose whether to erase or retain the original objects.

To create a mirror image , select Modify -> Mirror. or we can just type the mirror command . Then we have to select the object . After that select two points for the mirror line.

Creating Page Setup

A page setup is a collection of plot device and other settings that affect the appearance and format of our final output. These settings can be modified and applied to other layouts.

After we complete a drawing on the Model tab, we can begin creating a layout to plot by clicking a layout tab. When we click a layout tab for the first time, a single viewport is displayed on the page. A dashed line indicates the printable area of the paper for the currently configured paper size and plotter.

When we create a layout, we specify a plotter and settings such as page size and plot orientation. These settings are saved in a page setup. We can control these settings for layouts and for the Model tab using the Page Setup Manager. We can name and save page setups for use with other layouts.

If we don't specify all the settings in the Page Setup dialog box when we create a layout, we can set up the page just before we plot. Or we can override a page setup at plot time. We can use the new page setup temporarily for the current plot, or we can save the new page setup.

Once we have set up our layout , we specify the settings for the layout's page setup, which includes the plot device settings and other settings that affect the appearance and format of the output. The settings we specify in the page setup are stored in the drawing file with the layout. We can modify the settings of a page setup at any time.

Selecting Points with Object SNAP and OSNAP

To draw efficiently the best way is by activating function SNAP. By using this function we can restrict the movement of the crosshairs to any intervals that have been defined by us. The cursor seems to adhere to an invisible rectangular grid. When we use snap it is easy for us to specify the precise points with the arrow keys or the pointing device.

To turn on the Snap mode and set the snap spacing. Click Tools menu -> Drafting setting...

In the dialogue box select the Snap On. We have to select Grid Snap and Rectangular snap. Then we can enter the value of snap spacing for X and Y. Lastly press OK .

We can also simply activate the Snap Mode by clicking the Snap menu at the status bar.

OSNAP is also one of the tool which can help us work with AUTOCAD efficiently. Without OSNAP we can't even draw a simple shape precisely. Object Snap (OSNAP) snaps the part of objects eg a line have 2 endpoints and a midpoint.

OSNAP also have other type of functions which are not so precise e.g perpendicular, midsection, node, quadrant, parallel and etc.

So in order to use OSNAP effectively we have to know which function of OSNAP that we need to draw efficiently.

This function can be used in running mode which is it running in the background. Sometime if we need other function of OSNAP then we have to activate it independently.

To activate this function we can either simply clicking the OSNAP symbol at the status bar or we can just type the short cut which is 'OS .

Object Snap Tracking

Objects can be drawn at specific angles or in specific relationship to other objects along specified directions and it is called alignment paths.

To draw an object easily at a specific angles or in a specific relationships to other objects we can use AutoTrack. AutoTrack help us to create objects at precise positions and angles by using temporary alignment paths. AutoTrack has 2 options which are polar tracking and object snap tracking. We can activate the AutoTrack with the Polar and Otrack buttons on the status bar. Object snap tracking work together in parallel to the object snaps so we have to set the object snap first before we can track the object's snap point.

We can track the alignment paths that are based on object snap points by using the object snap tracking. The particular point will display a small plus sign (+) and we can acquire up to seven tracking points at a time. The alignment path will be displayed relative to the tracking points as we move the the cursor over the drawing paths.

Using OFFSET, BREAK and EXTEND.

Offset function can be used to create a new object whose shape parallels to the shape of new object. Offsetting a shape create a larger or smaller shape.There are 2 ways to do offset the first way is by specifying the distance and the second way is by offsetting an object through a point.

To activate this function we just have to click Modify meni -> Offset or click the icon offset or type the command entry .

Break function is very important to a single object to 2 objects with or without gap between them . We can also join objects to make a single object. This function is normally used to create a gap in an object resulting in 2 objects with a gap between them and it is often used to create a space for block or text.

To activate this function click Modify->break or click Break icon or type the command text .

To join objects we can use function JOIN which also can be used to create complete circles and elilipses from arcs and elliptical arcs. Click menu Modify -> Join or click icon Join or type the command text .

Extend function is very handy to lengthen objects to meet edges of other objects. This can simply be done by creating an object such as a line and the ater adjust it to fit exactly bteween other objects. We can extend objects so they end precisely at boundary edges defined by other objects. Click menu Modify-> Extend then select the object which will serve as boundary edges. We can also click the icon Extend or just type in the command text.

Using STRETCH to alter objects connected to other objects.

We can resize objects to make them longer or shorter in only one direction or to make them proportionally larger or smaller. We can also stretch certain objects by moving an endpint , vertex, or control point. With this function we can relocate the endpoints of objects that lie across or within a crossing selection window. To stretch an object we have to specify a base point and then a point of displacement. Just click menu Modify-> Stretch or click icon Stretch or type command .

Changing Lengths with Lengthen Command

We can change the lengthen the length of an object by using lengthen command. We can change the angle of arcs and the length of these objects :

- Lines , Arcs , open polyline , Elleptical arcs , Open slipes .

We can simply drag on object endpoint dynamically or specify the new length or angle as a percentage of the total length or angle , specify an incremental length or angle measured from an endpoint, specify the objects total absolute length or included angle. To do this just click menu Modify-> Lengthen or type command text lengthen. There are a few modes to lengthen objects i.e delta , total , percent and dynamic.


Creating Plot Layouts

In AutoCad there are two different workspaces which are : model space and Layout/Paper space. Normally if we want to print out our project it is better to plot the drawing in the Layout/Paper space. Model space is a workspace where we can create our model and layout space is a space where we print our drawing or layout the final drawing complete with dimensions, notes, title block etc.

Layout is actually a page where we can set up a plot or printout of our drawing. Normally the drawing is created in Model Space and the title block and viewport are created in Layout/Paper space.

Viewport is a window into “model space”. Using viewport we can view the drawing which is in the model space. We can just view the drawing without editing the drawing. To create viewport type MV command. To have access to the object in the model space from paper space type MS command. A window for access will be opened. To close the window type PS command.

We can just plot the model from model space but it is better to plot the model from paper space as we can have many layouts from one drawing. To swap between 2 spaces we can just click the layout tabs back to model tabs or we can just simply enter the command TILEMODE and set it to 0 fro paper space and 1 for model space. At the bottom left we can see the symbol of UCS if we are in the model space and we are in paper space if triangle symbol appear at the bottom left.

Points to remember : We should use paper space only for plotting. If we want to edit the drawing it is better if we change back to model space. It is better if we don’t draw any objects in paper space.