Raspberry Pi Pico W LESSON 84: Debounce Pushbutton Switches Using Interrupts

  Рет қаралды 1,946

Paul McWhorter

Paul McWhorter

Күн бұрын

Пікірлер: 28
@edSabio572
@edSabio572 2 ай бұрын
Thanks Paul! Your mistake on line 13 shows you are real teacher not afraid to show your human side. I made my ckt fail on the 20th attempt and need to admit my shortcomings...Thank you so much!!!!!
@craigflorin1071
@craigflorin1071 2 ай бұрын
I folded up like a cheap Walmart lawn chair ... several times, with much research, and many different ways. A few minutes into the video "chalk talk", I got my ah ha moment. Good lesson. Thank you!
@quaternion-pi
@quaternion-pi 2 ай бұрын
Brilliant solution; very clearly explained. I tried to figure it out using your homework programming hint, but folded like a Walmart chair. Thanks!
@paulmcwhorter
@paulmcwhorter 2 ай бұрын
It has been a while quaternion, glad to see you again.
@MrHydyr
@MrHydyr 2 ай бұрын
MY FIRST and THE BEST INSTRUCTOR in ROBOTICS!!! Great Thank You, Sir! God bless you and all your works!!
@craigflorin1071
@craigflorin1071 2 ай бұрын
Homework is complete, but it took me 52 lines of code. It works (all the time), it's functional but too long. I used counters for the 2 , 4 and 8 and reset the counters back to zero after each toggle. Can't wait to see your answer. Love the homework assignments.
@larryplatzek9017
@larryplatzek9017 2 ай бұрын
This is a Great Lesson! THANK YOU!
@nigelworwood8530
@nigelworwood8530 2 ай бұрын
I have always thought it was a good idea to leave in the "mistakees" and watch you sort it out. We learn so much. Now after 83-84 lessons I are now spotting the "errrors". Although for me this took a little time as I write all the global values separately.
@shawnlowe1392
@shawnlowe1392 2 ай бұрын
Okay, after watching, I see where my logic error was. Going to have the homework done for next by golly!! Thanks Paul
@keithlohmeyer
@keithlohmeyer 2 ай бұрын
Great solution! I could not figure what would work even with last weeks hint. My solution worked rock solid but used a Timer. So I folded up like a cheap Walmart lawn chair. Thanks Paul for all you do.
@paulmcwhorter
@paulmcwhorter 2 ай бұрын
Keith, your solution was acceptable because you did not use a time.sleep, and I believe your timer approach was non-blocking. The issue is, when we jump over to a function, we dont want it to disrupt the timing of the main program. I hope you will enjoy the upcoming state machine lessons.
@keithlohmeyer
@keithlohmeyer 2 ай бұрын
@@paulmcwhorter So looking forward to the PIO lessons. As you say not much out there on it that is understandable.
@scottwait3585
@scottwait3585 2 ай бұрын
Thank you Paul
@deniszawad
@deniszawad 2 ай бұрын
Great class. tank you
@patrickfox-roberts7528
@patrickfox-roberts7528 2 ай бұрын
Thanks Paul - would it work with a Volatile rather than a Global declaration in the function as none of the vars are used outside of the function?
@jeraldgooch6438
@jeraldgooch6438 2 ай бұрын
Paul- do you have thoughts on integrating the pico 2 into your classes(especially when they introduce a ‘W’) version)?
@paulmcwhorter
@paulmcwhorter 2 ай бұрын
Not at this point. I see the pico 2 as an incremental improvement, but not really a practical advancement for the type of things we are doing.
@U_Kamrc
@U_Kamrc 2 ай бұрын
Much simpler debounce: 1. detect rising edge 2. after 10ms check if HIGH
@louistoweill4232
@louistoweill4232 2 ай бұрын
I got it to work in 61 lines of code using tuples to select the pertinent values of the press variable.
@امينعبدالحافظعبدالباريياسين
@امينعبدالحافظعبدالباريياسين 2 ай бұрын
Thank you and l need something from you sir Can you make lesson about pca9685
@shawnlowe1392
@shawnlowe1392 2 ай бұрын
Okay I'll start - I folded like a cheap lawnchair! I could not get my head around the timing aspect
@charlotteswift
@charlotteswift 2 ай бұрын
You-know-who obviously didn't like my previous comment containing the link to my video for lessons 83 & 84. Therefore I'll try again - once with the link and once without. This is obviously without the link.
@quaternion-pi
@quaternion-pi 2 ай бұрын
Lesson 84 homework (29 sec view time). kzbin.info/www/bejne/a521qmmZoZ2Mo5I Tried to incorporate a timer, but just used an interrupt and bitwise operators.
@paulmcwhorter
@paulmcwhorter 2 ай бұрын
LEGEND!
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 35 МЛН
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 15 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
Using PICO Interrupts
25:15
Making Stuff with Chris DeHut
Рет қаралды 19 М.
Button-counter using Pico State Machines
4:12
VeryUs Mumblings
Рет қаралды 45
Building a Mini Vegas-Sphere
7:16
Carl Bugeja
Рет қаралды 1,5 МЛН
Raspberry Pi Pico PIO - PIO Interrupts using MicroPython - Ep. 20
22:18
Life with David
Рет қаралды 4,5 М.
Raspberry Pi Pico 2: a RISC-V bet!
8:05
Jeff Geerling
Рет қаралды 296 М.
Raspberry Pi Pico 2 | Everything You Need To Know
7:04
Core Electronics
Рет қаралды 58 М.
Raspberry Pi Pico W LESSON 83: Using Interrupts in Micropython
40:25
Paul McWhorter
Рет қаралды 2,1 М.
THE 4 MOST FAVORITE ELECTRONIC PROJECTS OF 2024
15:40
ZAFER YILDIZ
Рет қаралды 39 М.
Nokia....
0:16
NEXIDO EDITS
Рет қаралды 8 МЛН
Крошечный Mac Mini на M4 Pro. Л - Любовь.
10:41
HONOR MAGIC 7 PRO. ПЕРВЫЙ ОБЗОР В РОССИИ
20:21
ЧЕСТНЫЙ БЛОГ
Рет қаралды 34 М.