New answers tagged

0

Welcome to EE.SE! I would suggest to debounce the button. As you can see pressing the button causes the switch to 'bounce' and your MCU will measure unpredictable switch states. You can use a simple LPF to achieve switch debounce


Top 50 recent answers are included