“How can we make sure that buttons on a microcontroller work?”
Microcontrollers are the backbone of modern-day mechatronics systems. However, the default circuitry has a serious problem. When a button is not pressed, the input automatically reads ground. This can cause serious misreadings to happen, which can cause the microcontroller to crash! So how can we use our engineering mindset to solve this problem? Well, what if we were to simply add a resistor to the input voltage? This way, when the switch is grounded, we can have the system read “High” instead of ground!