switch interfacing with ARM7 ( LPC2148 )

switch interfacing with ARM7 ( LPC2148 )

___________________________________________________________________________________________________



  • What is electronics switch? – A switch is an electrical component that can break an electrical circuit, interrupting the current or diverting it from one conductor to another. There are two main state of switch “open” and “close”. And each switch has a mechanism that is “toggle” or “momentary”. Toggle mean flip switch for continuous  “on”  or  “off”. Momentary mean push-for “on” or push-for “off”.

00254-Rocker-Switch

  • Types of switch 

 

Type Type expansion Description Symbol
SPST Single pole single throw A simple on-off switch: The two terminals are either connected together or disconnected from each other. An example is a light switch  325px-SPST-Switch.svg
SPDT Single pole double throw A simple changeover switch: C (COM, Common) is connected to L1 or to L2.  325px-SPDT-Switch.svg
SPTT or SPCO Single pole triple throw or single pole change over Similar to SPDT. Some suppliers use SPCO/SPTT for switches with a stable off position in the centre and SPDT for those without  325px-SPDT-Switch.svg
DPST Double pole single throw Equivalent to two SPST switches controlled by a single mechanism  325px-DPST-symbol.svg
DPDT double pole double throw Equivalent to two SPDT switches controlled by a single mechanism.  325px-DPST-symbol.svg
DPCO Double pole changeover Schematically equivalent to DPDT. Some suppliers use DPCO for switches with a stable center position and DPDT for those without. A DPDT/DPCO switch with a center position can be “off” in the center, not connected to either L1 or L2, or “on”, connected to both L1 and L2 at the same time. The positions of such switches are commonly referenced as “on-off-on” and “on-on-on” respectively.  330px-DPDT-symbol.svg
2P6T two pole six throw Changeover switch with a (COM, Common) which can connect to L1, L2, L3, L4, L5, or L6; with a second switch (2P, two pole) controlled by a single mechanism  Diagram_of_2P6T_switch
INTERMEDIATE SWITCH Intermediate switch DPDT switch internally wired for polarity-reversal applications: only four rather than six wires are brought outside the switch housing.  330px-Crossover-switch-symbol.svg
       

Catalogimages-New1

  • Operation – We can interface a switch to microcontroller by two way as shown in above image.
  1. Connecting switch by Vcc and MCU (SW1) – detecting switch by logic ‘1’ at port pin when switch is pressed (here pin 0 of port 0).
  2. Connecting switch by GND and MCU (SW2) – detecting switch by logic ‘0’ at port pin when switch is pressed (here pin 1 of port 0).
  • Applications- Different types of switches are used according to different parameters. Like computer keyboard and mobile keypad are use momentary SPST switches. Home Appliances use SPDT switches.

 

 

 1. CIRCUIT DIAGRAM OF LED AND SWITCH INTERFACING  WITH ARM7 (LPC21XX)

CIRCUIT DIAGRAM OF LED AND SWITCH INTERFACING  WITH ARM7 (LPC21XX)

________________________________________________________________________________________________________

2. CIRCUIT DIAGRAM OF  LED  7 SEGMENT AND  2  SWITCH INTERFACING  WITH ARM7 (LPC21XX)

 UntitledER

________________________________________________________________________________________________________

1. Program Of Control Led Blinking Using Switch Interfacing With ARM7 (LPC21XX) 

 

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)

________________________________________________________________________________________________________

2. Program in which led is controlled by one switch and 7 segment is controlled by other switch interfacing with ARM7 (LPC2148)

 

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)

________________________________________________________________________________________________________

Content for the tab VIDEO