Now here is a small section that is quite cool and light compared to analog inputs, which we will dive into in the next chapter.
We are going to talk about something that happens when someone pushes a button.
Now, we have to take our microscopic biocybernetic eyes to zoom into the switch's structure.
A switch is made with pieces of metal and plastic. When you push the cap, a piece of metal moves and comes into contact with another piece of metal, closing the circuit. Microscopically and during a very small time interval, things aren't that clean. Indeed, the moving piece of metal bounces against the other part. With an oscilloscope measuring the electrical potential at the digital pin of the ...