Mastering Arduino
上QQ阅读APP看书,第一时间看更新

Switches

There are several types of switches that can be used depending on the need. The preceding photograph shows, from left to right, a push button, micro and toggle switch.

The push button switches are switches that are activated by pressing a button. These switches are usually used to start or stop some action. Some examples usages for a push button switch would be to start a robot in motion, start a led blinking or capture the current measurement from a sensor.

The microswitch is a switch that is activated by a light force being applied to a lever or button on the switch. These switches are widely used in many household and industrial applications. Some examples of uses for a micro switch are end stops for a 3D printer, detecting if the door of a microwave is closed, and collision detection for robots.

The toggle switch is activated and deactivated by moving the lever to the on or off position. The toggle switch is mainly used to turn items on and off like a light switch.