Summary
In this chapter, we learned what a push button is and how can we reduce the problem of electrical noise that many push buttons have, a process called debouncing. This process can be done either via software or hardware. We also reviewed the importance of push buttons in some electronic projects that require human intervention – for example, how to manually restart a microcontroller board when we press its on-board push button. Using a push button in an electronic circuit containing a microcontroller board is important because you are programming a user interaction there, so a user can start a process in the microcontroller board.
The next chapter will focus on how to connect a photoresistor (a sensor that measures the amount of light in the environment).