34. STM32CubeIDE Button debounce. Interrupt with STM32F103C8T6

preview_player
Показать описание
STM32 Blue Pill for beginners
Рекомендации по теме
Комментарии
Автор

As far as i understood, for a falling edge detector button, this method only prevents debounce during falling edge. But debouncing still can happen while on rising edge.

Edit: Figured the rising edge problem by making the button fall/rise and writing the code accordingly

theblitz
Автор

La gente de India es bien inteligente... Gracias por compartir el conocimiento. Muchas gracias.

tszulpinedo
Автор

Great video, thank you! Good idea using the tweezers' cap as a nonconductive rod to poke things with.

mckryall
Автор

thank you for this good tutorial
can you please do the same thing with an STM32L432KC and three LED?

charnelmane
Автор

Can you creat vedio on LIFO and FIFO using GPS DATA

KaiMusic
Автор

Hi there I am using sensor as an input which will turn on the buzzer, and also using EXTERNAL interupt Buthon the to turn off the buzzer and turn on the LED but the code is not working. It is like when I siply power it only do one tast only butten not buzzer and also sensor stop working need help with example

KaiMusic
Автор

Works very bad and unstable. Sometimes it's ok, sometimes the LED returns to the previous state after button release.

mzzn
Автор

Іomeone has the problem this example? I thing, this method work only on the first moment, when you press the button, but if you release the button this method can detect second press.

olegdemkiv
Автор

but you set the led pin to output like this "GPIOA->ODR |= GPIO_ODR_6;" or you created some function for led to toggle?

paraskhosla
Автор

I want to make keyboard using push button that use arrow keys, space key, enter key, back space key, shift key

njan
Автор

i want to make long pressed push button, how can i improve debouncing button to make long pressed one ? thank you

Red_Fang.
Автор

Please explain below condition - What is 10?

if (GPIO_Pin == GPIO_PIN_1 && (currentMillis - previousMillis > 10))

shambhusingh
Автор

How does the code look in the main loop? One only calls the function with the pin name as argument?

ruanpotgieter