All Topics  
Switch

 
Switch

   Email Print
   Bookmark   Link






 

Switch



 
 
In electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
, a switch is an electrical component which can break an electrical circuit, interrupting the current
Electric current

Electric current is the flow of electric charge. The electric charge may be either electrons or ions.The International System of Units unit of electric current intensity is the ampere....
 or diverting it from one conductor to another. The most familiar form of switch is a manually operated electromechanical device with one or more sets of electrical contacts. Each set of contacts can be in one of two states: either 'closed' meaning the contacts are touching and electricity can flow between them, or 'open', meaning the contacts are separated and nonconducting.

Since the advent of digital logic in the 1950s, the term has spread to a variety of digital active devices such as transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s and logic gate
Logic gate

A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits....
s whose function is to change their output state between two logic level
Logic level

In digital circuits, a logic level is one of a finite number of states that a digital signal can have. Logic levels are usually represented by the voltage difference between the signal and Ground , although other standards exist....
s or connect different signal
Digital signal

The term digital signal is used to refer to more than one concept. It can refer to discrete-time signals that have a discrete number of levels, for example a Sampling_ and quantification analog signal, or to the continuous-time waveform signals in a digital system, representing a bit-stream....
 lines, and even computers, network switch
Network switch

A network switch is a computer networking device that connects computer network Network segment.The term commonly refers to a Network bridge that processes and routes data at the Data link layer of the OSI model....
es, whose function is to provide connections between different ports
Computer port (hardware)

In computer hardware, a 'port' serves as an interface between the computer and other computers or peripheral devices. Physically, a port is a specialized outlet on a piece of equipment to which a Electrical connector or cable connects....
 in a computer network
Computer network

A computer network is a group of interconnected computers. Networks may be classified according to a wide variety of characteristics. This article provides a general overview of some types and categories and also presents the basic components of a network....
.






Discussion
Ask a question about 'Switch'
Start a new discussion about 'Switch'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
, a switch is an electrical component which can break an electrical circuit, interrupting the current
Electric current

Electric current is the flow of electric charge. The electric charge may be either electrons or ions.The International System of Units unit of electric current intensity is the ampere....
 or diverting it from one conductor to another. The most familiar form of switch is a manually operated electromechanical device with one or more sets of electrical contacts. Each set of contacts can be in one of two states: either 'closed' meaning the contacts are touching and electricity can flow between them, or 'open', meaning the contacts are separated and nonconducting.

Since the advent of digital logic in the 1950s, the term has spread to a variety of digital active devices such as transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s and logic gate
Logic gate

A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits....
s whose function is to change their output state between two logic level
Logic level

In digital circuits, a logic level is one of a finite number of states that a digital signal can have. Logic levels are usually represented by the voltage difference between the signal and Ground , although other standards exist....
s or connect different signal
Digital signal

The term digital signal is used to refer to more than one concept. It can refer to discrete-time signals that have a discrete number of levels, for example a Sampling_ and quantification analog signal, or to the continuous-time waveform signals in a digital system, representing a bit-stream....
 lines, and even computers, network switch
Network switch

A network switch is a computer networking device that connects computer network Network segment.The term commonly refers to a Network bridge that processes and routes data at the Data link layer of the OSI model....
es, whose function is to provide connections between different ports
Computer port (hardware)

In computer hardware, a 'port' serves as an interface between the computer and other computers or peripheral devices. Physically, a port is a specialized outlet on a piece of equipment to which a Electrical connector or cable connects....
 in a computer network
Computer network

A computer network is a group of interconnected computers. Networks may be classified according to a wide variety of characteristics. This article provides a general overview of some types and categories and also presents the basic components of a network....
. The term 'switched' is also applied to telecommunications network
Telecommunications network

A telecommunications network is a wiktionary:Network of telecommunications links and nodes arranged so that messages may be passed from one part of the network to another over multiple links and through various nodes....
s, and signifies a network that is circuit switched, providing dedicated circuits for communication between end nodes, such as the public switched telephone network
Public switched telephone network

The public switched telephone network is the network of the world's public circuit switching telephone networks, in much the same way that the Internet is the network of the world's public Internet protocol-based packet switching networks....
. The common feature of all these usages is they refer to devices that control a binary
Binary

Binary means composed of two parts or two pieces. It contrasts with Unary, Ternary, Quaternary , and so on.Binary may also refer to:* Binary option, also known as digital option OR all-or-nothing option...
 state: they are either on or off, closed or open, connected or not connected.

Contacts

In the simplest case, a switch has two pieces of metal
Metal

In chemistry, a metal is a chemical element whose atoms readily lose electrons to form positive ions , and form metallic bonds between other metal atoms and ionic bonds between nonmetal atoms....
 called contacts that touch to make a circuit, and separate to break the circuit. The contact material is chosen for its resistance to corrosion
Corrosion

Corrosion means the breaking down of essential properties in a material due to chemical reactions with its surroundings. In the most common use of the word, this means a loss of electrons of metals reacting with water and oxygen....
, because most metals form insulating
Electrical insulation

An insulator, also called a dielectric, is a material that resists the flow of electric current. An insulating material has atoms with tightly bonded valence electrons....
 oxide
Oxide

An oxide is a chemical compound contaning at least one oxygen atom as well as at least one other element. Most of the Earth's crust consists of oxides....
s that would prevent the switch from working. Contact materials are also chosen on the basis of electrical conductivity
Electrical conductivity

Electrical conductivity or specific conductance is a measure of a material's ability to electrical conduction an electric current. When an electrical potential difference is placed across a conductor, its movable charges flow, giving rise to an electric current....
, hardness (resistance to abrasive wear
Wear

In materials science, wear is the erosion of material from a solid surface by the action of another substance. The study of the processes of wear is part of the discipline of tribology....
), mechanical strength
Strength of materials

In materials science, the strength of a material refers to the material's ability to withstand an applied stress without failure. Yield strength refers to the point on the engineering stress-strain curve beyond which the material begins deformation that cannot be reversed upon removal of the loading....
, low cost and low toxicity
Toxicity

Toxicity is the degree to which a substance is able to damage an exposed organism. Toxicity can refer to the effect on a whole organism, such as an animal, bacterium, or plant, as well as the effect on a substructure of the organism, such as a cell or an organ , such as the liver ....
.

Sometimes the contacts are plated
Electroplating

Electroplating is a plating process that uses electrical direct current to redox cations of a desired material from a solution and coat a electrical conductivity object with a thin layer of the material, such as a metal....
 with noble metal
Noble metal

Noble metals are metals that are resistant to corrosion or oxidation, unlike most base metals. They tend to be precious metals, often due to rarity in the crust of the Earth....
s. They may be design
Design

Design is used both as a noun and a verb. The term is often tied to the various applied arts and engineering . As a verb, "to design" refers to the process of originating and planning for a product, structure, system, or component with intention....
ed to wipe against each other to clean off any contamination. Nonmetallic conductor
Electrical conductor

In science and Electrical engineering, an electrical conductor is a material which contains movable electric charges. In metallic conductors, such as copper or aluminum, the movable charged particles are electrons ....
s, such as conductive plastic
Plastic

Plastic is the general common term for a wide range of synthetic or semisynthetic organic chemistry solid materials suitable for the manufacture of industrial products....
, are sometimes used.

Actuator

The moving part that applies the operating force to the contacts is called the actuator
Actuator

An actuator is a mechanical device for moving or controlling a mechanism or system....
, and may be a toggle or dolly, a rocker, a push-button or any type of mechanical linkage (see photo).

Contact arrangements


Tpst
A pair of contacts is said to be 'closed' when there is no space between them, allowing electricity
Electricity

Electricity is a general term that encompasses a variety of phenomena resulting from the presence and flow of electric charge. These include many easily recognizable phenomena such as lightning and static electricity, but in addition, less familiar concepts such as the electromagnetic field and electromagnetic induction....
 to flow from one to the other. When the contacts are separated by an insulating air gap, an air space, they are said to be 'open', and no electricity can flow at typical voltages.

Switches can be and are classified according to the arrangement of their contacts in electronics fields— but electrician
Electrician

An electrician is a tradesman specializing in electrical wiring of buildings and related equipment. Electricians may be employed in the installation of new electrical components or the maintenance and repair of existing electrical infrastructure....
s in the electrical wiring service business and their electrical supplier industries use different nomenclature, such as "one-way", "two-way", "three-way" and "four-way" switches—which have different meanings in North American and British cultural regions as is delineated in the table below.

Some contacts are normally open (Abbreviated "n.o." or "no") until closed by operation of the switch, while others are normally closed ("n.c. or "nc") and opened by the switch action, where the abbreviations given are commonly used on electronics diagrams for clarity of operation in assembly, analysis or troubleshooting. They serve to synchronize meaning with possible mistakes in wiring assembly, where wiring part of switch one way and part another (usually opposite) way will pretty much guarantee things won't work as designed.

A switch with both types of contact is called a changeover switch
Changeover switch

A changeover switch, more commonly called an SPDT switch, is a type of switch that can be positioned in two Closed circuit states. The switch has three pins: the common pin, the normally closed pin, which is connected to the common pin when the switch is not pressed, and the normally open pin, which is connected to the common p...
 or "make-before-break" switch contact, whereas most switches have a spring loaded action which momentarily disconnect the load and so are "break-before-make" types by contrast— which type is used could be important, if for example, the switch selects two different power sources instead of switching circuit loads, or the circuit load will not and cannot tolerate any interruption in applied power.

The terms pole and throw are also used to describe switch contact variations. A pole is a set of contacts, the switch's electrical terminals that are connected to and belong to a single circuit, usually a load. A throw is one of two or more positions (the nomenclature is also applied to rotary switch
Rotary switch

A rotary switch is a type of switch that is used on devices which have two or more different "states" or modes of operation, such as a three-speed fan or a CB radio with multiple frequency of reception or "channels"....
es, which can have many 'throw' positions) that the switch can adopt, which normally, but not always correspond to the number positions the switch handle or rotor can take when connecting between the common lead of the switch and a pole or poles. A throw position which connects no terminals (poles), has a mis-match between positions and positions which connect terminals, but are quite useful to turn things "Off" or for example, alternatively select between two scaled modes of operation. (e.g. Bright illumination, moderate illumination, no illumination.)

These terms give rise to abbreviations for the types of switch which are used in the electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 industry such as "single-pole, single-throw" (SPST) (the simplest type, "on or off") or "single-pole, double-throw" (SPDT), connecting either of two terminals to the common terminal. In electrical power
Mains

Mains may mean or refer to, or be a subject of:* Mains electricity * Electricity transmission* Public utility, about "mains services", including electricity, natural gas, water, and sewage disposal...
 wiring (i.e. House and building wiring by electrician
Electrician

An electrician is a tradesman specializing in electrical wiring of buildings and related equipment. Electricians may be employed in the installation of new electrical components or the maintenance and repair of existing electrical infrastructure....
s) names generally involving the suffixed word "-way" are used; however, these terms differ between British
British English

British English or UK English is the broad term used to distinguish the forms of the English language used in the United Kingdom from forms used elsewhere....
 and American
American English

PhonologyIn many ways, compared to English language in England, North American English is conservative in its phonology. Some distinctive accents can be found on the East Coast of the United States , partly because these areas were in contact with England, and imitated prestigious varieties of English English at a time when those varieties we...
 English
English language

English is a West Germanic language that originated in Anglo-Saxon England and has lingua franca status in many parts of the world as a result of the military, economic, scientific, political and cultural influence of the British Empire in the 18th, 19th and early 20th centuries and that of the United States from the mid 20th century onwa...
 and the terms two way and three way are used in both with different meanings.

Electronics specification and abbreviation Expansion
of
abbreviation
British
mains
wiring
name
American
electrical
wiring
name
Description Symbol IEC
International Electrotechnical Commission

The International Electrotechnical Commission is a Non-profit organization, non-governmental international standards organization that prepares and publishes International Standards for all electrical, electronic and related technologies ? collectively known as "electrotechnology"....
 60617
SPST Single pole, single throw One way Two way A simple on-off switch: The two terminals are either connected together or not connected to anything. An example is a light switch
Light switch

A light switch is a switch, most commonly used to operate electric lights, permanently connected equipment, or electrical outlets.In modern homes most lights are operated using switches set in walls, usually 6-10 inches away from a door, to operate overhead ceiling lights....
.
Spst Switch
Symbol Circuit Breaker (one Pole)
SPDT Single pole, double throw Two way Three way A simple changeover switch: C (COM, Common) is connected to L1 or to L2.
Spdt Switch
Symbol Change Over Switch
SPCO
SPTT, c.o.
Single pole changeover
or
Single pole, centre off or
Single Pole, Triple Throw
    SPDT. Some suppliers use SPCO/SPTT for switches with a stable off position in the centre and SPDT for those without.    
DPST Double pole, single throw Double pole Double pole Equivalent to two SPST switches controlled by a single mechanism
Dpst Symbol
Symbol Circuit Breaker (two Pole)
DPDT Double pole, double throw     Equivalent to two SPDT switches controlled by a single mechanism: A is connected to B and D to E, or A is connected to C and D to F.
Dpdt Symbol
DPCO Double pole changeover
or Double pole, centre off
    Equivalent to DPDT. Some suppliers use DPCO for switches with a stable off position in the centre and DPDT for those without.
    Intermediate switch 4-way switch DPDT switch internally wired for polarity-reversal applications: only four rather than six wires are brought outside the switch housing; with the above, B is connected to F and C to E; hence A is connected to B and D to C, or A is connected to C and D to B.
Crossover Switch Symbol
Symbol Cross Switch


Switches with larger numbers of poles or throws can be described by replacing the "S" or "D" with a number or in some cases the letter "T" (for "triple"). In the rest of this article the terms SPST, SPDT and intermediate will be used to avoid the ambiguity in the use of the word "way".

Make-before-break, break-before-make

In a multi-throw switch, there are two possible transient behaviors as you move from one position to another. In some switch designs, the new contact is made before the old contact is broken. This is known as make-before-break, and ensures that the moving contact never sees an open circuit (also referred to as a shorting switch). The alternative is break-before-make, where the old contact is broken before the new one is made. This ensures that the two fixed contacts are never shorted to each other. Both types of design are in common use, for different applications.

Biased switches

A biased switch is one containing a spring
Spring (device)

A spring is an Elasticity object used to store mechanical energy. Springs are usually made out of hardened steel. Small springs can be wound from pre-hardened stock, while larger ones are made from annealing steel and hardened after fabrication....
 that returns the actuator to a certain position. The "on-off" notation can be modified by placing parentheses around all positions other than the resting position. For example, an (on)-off-(on) switch can be switched on by moving the actuator in either direction away from the centre, but returns to the central off position when the actuator is released.

The momentary push-button switch is a type of biased switch. The most common type is a push-to-make switch, which makes contact when the button is pressed and breaks when the button is released. A push-to-break switch, on the other hand, breaks contact when the button is pressed and makes contact when it is released. An example of a push-to-break switch is a button used to release a door held open by an electromagnet
Electromagnet

An electromagnet is a type of magnet in which the magnetic field is produced by the flow of electric Current . The magnetic field disappears when the current ceases....
. Changeover push button switches do exist but are even less common.

Special types

Switches can be designed to respond to any type of mechanical stimulus: for example, vibration (the trembler switch), tilt, air pressure, fluid level (the float switch
Float switch

A float switch is a device used to sense the level of liquid within a tank. The switch may actuate a pump, an indicator, an alarm, or other device....
), the turning of a key (key switch
Key switch

Keyswitches are switches that can be activated only by Key , usually used in businesses where only the management should have access to the switch's functions....
), linear or rotary movement (the limit switch or microswitch), or presence of a magnetic field (the reed switch
Reed switch

The reed switch is an electrical switch operated by an applied magnetic field. It was invented at Bell Telephone Laboratories in 1936 by W. B....
).

Mercury tilt switch

The mercury switch
Mercury switch

A mercury switch is a switch whose purpose is to allow or interrupt the flow of electric current in an electrical circuit in a manner that is dependent on the switch's physical position or alignment relative to the direction of the "pull" of earth gravity....
 consists of a drop of mercury
Mercury (element)

Mercury , also called quicksilver or hydrargyrum , is a chemical element with the symbol Hg and atomic number 80. A heavy, silvery d-block metal, mercury is one of six elements that are liquid at or near room temperature and pressure....
 inside a glass
Glass

Glass generally refers to a Hardness, brittle, transparency amorphous solid, such as that used for windows, many Glass Bottles, or eyewear, including, but not limited to, soda-lime glass, borosilicate glass, acrylic glass, sugar glass, Muscovite , or aluminium oxynitride....
 bulb with 2 contacts. The two contacts pass through the glass, and are connected by the mercury when the bulb is tilted to make the mercury roll on to them.

This type of switch performs much better than the ball tilt switch, as the liquid metal connection is unaffected by dirt, debris and oxidation, it wets the contacts ensuring a very low resistance bounce free connection, and movement and vibration do not produce a poor contact.These types can be used for precision works

Knife switch

Knife switch
Knife switch

File:Electrical Machinery 1917 - knife switch.jpgA knife switch is a type of switch used to control the flow of electricity in a circuit. It is comprised of a hinge which allows a metal lever, or knife, to be lifted from or inserted into a slot or jaw....
es are unique; the electrical contacts are exposed, mounted on an insulating plastic or porcelain plate, unlike modern switches in which the working parts are enclosed in an insulating plastic or rubber housing to protect users from contact with hazardous voltage
Voltage

Electrical tension is the potential difference between two points of an electrical or electronic circuit, expressed in volts. It is the measurement of the potential for an electric field to cause an electric current in an electrical conductor....
s.

The "knife", a flat metal swinging arm, is moved by the user between two or more gripping contacts of springy metal. The knife and contacts are typically formed of copper, steel, or brass, depending on the application.

The primary advantage of a knife switch is the extremely high current capability inherent to the design. The amount of surface area on the "knife" that shorts the contacts is also extremely high, allowing a wide range of high voltage or high amperage applications with no circuit degradation, choke, or arcing during the switch throw. Thicker components need only be accompanied by wider contacts to conduct higher currents, which allows the design to scale extremely well with size. It's disadvantage is that to operate it, a user has to grasp the knife's insulated handle near the exposed contacts and knife blade, causing a great risk of electric shock
Electric shock

An electric shock can occur upon contact of a human's body with any source of voltage high enough to cause sufficient Electric current through the muscles or hair....
.

Although knife switches are inferior to traditional switches in applications where user safety is paramount, they are still commonly employed in everyday high-voltage applications such as building transformers, large power relays, and air-conditioning units.

Others

A simple semiconductor
Semiconductor

A semiconductor is a material that has electrical conductivity between those of a Electrical conductor and an electrical insulation; it can vary over that wide range either permanently or dynamically....
 switch is a transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
. Other types of switch include:
  • Centrifugal switch
    Centrifugal switch

    A centrifugal switch is an electric switch that operates using the centrifugal force created from a rotating shaft, most commonly that of an electric motor or gasoline engine....
  • DIP switch
    DIP switch

    A DIP switch is a set of manual Switch that are packaged in a group in a standard dual in-line package . This type of switch is designed to be used on a printed circuit board along with other electronics components and is commonly used to customize the behavior of an electronic device for specific situations....
  • Hall-effect switch
  • Inertial switch
    Inertial switch

    An inertial switch is a switch, firmly mounted upon a vehicle or other mobile device, that senses shock or vibration. It is a part of Electrical network that may either enable or disable some function....
  • Membrane switch
    Membrane switch

    A membrane switch is an electrical switch for turning on and off a circuit. It differs from a mechanical switch, which is usually made of copper and plastic parts: a membrane switch is a circuit printed on a Polyethylene terephthalate or ITO....
  • Toggle switch
    Toggle switch

    A toggle switch is a class of electrical switches that are actuated by a mechanical lever, handle, or rocking mechanism.Toggle switches are available in many different styles and sizes, and are used in countless applications....
  • Transfer switch
    Transfer switch

    Transfer switches allow switches from a primary power source to a secondary or tertiary power source and are employed in some electrical power distribution systems....
  • Time switch
    Time switch

    A time switch is an switch with a built-in clock that plugs into an AC_power_plugs_and_sockets, between the socket itself and a power plug. This physical arrangement allows the connected device to automatically receive power for a desired duration of time....
  • Vandal resistant switch
    Vandal resistant switch

    Vandal resistant switches are electrical switch designed to be installed in a location and application where they may be subject to vandalism, harsh environmental conditions or simply operated very frequently and expected to survive....


Intermediate switch

A DPDT switch has six connections, but since polarity reversal is a very common usage of DPDT switches, some variations of the DPDT switch are internally wired specifically for polarity reversal. These crossover switches only have four terminals rather than six. Two of the terminals are inputs and two are outputs. When connected to a battery or other DC source, the 4-way switch selects from either normal or reversed polarity. Intermediate switches are also an important part of multiway switching systems with more than two switches (see next section).

Multiway switching

Multiway switching is a method of connecting switches in groups so that any switch can be used to connect or disconnect the load. This is most commonly done with lighting.

Two locations

Twowayswitching
Switching a load on or off from two locations (for instance, turning a light on or off from either end of a flight of stairs) requires two SPDT switches. There are two basic methods of wiring to achieve this, and another not recommended.

In the first method, mains is fed into the common terminal of one of the switches; the switches are then connected through the L1 and L2 terminals (swapping the L1 and L2 terminals will just make the switches work the other way round), and finally a feed to the light is taken from the common of the second switch. A connects to B or C, D connects to B or C; the light is on if A connects to D, i.e. if A and D both connect to B or both connect to C.

The second method is to join the three terminals of one switch to the corresponding terminals on the other switch and take the incoming supply and the wire out to the light to the L1 and L2 terminals. Through one switch A connects to B or C, through the other also to B or C; the light is on if B connects to C, i.e. if A connects to B with one switch and to C with the other.

Wiring needed in addition to the mains network (not including protective earths):

First method:
  • double wire between both switches
  • single wire from one switch to the mains
  • single wire from the other switch to the load
  • single wire from the load to the mains


Second method:
  • triple wire between both switches
  • single wire from any position between the two switches, to the mains
  • single wire from any position between the two switches, to the load
  • single wire from the load to the mains


If the mains and the load are connected to the system of switches at one of them, then in both methods we need three wires between the two switches. In the first method one of the three wires just has to pass through the switch, which tends to be less convenient than being connected. When multiple wires come to a terminal they can often all be put directly in the terminal. When wires need to be joined without going to a terminal a crimped joint, piece of terminal block, wirenut or similar device must be used and the bulk of this may require use of a deeper backbox.


Using the first method, there are four possible combinations of switch positions: two with the light on and two with the light off. N.B. This diagram uses the American electrical wiring name from the table above.
Off On


An unrecommended method
If there is a hot (a unique phase) and a neutral wire in both switches and just one wire between them where the light is connected (as in the picture), you can then solve the two-way switch problem easily: just plug the hot in the top from switch, the neutral in the bottom from switch and the wire that goes to the light in the middle from the switch. This in both switches. Now you have a fully functional two-way switch.

This works like the first method above: there are four possibilities and just in two of them there is a hot and a neutral connected in the poles of the light. In the other ones, both poles are neutral or hot and then no current exists because the potential difference is zero.

The advantage of this method is that it uses just one wire to the light, having a hot and neutral in both switches.

The reason why this is not recommended is that the light socket pins may still be hot even with the light off, which poses a risk when changing a bulb. Another problem with this method is that in both switches there will be hot and neutral wires entering a single switch, which can lead to a short circuit in the event of switch failure, unlike the other methods.

This method is in defiance of the National Electrical Code (USA) and the Canadian Electrical Code
Canadian Electrical Code

The Canadian Electrical Code, CE code, or CSA C22.1 is a standard published by the Canadian Standards Association for addressing the installation and maintenance of electrical equipment in Canada....
. In nearly any and all applications, neutral conductors should never be switched. Not only is this a shock hazard due to mistakenly believing that a hot conductor is switched off; it is also a fire hazard and can destroy sensitive equipment due to excessive and unbalanced current on hot conductors that would otherwise return to ground on the neutral conductor.

More than two locations

Morethantwowayswitching
For more than two locations, the two cores connecting the L1 and L2 of the switches must be passed through an intermediate switch (as explained above) wired to swap them over. Any number of intermediate switches can be inserted, allowing for any number of locations.

Wiring needed in addition to the mains network (not including protective earths):

Second method:
  • double wire along the sequence of switches
  • single wire from first switch to last switch
  • single wire from anywhere between two of the switches to the mains
  • single wire from anywhere between the same two switches to the load
  • single wire (neutral) from load to mains


Using the first method, there are eight possible combinations of switch positions: four with the light on and four with the light off. N.B. This diagram also uses the American electrical wiring name from the table above.
Off On


As mentioned above, the above circuit can be extended by using multiple 4-way switches between the 3-way switches to extend switching ability to any number of locations.

Power switching

When a switch is designed to switch significant power, the transitional state of the switch as well as the ability to stand continuous operating currents must be considered. When a switch is in the on state its resistance is near zero and very little power is dropped in the contacts; when a switch is in the off state its resistance is extremely high and even less power is dropped in the contacts. However when the switch is flicked the resistance must pass through a state where briefly a quarter (or worse if the load is not purely resistive) of the load's rated power is dropped in the switch.

For this reason, most power switches (most light switches and almost all larger switches) have spring mechanisms in them to make sure the transition between on and off is as short as possible regardless of the speed at which the user moves the rocker.

Power switches usually come in two types. A momentary on-off switch (such as on a laser pointer
Laser pointer

A laser pointer is the most commonly used means of highlighting points of interest. It does this by projecting a point of light during a presentation....
) usually takes the form of a button and only closes the circuit when the button is depressed. A regular on-off switch (such as on a flashlight
Flashlight

A flashlight is a portable electric searchlight which emits light from a small incandescent lightbulb, or from one or more light-emitting diodes ....
) has a constant on-off feature. Dual-action switches incorporate both of these features.

Inductive loads

When a strongly inductive
Inductance

Inductance is the property in an electrical circuit where a change in the current flowing through that circuit induces an Electromotive force that opposes the change in current ....
 load such as an electric motor
Electric motor

An electric motor uses electrical energy to produce mechanical energy, nearly always by the interaction of magnetic fields and current-carrying conductors....
 is switched on, an input surge current
Inrush current

Inrush current or input surge current refers to the maximum, instantaneous input current drawn by an electrical device when first turned on....
 exists that may be several times larger than the steady-state current. When switched off, the current cannot drop instantaneously to zero; a spark
Spark

A spark is a small airborne ember or particle of red-hot matter.Spark may also refer to:In science:* An electric spark, usually with a flash and a sharp noise, may be:...
 will jump across the opening contacts. Switches for inductive
Inductance

Inductance is the property in an electrical circuit where a change in the current flowing through that circuit induces an Electromotive force that opposes the change in current ....
 loads must be rated to handle these cases. The spark will cause electromagnetic interference
Electromagnetic interference

Electromagnetic interference is an unwanted disturbance that affects an electrical circuit due to either electromagnetic conduction or electromagnetic radiation emitted from an external source....
 if not suppressed; a snubber
Snubber

A snubber is a device used to suppress voltage transients in Electronics systems, pressure transients in fluid systems, or excess force or rapid movement in Mechanics systems....
 network of a resistor
Resistor

|- align = "center"||width = "25"|| |- align = "center"||| Potentiometer|- align = "center"| || |- align = "top"| Resistor|| Variable resistor...
 and capacitor
Capacitor

A capacitor or condenser is a Passive component electronic component consisting of a pair of electrical conductor separated by a dielectric....
 in series will quell the spark. Exact values can be optimised for the particular application, but for many cases a 100 ohm
Ohm

The ohm is the SI unit of electrical impedance or, in the direct current case, electrical resistance, named after Georg Ohm....
 resistor in series with a 100 nanofarad
Farad

The farad is the SI unit of capacitance. The farad is named after the British physicist Michael Faraday....
 capacitor will do.

Up or down


In the USA, domestic light switches are generally moved into the up position to be turned on and vice versa. In Europe the converse is true; the up position generally corresponds to a switch being off. A purely hypothetical argument for using the USA convention is that the switch should move to its off position if its spring fails, and so this convention provides a safe failure mode. However, this hypothesis has not been validated, and there is little evidence that suggests this hypothesis the reason for the USA convention. So because there is no significant technical reason for either preference, the conventions likely developed due to chance and some degree of cultural isolation.

In multiway switching, the correspondence between a single switch's state and whether lights are on or off depends on other switches in the circuit. In a 3-way configuration, whether lights are on or off will correspond to whether the switches are in the same state (both up or down) or a different state (one up and one down). Multiway switching conventions will often vary from installation to installation; some electricians may not have a multiway switching convention.

In countries prone to earthquakes, such as Japan, most switches rock sideways to prevent the switch from inadvertently being turned on or off by falling objects.

Contact bounce

Contact bounce (also called chatter) is a common problem with mechanical switches and relay
Relay

A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
s. Switch and relay contacts are usually made of springy metals that are forced into contact by an actuator. When the contacts strike together, their momentum and elasticity act together to cause bounce. The result is a rapidly pulsed electrical current instead of a clean transition from zero to full current. The waveform is then further modified by the parasitic inductance
Inductance

Inductance is the property in an electrical circuit where a change in the current flowing through that circuit induces an Electromotive force that opposes the change in current ....
s and capacitance
Capacitance

In electromagnetism and electronics, capacitance is the ability of a body to hold an electrical charge.Capacitance is also a measure of the amount of electric charge stored for a given electric potential....
s in the switch and wiring, resulting in a series of damped sinusoidal oscillation
Oscillation

Oscillation is the repetitive variation, typically in time, of some measure about a central value or between two or more different states. Familiar examples include a swinging pendulum and Alternating current power....
s. This effect is usually unnoticeable in AC mains circuits, where the bounce happens too quickly to affect most equipment, but causes problems in some analogue
Analogue electronics

Analogue electronics are those electronics systems with a continuous function variable signal. In contrast, in digital electronics signals usually take only two different levels....
 and logic circuits that respond fast enough to misinterpret the on-off pulses as a data stream.

Sequential digital logic circuits
Sequential logic

In digital circuit theory, sequential logic is a type of logic circuit whose output depends not only on the present input but also on the history of the input....
 are particularly vulnerable to contact bounce. The voltage waveform produced by switch bounce usually violates the amplitude and timing specifications of the logic circuit. The result is that the circuit may fail, due to problems such as metastability
Metastability in electronics

Metastability in electronics is the ability of a non-equilibrium electronic state to persist for a long period of time . Note this definition does not guarantee all of the properties that are sometimes demanded for a metastable state in statistical mechanics....
, race condition
Race condition

A race condition or race hazard is a flaw in a system or process whereby the output and/or result of the process is unexpectedly and critically dependent on the sequence or timing of other events....
s, runt pulse
Runt pulse

In digital circuits, a runt pulse is a narrow Pulse that,due to non-zero rise time and fall time times of the signal, does not reach a validhigh or low level....
s and glitch
Glitch

A glitch is a short-lived fault in a system. The term is particularly common in the computing and electronics industries, and in circuit bending, as well as among players of video games, although it is applied to all types of systems including human organizations and nature....
es.

There are a number of techniques for debouncing (mitigating the effects of switch bounce). They can be split into wet contacts, timing based techniques and Hysteresis
Hysteresis

A system with hysteresis can be summarized as a system that may be in any number of states, independent of the inputs to the system. To be exact, a system with hysteresis exhibits path-dependence, or "rate-independent memory"....
 based techniques.

Wet contacts

Mercury wetted switch contacts do not suffer from bounce, as once the connection is made the mercury
Mercury (element)

Mercury , also called quicksilver or hydrargyrum , is a chemical element with the symbol Hg and atomic number 80. A heavy, silvery d-block metal, mercury is one of six elements that are liquid at or near room temperature and pressure....
 maintains a conductive path despite the mechanical bounce. However, mercury wetted switches, along with mercury-wetted relay
Relay

A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
s and mercury switch
Mercury switch

A mercury switch is a switch whose purpose is to allow or interrupt the flow of electric current in an electrical circuit in a manner that is dependent on the switch's physical position or alignment relative to the direction of the "pull" of earth gravity....
es are prohibited by RoHS because of mercury's toxicity.

Timing based


Resistor and capacitor
Rc Switch Debouncer
If an on/off switch is used with a pull up (or pull down) resistor and a single capacitor is placed over the switch (or across the resistor, but this can cause nasty spikes of current on the power supply lines) then when the switch is closed (generally pressed) the capacitor will almost instantly discharge through the switch. But when the switch is opened (generally released) the capacitor takes some time to recharge. Therefore contact bounce will have negligible effect on the output. The slow edges can be cleaned up with a Schmitt trigger
Schmitt trigger

In electronics, a Schmitt trigger is a comparator electrical network that incorporates positive feedback.When the input is higher than a certain chosen threshold, the output is high; when the input is below another chosen threshold, the output is low; when the input is between the two, the output retains its value....
 if necessary. This method has the advantage of fast response to the initial press but the current surges through the switch may be undesirable. Other RC based systems are also possible with various responses and such systems are probably the easiest method when constructing with simple logic gates and discrete components. A compromise that is prefered by most electrical design engineers is to replace the capacitor in the diagram with a resistor plus capacitor in series. The series resistor serves to protect the contact from a large surge of current. A resistance of one or two ohms is commonly chosen, but the RC time is calculated with reference to the external resistance, not the small resistor inserted. For TTL level signals good results are obtained by using a 10K ohm (external) resistor and a one microFarad capacitor in series with a 2 ohm (internal) resistor.

State machines and software
A finite state machine
Finite state machine

A finite state machine or finite state automaton or simply a state machine, is a model of behavior composed of a finite number of state s, transitions between those states, and actions....
 or software running on a CPU can be designed to wait a fixed number of clock cycles after any transition before registering another one. This provides a cheap option for debouncing when a microprocessor
Microprocessor

A microprocessor incorporates most or all of the functions of a central processing unit on a single integrated circuit . The first microprocessors emerged in the early 1970s and were used for electronic calculators, using Binary-coded decimal arithmetic on 4-bit Word ....
, microcontroller
Microcontroller

A microcontroller is a small computer on a single integrated circuit consisting of a relatively simple CPU combined with support functions such as a crystal oscillator, timers, watchdog, serial and analog I/O etc....
 or gate array
Gate array

A gate array or uncommitted logic array is an approach to the design and manufacture of application-specific integrated circuits . A gate array circuit is a prefabricated silicon chip circuit with no particular function in which transistors, standard NAND or NOR logic gates, and other active devices are placed at regular predefined pos...
 is already in use but is unlikely to be worthwhile if constructing with single logic gates CLPD's.

Sampling
Arguably the simplest way to debounce a switch transition, either in hardware or software, is merely to sample the switch state at intervals longer than any possible train of bounces. This guarantees that any bouncing affects at most one sample, which must agree either with the previous sample or with the following sample. Either case results in only one clean transition in the sampled data. A simple hardware implementation is a single D-type flip-flop clocked at a suitable rate; and software sampling is easy to program. For most switches, a suitable sampling rate can easily introduce less latency than a human being can perceive.

Hysteresis

Alternatively, it is possible to build in hysteresis
Hysteresis

A system with hysteresis can be summarized as a system that may be in any number of states, independent of the inputs to the system. To be exact, a system with hysteresis exhibits path-dependence, or "rate-independent memory"....
 by making the position where a press is detected separate from that where a release is detected. As long as the bounces are small enough not to take the switch between these positions, bounce problems will be eliminated. Hysteresis can be mechanical or electronic (e.g. a Schmitt trigger
Schmitt trigger

In electronics, a Schmitt trigger is a comparator electrical network that incorporates positive feedback.When the input is higher than a certain chosen threshold, the output is high; when the input is below another chosen threshold, the output is low; when the input is between the two, the output retains its value....
).

Changeover switch
A changeover switch provides two distinct events, the making of one contact and the breaking of the other. These can be used to feed the inputs of a flip-flop
Flip-flop (electronics)

In digital circuits, a flip-flop is a term referring to an electronic circuit that has two stable states and thereby is capable of serving as one bit of computer storage....
. This way the press will only be detected when the pressed contact is made and the release will only be detected when the released contact is made. When the switch is bouncing around in the middle no change is detected. To get a single logic signal from such a setup a simple SR latch can be used.

Variable resistance
Normal switches are designed to give a hard on-off but it is also possible to design one that varies more gradually between the hard-on and hard-off states. This keeps the output changes caused by bouncing small. Then by feeding the output to a Schmitt trigger
Schmitt trigger

In electronics, a Schmitt trigger is a comparator electrical network that incorporates positive feedback.When the input is higher than a certain chosen threshold, the output is high; when the input is below another chosen threshold, the output is low; when the input is between the two, the output retains its value....
 the effect of those bounce based changes can be eliminated.

See also

  • Circuit breaker
    Circuit breaker

    A circuit breaker is an automatically-operated Electricity switch designed to protect an Electrical network from damage caused by Overcurrent or short circuit....
  • Contactor
    Contactor

    A contactor is an electro-magnetic switching device used for remotely switching a power or control circuit. A contactor is activated by a control input which is a lower voltage / current than that which the contactor is switching....
  • Analogue switch
    Analogue switch

    The analogue switch, also called the bilateral switch, is an electronics component that behaves in a similar way to a relay, but has no moving parts....
  • UL
    Underwriters Laboratories

    Underwriters Laboratories Inc. is a U.S. privately owned and operated, independent, third party product safety testing and certification organization....
    , CSA
    Canadian Standards Association

    Established in 1919, the Canadian Standards Association is a not-for-profit association composed of representatives from government, industry, and consumer groups....
    , VDA
    VDA

    The Verband der Automobilindustrie e. V., short VDA, is a Germany interest group of the German automobile industry, both automobile manufactures and automobile component suppliers....
  • MOSFET
    MOSFET

    The metal?oxide?semiconductor field-effect transistor is a device used to amplify or switch electronic signals. The basic principle of the device was first proposed by Julius Edgar Lilienfeld in 1925....
    s
  • Wireless light switch
    Wireless light switch

    A wireless light switch is a light switch that commands a Light fixture or home appliance to turn itself off or on, instead of interrupting the power line going to the light fixture....
  • Power symbol
    Power symbol

    A power symbol is a symbol indicating that a control activates or deactivates a particular device. It incorporates line and circle figures, with the arrangement informed by the function of the control....
     – the symbols commonly used on an on-off switch
  • Relay
    Relay

    A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
     – A relay is an electrical switch that opens and closes under the control of another electrical circuit
  • H-bridge
    H-bridge

    An H-bridge is an electronic circuit which enables a voltage to be applied across a load in either direction. These circuits are often used in robotics and other applications to allow DC motors to run forwards and backwards....
     – A topology that combines four switches forming the four legs of an "H". Can be used to drive a motor (or other electrical device) forward or backward when only a single supply is available.
  • Switching amplifier
    Switching amplifier

    A switching amplifier or class-D amplifier is an electronic amplifier which, in contrast to the active resistance used in linear mode Class AB amplifiers, uses Switched-mode power supply of transistor to regulate power delivery....
    s can make use of
    • Delta-sigma modulation
      Delta-sigma modulation

      The Delta-Sigma modulation is a method for encoding high resolution signals into lower resolution signals using pulse-density modulation. This technique has found increasing use in a range of modern electronic components, such as analog-to-digital converter and digital-to-analog converters, frequency synthesizers, Switched-mode power supply...
       – Provides one method of encoding a continuous range of values in a signal that rapidly switches between two states
    • Sliding mode control
      Sliding mode control

      In control theory, sliding mode control, or SMC, is a form of variable structure control . It is a nonlinear control method that alters the dynamic system of a nonlinear system by application of a high-frequency switching control....
       – Feedback control scheme (i.e., a kind of generalized delta-sigma modulation
      Delta-sigma modulation

      The Delta-Sigma modulation is a method for encoding high resolution signals into lower resolution signals using pulse-density modulation. This technique has found increasing use in a range of modern electronic components, such as analog-to-digital converter and digital-to-analog converters, frequency synthesizers, Switched-mode power supply...
      ) that uses an output that switches between two states to cause an output to slide along a continuous curve
  • Switched-mode power supply
    Switched-mode power supply

    A switched-mode power supply is an electronic power supply unit that incorporates a switching regulator. While a linear regulator maintains the desired output voltage by dissipating excess power in a pass power transistor, the Switched-mode power supply switches a power transistor between saturation and cutoff with a variable duty cycl...
     – High-efficiency power supply that uses switches and storage elements to trade-off pressure and flow (i.e., voltage and current)


External links

  • (also has electric circuit projects)
  • (with diagrams)
  • (with diagrams)
  • (US/Canada, with diagrams)
  • (with step by step instructions)
  • Analog and digital debouncing are discussed with schematics and example source codes
  • videos of an arc fault when fail to interrupt current, creating arcs up to 100ft in use