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...
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
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.
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.
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.
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!
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!
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 🙂
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
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.
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
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.
I can't believe I'm just now learning about the second core.
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...
Thank you for this fun lesson Paul, God Bless
And may God richly bless you as well. Thanks!
Have No Fear, McWhorter is here! Excellent presentation.
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
This subject is one of your best for me!
I’m still on lesson 10 but I’ll get back to this one quick!
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.
Dont give up, keep thinking. It is simple once you see it. My first reaction was, I need a third core!
Thanks for the great lesson Paul!! Sure seemed simple as you were explaining it. Let's see if I can actually do it now. 😊
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.
This is very interesting thank you!
My pleasure!
Guilty as charged!
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.
Thanks for showing how to use both cores 😀
Excellent lesson, Paul. Thank you. Can’t seem to upload my homework, though. UA-cam not cooperating. Will keep trying.
Guilty as charged
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!
Thank you Paul
hello Paul ,
are you going to talk about interrupts with the pico w?
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!
PROBLEM SOLVED: Using Ctl C stops all threads. Apparently the stop button behaves differently than a Ctl C. Thanks...
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 🙂
Amazing ❤
guilty as charged paul
Hi Sir,
Thanks for very informative videos. I learned a lot from your videos .
Could you please make a video about VSLAM with Raspberry?
Quilts as charged
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
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.
I am having the same issue - If I use ctrl-C or by stopping it via Thonny it crashes 🤔
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
LEGEND!
The homework for this week is not that an easy one
My homework links are getting removed. Have I been blocked?
No you have not been blocked. Sometimes youtube algorithm thinks comments with links are spam, and removes them. Not sure how to fix that.
@@paulmcwhorter Well, I'm glad I'm not blocked. I guess i'll just follow along w the videos for now. 😄
@@paulmcwhorter well, I guess I'll just follow along with the videos for now. Thanks. :)
I'll just follow along with the videos for now, thanks.
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.
LEGEND!
Thanks Paul another great lesson, this is my homework for lesson 67 :- ua-cam.com/video/C5CslXGN28g/v-deo.html
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.
@@paulmcwhorter Was not sure how to do this, but gave it a try. Hope I got it right, thank you for your comments,
Yes, that works. I appreciate it, as it lets people watching your video know which lesson you came from.