Raspberry Pi Pico W LESSON 67: Use Both Cores on Your Pi Pico with MicroPython

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 48

  • @lansdonalcorn6998
    @lansdonalcorn6998 5 місяців тому +4

    I can't believe I'm just now learning about the second core.

  • @edSabio572
    @edSabio572 5 місяців тому +3

    Thanks Paul! The Threading concept is largely underutilized in the lower echelon of programming. Thanks for illustrating this concept in a straightforward fashion. Now, working on narrowing the gap between left and right
    dielectric brain plates...

  • @vaughntaylor2855
    @vaughntaylor2855 5 місяців тому +5

    Thank you for this fun lesson Paul, God Bless

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому

      And may God richly bless you as well. Thanks!

  • @TheUnofficialMaker
    @TheUnofficialMaker 5 місяців тому +2

    Have No Fear, McWhorter is here! Excellent presentation.

  • @jameslewellen150
    @jameslewellen150 5 місяців тому +1

    I got the home work going with the flash leds vs servo direction. I am transitioning from my windows pc to my raspberry pi 4 in my lab. Videos will have to wait until I get the setup working correctly. Love you instruction videos. Thanks

  • @U_Kamrc
    @U_Kamrc 5 місяців тому +2

    This subject is one of your best for me!

  • @StudentTrader
    @StudentTrader 5 місяців тому +2

    I’m still on lesson 10 but I’ll get back to this one quick!

  • @DrDave327
    @DrDave327 5 місяців тому

    Great content, Paul! I folded up again,as of now, but I will attempt to figure it out early tomorrow, before the premiere. Thank you for the great lessons.

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому

      Dont give up, keep thinking. It is simple once you see it. My first reaction was, I need a third core!

  • @leeg.1402
    @leeg.1402 5 місяців тому +2

    Thanks for the great lesson Paul!! Sure seemed simple as you were explaining it. Let's see if I can actually do it now. 😊

  • @robertkarney1881
    @robertkarney1881 25 днів тому

    Hello Paul,
    I have become a huge fan of yours. It's good to get back to basics. Your explanations will make coding so easy. For me, sometimes it's good to abandon routine and replace it with a fresh perspective.
    Back to this lesson...
    I think, you can call the same one function for both cores, but passing extra parameter pointing to the LED object?
    Also I think, that instead of 4 lines in the function loop (on, sleep, off, sleep), you could make it with just 2 lines using toggle + sleep.
    I think, these 2 options will preserve some RAM, and make the code cleaner.

  • @louisdirect
    @louisdirect 5 місяців тому +2

    This is very interesting thank you!

  • @taurus548
    @taurus548 4 місяці тому +1

    Guilty as charged!

  • @craigflorin1071
    @craigflorin1071 4 місяці тому

    I played with dual core on the ESP32 and the RP PICO. Time to dust off that skill set. Lots of dust!!!! As for the homework, I got stuck in dual core mode. I jumped back into single to complete the assignment after having a very confused servo. Enjoyed the challenge.

  • @Auxrad39
    @Auxrad39 5 місяців тому +1

    Thanks for showing how to use both cores 😀

  • @scottpettygrove7821
    @scottpettygrove7821 5 місяців тому +1

    Excellent lesson, Paul. Thank you. Can’t seem to upload my homework, though. UA-cam not cooperating. Will keep trying.

  • @DrDave327
    @DrDave327 5 місяців тому +2

    Guilty as charged

  • @donaldhoudek2889
    @donaldhoudek2889 5 місяців тому +2

    Paul, do you have any idea as to how much additional power running 2 cores will add to the Pico W's total power usage? Great video!! I will try this on the the Creek monitoring Pico project I am building at the moment. I will put the waterproof version of the HC-SR04 UltraSonic sensor (creek water level) on one core and the other sensors on the second core (Air Temp, battery voltage, humidity, UV and creek flow speed). Should be interesting. Thanks for the GREAT video. Always learning something new with you!

  • @scottwait3585
    @scottwait3585 5 місяців тому +1

    Thank you Paul

  • @Sam-r4v1l
    @Sam-r4v1l 5 місяців тому +2

    hello Paul ,
    are you going to talk about interrupts with the pico w?

  • @donaldwaddel4600
    @donaldwaddel4600 5 місяців тому +3

    When running Thonny on a PC I'm unable to shutdown the Pico W properly so that I can rerun the program w/o unpluging the USB from the PC. I'm guessing that the stop is only shutting down one thread. Is there a way to shutdown both threads at the same time? Here is the error message being generated by Thonny when trying to rerun the program after stopping it:
    Unable to connect to COM7: could not open port 'COM7': PermissionError(13, 'Access is denied.', None, 5)
    If you have serial connection to the device from another program, then disconnect it there first.
    Process ended with exit code 1.
    Great information in your course!

    • @donaldwaddel4600
      @donaldwaddel4600 5 місяців тому

      PROBLEM SOLVED: Using Ctl C stops all threads. Apparently the stop button behaves differently than a Ctl C. Thanks...

  • @justmc62
    @justmc62 10 днів тому

    I am having an issue ending the program as others have mentioned. Whether I use the Stop button in Thonny or the keyboard command CTRL-C it crashes the program and I have to unplug the USB from the Pico . Hope there is a work around .. Thanks for all the great content ! FYI - Paul clarifies a solution in Lesson # 69 🙂

  • @jwaddin
    @jwaddin 19 днів тому

    Amazing ❤

  • @flynndale635
    @flynndale635 5 місяців тому +1

    guilty as charged paul

  • @meisamarastooei
    @meisamarastooei 5 місяців тому

    Hi Sir,
    Thanks for very informative videos. I learned a lot from your videos .
    Could you please make a video about VSLAM with Raspberry?

  • @peterhartshauser5176
    @peterhartshauser5176 5 місяців тому

    Quilts as charged

  • @kalidabdul6862
    @kalidabdul6862 5 місяців тому +1

    Hello Paul and everyone.
    My name is khalid .I have a problem with threading on the pico
    The code is the same as Paul's it runs but when I press the stop button or even without . Like fixing something and pressing play.
    The connection between the computer and the pico is gone and the only way to fix it is to remove the usb and restart thorny.
    And reconnect the usb.
    Does anyone have this problem and is there any other solution
    Thanks

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому +1

      Exit the program with control C on the keyboard instead of the stop button. Your thonny is killing the program, but leaving the thread running. See if that works.

    • @justmc62
      @justmc62 10 днів тому

      I am having the same issue - If I use ctrl-C or by stopping it via Thonny it crashes 🤔

  • @scottpettygrove7821
    @scottpettygrove7821 5 місяців тому

    Here's my homework solution for lesson 67. Thanks so much for all the work you put into this class, Paul! ua-cam.com/video/kPSdFB80WMk/v-deo.htmlsi=e3b90sIGztgKrH5X

  • @peterkarlsson7801
    @peterkarlsson7801 5 місяців тому

    The homework for this week is not that an easy one

  • @VeryUsMumblings
    @VeryUsMumblings 5 місяців тому

    My homework links are getting removed. Have I been blocked?

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому

      No you have not been blocked. Sometimes youtube algorithm thinks comments with links are spam, and removes them. Not sure how to fix that.

    • @VeryUsMumblings
      @VeryUsMumblings 5 місяців тому

      @@paulmcwhorter Well, I'm glad I'm not blocked. I guess i'll just follow along w the videos for now. 😄

    • @VeryUsMumblings
      @VeryUsMumblings 5 місяців тому

      @@paulmcwhorter well, I guess I'll just follow along with the videos for now. Thanks. :)

    • @VeryUsMumblings
      @VeryUsMumblings 5 місяців тому

      I'll just follow along with the videos for now, thanks.

  • @michaelschweizer2115
    @michaelschweizer2115 5 місяців тому

    Threads are so powerful. I've never used the second core before.
    Thanks for the lesson.
    Here's my short video of my solution: ua-cam.com/video/LVYstMICNlE/v-deo.html
    I used a global variable to switch between the LEDs.

  • @alistaircook1997
    @alistaircook1997 5 місяців тому

    Thanks Paul another great lesson, this is my homework for lesson 67 :- ua-cam.com/video/C5CslXGN28g/v-deo.html

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому

      Excellent. I do really wish you would link back to my video in your descriptions so that folks know where you are coming from. Thanks.

    • @alistaircook1997
      @alistaircook1997 5 місяців тому

      @@paulmcwhorter Was not sure how to do this, but gave it a try. Hope I got it right, thank you for your comments,

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому

      Yes, that works. I appreciate it, as it lets people watching your video know which lesson you came from.