Загрузка...

Your Button Is Lying to You #shorts

Your button is lying to you.

One click is not one clean pulse. Mechanical contacts can bounce open and closed for a few milliseconds, and your MCU is fast enough to count those bounces as multiple presses. That is why one tap can look like twelve clicks.

Debounce the signal before blaming the code.

#arduino #embeddedengineering #electronics #microcontroller #electricalengineering #hardwareengineering #circuitdesign #pcbdesign #firmware #shorts

Видео Your Button Is Lying to You #shorts канала ProtoFlow
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять