Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
SwitchesOne of the most useful input devices! You can use a switch:
Switches are manufactured in a number of different forms. Here are some: Momentary acting (push switch)For example, the switch on a doorbell, which causes something to happen only while it is being pressed. ![]() Toggle switchFor example, a light switch, which switches on (and stays on) the first time it is pressed, and switches off the next time. ![]() Tilt switchThis switches on when the body of the switch is tilted to a certain angle, or beyond. ![]() Rotary switchFor example, the selector switch on a hi-fi system, which you use to switch between the tape-deck, the CD deck and the radio tuner. To operate it, you turn a knob attached to the spindle of the switch. ![]() Key switchFor example, the switch used in a car ignition circuit, which operates only when the correct key is inserted. ![]() Magnetic switchThis switches on when a magnet is placed next to the switch, and off when the magnet is moved away again. ![]() |