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

แชร์
ฝัง

ความคิดเห็น • 29

  • @edSabio572
    @edSabio572 2 หลายเดือนก่อน +1

    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 3 หลายเดือนก่อน +1

    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!

  • @MrHydyr
    @MrHydyr 3 หลายเดือนก่อน

    MY FIRST and THE BEST INSTRUCTOR in ROBOTICS!!! Great Thank You, Sir! God bless you and all your works!!

  • @craigflorin1071
    @craigflorin1071 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน +2

    This is a Great Lesson! THANK YOU!

  • @nigelworwood8530
    @nigelworwood8530 3 หลายเดือนก่อน

    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.

  • @scottwait3585
    @scottwait3585 3 หลายเดือนก่อน

    Thank you Paul

  • @shawnlowe1392
    @shawnlowe1392 3 หลายเดือนก่อน

    Okay, after watching, I see where my logic error was. Going to have the homework done for next by golly!! Thanks Paul

  • @quaternion-pi
    @quaternion-pi 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

      It has been a while quaternion, glad to see you again.

  • @deniszawad
    @deniszawad 3 หลายเดือนก่อน

    Great class. tank you

  • @keithlohmeyer
    @keithlohmeyer 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

      @@paulmcwhorter So looking forward to the PIO lessons. As you say not much out there on it that is understandable.

  • @patrickfox-roberts7528
    @patrickfox-roberts7528 3 หลายเดือนก่อน

    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?

  • @U_Kamrc
    @U_Kamrc 3 หลายเดือนก่อน

    Much simpler debounce:
    1. detect rising edge
    2. after 10ms check if HIGH

  • @jeraldgooch6438
    @jeraldgooch6438 3 หลายเดือนก่อน

    Paul- do you have thoughts on integrating the pico 2 into your classes(especially when they introduce a ‘W’) version)?

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      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.

  • @louistoweill4232
    @louistoweill4232 3 หลายเดือนก่อน

    I got it to work in 61 lines of code using tuples to select the pertinent values of the press variable.

  • @امينعبدالحافظعبدالباريياسين
    @امينعبدالحافظعبدالباريياسين 3 หลายเดือนก่อน

    Thank you and l need something from you sir
    Can you make lesson about pca9685

  • @amilcarcolque9251
    @amilcarcolque9251 9 วันที่ผ่านมา

    Paul, are you using a standard micropython on rasberry pi pico w? because when y run the program doesn't work.

  • @shawnlowe1392
    @shawnlowe1392 3 หลายเดือนก่อน

    Okay I'll start - I folded like a cheap lawnchair! I could not get my head around the timing aspect

  • @charlotteswift
    @charlotteswift 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

    Lesson 84 homework (29 sec view time). th-cam.com/video/5lRy6cl8Ym0/w-d-xo.html
    Tried to incorporate a timer, but just used an interrupt and bitwise operators.