Тёмный

Arduino based toggle with debouncing 

learnelectronics
Подписаться 169 тыс.
Просмотров 4,6 тыс.
50% 1

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

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@keithking1985
@keithking1985 4 года назад
it's not the video's the little gadgets or knowledge to be gained by tuning in Paul that keep's us coming back, IT'S YOU!!! you were the 1st EE to answer a query i had way back when i 1st got into this!!(& i'LL never forget that) and you still as awesome as always!! CANT WAIT FOR THE 100K! (MAKE US PROUD)
@CarlosRHS1
@CarlosRHS1 4 года назад
In few Arduino projects that I have built, I missed the Debouncing. Now I know. It is very important. Thanks Paul.
@opalprestonshirley1700
@opalprestonshirley1700 4 года назад
Good to see someone also up in the wee hours of the morn. Good lesson. Stay safe.
@alanbacknd3120
@alanbacknd3120 4 года назад
Great to see back in the arduino. Please do more even if its the simple stuff. Simple projects are always a winner. Great job
@georgechambers3197
@georgechambers3197 4 года назад
Like the Arduino stuff. Using the relays that way is a really good trick. I use them in my CNC stuff all the time. Thanks for the video!
@josephcote6120
@josephcote6120 4 года назад
Programming tip: If you know you have a place where you will always be working with something that has just TWO modes you can indicate them with -1 and +1. The benefit is that when you're ready to switch the modes, you don't have to know what state it was in, you just multiply it by -1 and it switches. In the rest of the code you just test for -1 or +1 instead of 0 and +1. Not a huge change, just an small efficiency trick.
@tmcgeeau
@tmcgeeau 4 года назад
Great little project and nice example of debouncing in software, cheers! An old arduino project of mine had some time sensitive code that didn't like the delay() calls used by this method. There's some examples out there of debouncing with a counter, but I had good success with a 74HCT14 hex inverting schmitt trigger IC making the code a bit simpler.
@electronic7979
@electronic7979 4 года назад
Nice project 👍
@martinhorner642
@martinhorner642 4 года назад
This is the first I've seen of the new intro... I like it. Is nice!
@oleeide9763
@oleeide9763 4 года назад
Nice video, like the troubleshooting part, shows that everyone makes mistakes. I remember my last one, math test in 4th grade second last question.. It has haunted for more that 40 years, well just shows that everyone makes mistakes hehe.
@Kang38290
@Kang38290 4 года назад
wow! i just struggled with it yesterday and you made video!
@markposner7803
@markposner7803 4 года назад
Great video! Is there a way to debounce the button in software without using a delay in the code or extra hardware? Thank you.
@varmint243davev7
@varmint243davev7 4 года назад
Thank You
@kalikatz2382
@kalikatz2382 4 года назад
Some troubleshooting we gota do, yes?
@dieseldude6976
@dieseldude6976 4 года назад
Very nice video. This is something that I want to do to turn a 12 v motor on and switch directions using a DPDT relay. Will you share your Arduino sketch? Thanks, Kennedy
@learnelectronics
@learnelectronics 4 года назад
pastebin.com/Vw79kLZm
@VictorRodriguez-cg1kg
@VictorRodriguez-cg1kg 4 года назад
Thanks for taking me to this video but my knowledge of programming is zero to none.....how would I make it momentary? Thanks again.
@learnelectronics
@learnelectronics 4 года назад
Shut it off after you turn it on. i.e. digitalWrite(x,HIGH), Delay(y), digitalWrite(x,LOW)
@nid274
@nid274 4 года назад
millis and xor
@simeonmihaylov6123
@simeonmihaylov6123 4 года назад
Guys a newbie question, that has been bothering me for a while... why you connect the resistors on the ground side and not on the positive side? Is there any difference at all? Thank you :)
@learnelectronics
@learnelectronics 4 года назад
No difference at all
@simeonmihaylov6123
@simeonmihaylov6123 4 года назад
@@learnelectronics Thanks Paul.
@michaelpadovani9566
@michaelpadovani9566 4 года назад
The 10ms delay...did you get that number off the internet or through trial-and-error? Just curious.
@learnelectronics
@learnelectronics 4 года назад
I copied it from an old sketch I did a couple of years ago. where I got it originally? I really dont know.
@michaelpadovani9566
@michaelpadovani9566 4 года назад
@@learnelectronics k thx!
@weerobot
@weerobot 4 года назад
Seems Overkill using a Arduino for that..but fun thuo...
@oldwrench4213
@oldwrench4213 4 года назад
Agree. The cost exceeds the need. Great learning tool thou.
@lubricatedgoat
@lubricatedgoat 4 года назад
Be cool to see what the most LED goodness you could get out of an attiny85 :)
Далее
Arduino Nano Experimenter's Board
12:26
Просмотров 12 тыс.
Arduino Nano All in One version 2
10:38
Просмотров 9 тыс.
Women’s Celebrations + Men’s 😮‍💨
00:20
How to debounce a button (Hardware approach)
10:16
Просмотров 23 тыс.
Top 5 Arduino Tips for Beginners
12:16
Просмотров 136 тыс.
Rotary Encoder (KY-040) Debounce Circuit Tutorial
15:03
Build your own breadboard power supply
22:08
Просмотров 17 тыс.
Big Stepper Motors with Arduino
29:43
Просмотров 1,2 млн
Magnetic Switches - for $20 each!
20:42
Просмотров 416 тыс.