Тёмный

Bouncing switches in your Arduino projects? Easy ways to fix it! 

Brainy-Bits
Подписаться 49 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@WideVisionMetalFab
@WideVisionMetalFab 5 лет назад
Very important topic, especially when a project interacts with the "real world!"
@BrainybitsCanada
@BrainybitsCanada 5 лет назад
I like doing some basics video from time to time for newcomers, sometime we forget that we all started from the beginning and don't talk about the basics. Thank for your comment, for watching and Happy Holidays!
@djDblessed
@djDblessed 5 лет назад
You can also use else if {} instead of else { if {} }
@BrainybitsCanada
@BrainybitsCanada 5 лет назад
Good code optimization tip, thanks for sharing and for watching!
@guillaumebarghamian2889
@guillaumebarghamian2889 2 года назад
Very elegant using the millis fonction!! Thanks !
@gnzngonzio
@gnzngonzio 5 лет назад
Thx Yvan !! , always fall in those doubts.... despite I ‘ve already used many times “ buttons “ , in getting old and can’t remember this useful code .
@BrainybitsCanada
@BrainybitsCanada 5 лет назад
I know what you mean, even if you have done something many times, you can forget how to do it sometimes :) Thanks for the comment and for watching!
@MPElectronique
@MPElectronique 5 лет назад
You can use jc-button library as well..
@naami2004
@naami2004 5 лет назад
16 years ago !... I used a de-bounce subroutine in a Microchip pic12F508 ...
@altamiradorable
@altamiradorable 5 лет назад
Merci Yvan !! Joyeux Noël eet bonne année !
@BrainybitsCanada
@BrainybitsCanada 5 лет назад
Merci pour le commentaire et Joyeuse Fetes a toi egalement.
@emmanuelgonzales837
@emmanuelgonzales837 2 года назад
thank you sir!
@alnoorratansi9364
@alnoorratansi9364 5 лет назад
Great topic, can you recommend a debounce library
@omkarkhade4602
@omkarkhade4602 3 года назад
Thanks a lot, nice demonstration.
@bik35
@bik35 3 года назад
Hi. I'm novice in Arduino and I enjoy to watch Yours tutorials. I was reading the code for this tutorial and I think that bouncing switch part is wrong. I think that code: if ((millis() - TimeOfLastDebounce) > DelayofDebounce) will be true most of time, and there will be no time out. Sorry if I'm wrong. Please comment this. Best Regards.
@guillaumebarghamian2889
@guillaumebarghamian2889 2 года назад
No it's not as you only set the Var TileOfLastDebounce to actual time inside the if loop. ☺
@jparky1972
@jparky1972 5 лет назад
Where is your head? ! The code would be nice too. ☺
@BrainybitsCanada
@BrainybitsCanada 5 лет назад
Code and more information about most of my videos are available here: brainy-bits.com this particular one is here: www.brainy-bits.com/arduino-switch-debounce/ Thanks for watching!
@serdarxxx1073
@serdarxxx1073 4 года назад
Delay is not usefull, make it only with Timer polling.
@MPElectronique
@MPElectronique 5 лет назад
M&m
Далее
Fixing Plastic with Staples
00:18
Просмотров 968 тыс.
Прохожу маску ЭМОЦИИ🙀 #юмор
00:59
Pin Change Interruptions ISR | PCINT | Arduino101
14:19
Using IR Remote Controls with the Arduino
35:28
Просмотров 932 тыс.
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 193 тыс.