Electronic components: Buttons
One useful component in our circuits is a button.
It connects two parts of a circuit when the button is pressed. As soon as the button is released, the circuit is open and the current can’t circulate.
Here’s a typical button:
It has 2 sets of connections that can be closed at the same time. The connections are on the pins that are curved in the same way:
There’s one way to use this component in a breadboard, and it’s to put it in the middle:
and there’s just one way to add it, you can’t go wrong:
Then you can create a connection between 2 rows in the same part of the breadboard, like this:
In the above circuit, the LED will turn on only when the button is pressed:
I wrote 21 books to help you become a better developer:
- HTML Handbook
- Next.js Pages Router Handbook
- Alpine.js Handbook
- HTMX Handbook
- TypeScript Handbook
- React Handbook
- SQL Handbook
- Git Cheat Sheet
- Laravel Handbook
- Express Handbook
- Swift Handbook
- Go Handbook
- PHP Handbook
- Python Handbook
- Linux Commands Handbook
- C Handbook
- JavaScript Handbook
- Svelte Handbook
- CSS Handbook
- Node.js Handbook
- Vue Handbook
Also, JOIN MY CODING BOOTCAMP, an amazing cohort course that will be a huge step up in your coding career - covering React, Next.js - next edition February 2025