# SMD Buttons

A button is a contact switch. When it's pressed, both ends of the circuit are connected. The schematic diagram of a button is as follows:

![](https://3972650740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY4gduUSLWOCI23CXUWej%2Fuploads%2F03pB39uLmMwfXKsrwp4r%2Fbutton_sch.png?alt=media\&token=852771e6-336f-4e62-bdc3-05fbb8a2931d)

The below figure demonstrates a circuit switching on a LED when the button is pressed:

![](https://3972650740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY4gduUSLWOCI23CXUWej%2Fuploads%2FUsSn4DCUUN5afFbXNdN6%2Fbutton.png?alt=media\&token=230bab05-7543-4735-a767-0ee6453ba4de)

### Explanation <a href="#smdbuttons-explanation" id="smdbuttons-explanation"></a>

1. When the button is not pressed, the LED is not connected to GND, so it is turned off.
2. When the button is pressed, there is a close loop for the circuit, therefore the LED is turned on.
