Raspberry Pi Pico - Getting Started and programming in PyCharm

  Рет қаралды 34,165

The Machine Shop

The Machine Shop

Күн бұрын

Пікірлер
@ww1593
@ww1593 2 жыл бұрын
Absolutely the easiest tutorial and way to get started. First with how easy it was with Pycharm, banged my head with the Visual Studio set up on windows for a whole weekend and got absolutely nowhere. Second, fantastic and straight-to-the-point instructions.
@loupletac
@loupletac 2 жыл бұрын
FYI: for the pico W, it's no longer the pin 25. Use led = Pin("LED", Pin.OUT) instead
@mikep4981
@mikep4981 3 ай бұрын
thank you for this!
@petermferguson
@petermferguson 3 жыл бұрын
Getting the "Run ‘Flash main.py’" is invaluable - thank you :)
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
I know right it took me ages to find that and I didn’t want to start the video until that was definitely the fix. The amount of websites I searched for to try and find that.
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Feel free to share it on social media to make sure people know about this trick 😉
@kenwallace6493
@kenwallace6493 3 жыл бұрын
One of the better getting-started videos. Thanks!
@denisfilming
@denisfilming 3 жыл бұрын
Thank you very much. Just got into Pi development and wanted to use PyCharm, and your video allowed me to do that. Cheers!
@zhouyu9971
@zhouyu9971 2 жыл бұрын
This is really helpful. I can't get used to the Thonny Mac version for bugs, and editing interface.
@deniz_guven
@deniz_guven 2 жыл бұрын
Thanks for the clear and understandable instruction. This is the best way to program pico.
@freeelectron8261
@freeelectron8261 3 жыл бұрын
And many thanks for the "how to" on seeing Pi Pico's printed text using Cmd D in the MicroPython REPL within PyCharm. Another tricky one!
@faudek
@faudek Жыл бұрын
best tutorial for beginners, I watched a few this is the only one where was mentioned how to see logs form print statement
@kooroshtehraniyan1918
@kooroshtehraniyan1918 2 жыл бұрын
Thanks buddy! Finally got PyCharm working on my Pi Pico!
@ste76539
@ste76539 3 жыл бұрын
OMG thank you for this! I had my Pico running with Thonny, but honestly I really do not like Thonny, it's just too fugly. Pycharm is a lot nicer to use (although it needs the auto detect feature adding asap)
@KarlZawoy
@KarlZawoy Жыл бұрын
John, Thank you for the great tutorial. Very helpful, I'm up and running now with my PICO on PyCharm!
@MikeSims70
@MikeSims70 3 жыл бұрын
THANK YOU for this video. I was having a heck of a time finding any links describing how to get PyCharm working with the Pico and you summed it VERY nicely and very concisely! Well Done Sir! :-)
@Quebster
@Quebster 2 жыл бұрын
Awesome little tutorial. Thanks!
@hornorama
@hornorama 3 жыл бұрын
Thank you! Thonny was a doddle but I was struggling on a new PyCharm install but all working now. Stopped me pulling what's left of my hair out!
@jorgechac
@jorgechac Жыл бұрын
Excellent, today Pycharm has already been updated and Raspbery Pi Pico already appears in device type.
@GETinTheVaniHavCndy
@GETinTheVaniHavCndy 3 жыл бұрын
Thank you, I was struggling to read serial messages from my nodeMCU. Incredibly helpful, serial tutorial begins @ 10:58
@salamona03
@salamona03 3 жыл бұрын
Thanks, the tutorial worked for my esp32 apart from firmware which I used thonny to install.
@PM-ly9gc
@PM-ly9gc 3 жыл бұрын
Superb tutorial. Thanks for sharing!
@amoghpatil302
@amoghpatil302 3 жыл бұрын
Thank you for keeping it simple!
@risk4786
@risk4786 2 жыл бұрын
Thank you very much for the tutorial, it helped me a lot, I wanted to know if I wanted to import external libraries to the microcontroller, how would I have to do it? would I have to load the library to the editor and do the same process to upload the 2 at the same time or how would it be?
@deniz_guven
@deniz_guven 2 жыл бұрын
It is working flawlessly.
@freeelectron8261
@freeelectron8261 3 жыл бұрын
Thanks for saving us lots of config hassle!
@investwithstuph5887
@investwithstuph5887 3 жыл бұрын
excellent introduction, im a newbie and needed such video. Keep up good work!
@karama5478
@karama5478 2 жыл бұрын
Hi, i followed same steps but mine still not blinking. When i using Thony IDE it works . I don't understand why it doesn't work with Pycharm IDE.
@booboyBL
@booboyBL 3 жыл бұрын
Thanks for this video. I just got my Pico this morning. I followed this tutorial on my Mac with no issues, EXCEPT after uploading the script the Pico does NOT do a soft reboot (although the upload output shows it). I needed to power cycle the Pico.
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Did you open the REPL and press CTRL+D?
@amank97
@amank97 3 жыл бұрын
Can you make a tutorial for using 7-segment display(single button) with pico or using a 16x2 oled display to show data on it?? Or suggest some video where I can find about it....thanks
@sathishkumar-pc4gb
@sathishkumar-pc4gb 2 жыл бұрын
hey i need pycharm machine module inside of the intreptuer package side not avilable so can you give me a guidence for due to i'm strugling so longer
@iKostanCom
@iKostanCom 3 жыл бұрын
Hi there. Well done, thank you for this quality content.
@ivangutowski
@ivangutowski 2 жыл бұрын
Literally... amazing... Absolutely perfect, clear and concise. I know a bit of C# so love having the decently complex IDE.... my god python is a simple and clear language :O
@emilwaszkiewicz7744
@emilwaszkiewicz7744 2 жыл бұрын
I'll tell you what...IT WAS JUST GREAT,MANY THANKS!!!! :)
@TheMachineShopUK
@TheMachineShopUK 2 жыл бұрын
Almost as great as your comment, thank you
@emilwaszkiewicz7744
@emilwaszkiewicz7744 2 жыл бұрын
@@TheMachineShopUK Sorry for asking you, but I've tried to terminate the your program blinking diode, but it doesn't let me - still running, could you please help? And I'm also getting message: ModuleNotFoundError: No module named 'machine'. The ports are set the same. Thanks
@dans-designs
@dans-designs 2 жыл бұрын
great tutorial, thank you for taking the time!
@GeekMustHave
@GeekMustHave 3 жыл бұрын
Your video created quite a bit of excitement on getting started with the Pico. The only problem right now is that the Pico is harder to get than a Covid-19 Vaccine shot. Keep broadcasting!!
@KidFifty
@KidFifty Жыл бұрын
Thank you; very easy to understand.
@je1vuj
@je1vuj 3 жыл бұрын
It was easy to understand. Thank you very much.
@denisfilming
@denisfilming 3 жыл бұрын
Any idea how to browse and load files residing on the Pico (from PyCharm)?
@Jlou21000
@Jlou21000 3 жыл бұрын
It works !!!! Thank you so much :)
@mohamedabdelfattah8627
@mohamedabdelfattah8627 3 жыл бұрын
Very helpful video, thanks a lot.
@amank97
@amank97 3 жыл бұрын
Would like to see what more can be done with Pi Pico...waiting for the next video to come out
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Hay Aman, thanks for the comment, anything in particular?
@amank97
@amank97 3 жыл бұрын
Haven't thought about anything in particular, would keep u posted as I come across some idea
@walterp7125
@walterp7125 3 жыл бұрын
Could you please explain how to see the micropython console in pycharm ? I mean in a program I wanto to use print("Hello") but I don't see the string in any console ....thank you !
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Thank you for your comment Walter, I’ll get right on it
@walterp7125
@walterp7125 3 жыл бұрын
Thank you sir. If you discover how to do it will be nice and it allows to make some movies and develop more. You know, I don't want use Thonny. Pycharm has the code completation and more features as IDE. I keep on the Pycharm !
@walterp7125
@walterp7125 3 жыл бұрын
in the menu Tools --> MicroPython -> MicroPython REPL you can run the console but the serial port makes troubles faster and then restart pc, disconnect etc
@octopussapiens5497
@octopussapiens5497 3 жыл бұрын
In my case I had to put Auto-detect device path in the setting to make it work. Otherwise it stuck on 0% flashing process
@TheBishopOfBarton
@TheBishopOfBarton 3 жыл бұрын
There's clearly a lot of work gone on behind the scenes for this video! Thanks for doing this - very useful, and you covered all the problems I had as I went along. Nice work. My version of PyCharm doesn't have the Tools menu on the Navigation bar and I haven't quite figured out how to get it up - I ended up getting to it using the Help - Find Action option. How would I get the Tools bar up?
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Which operating system are you using?
@TheBishopOfBarton
@TheBishopOfBarton 3 жыл бұрын
@@TheMachineShopUK Windows 10. I've got the latest version of PyCharm, but I can't see a way to get that tools menu onto the main menu bar.
@filipsnajperful
@filipsnajperful 3 жыл бұрын
is there a way to run micropython on vscode? Please make a video about it if it is possible. Also I can't install machine module with pip (plenty of errors because of pycrypto).
@Setssquare
@Setssquare 3 жыл бұрын
One dought please help me in file manager the pico is not coming
@MainzerKaiser
@MainzerKaiser 2 жыл бұрын
Before using the Pico I programmed a Qt GUI, which I can interact with via a touch display on the Raspberry Pi. The GUI python code stores settings for a LED strip, which I started via GPIO pins. Now I want to use the PICO pins instead of the GPIO pins. It works in principal, but starting the LED strip always means to flash the PICO with the new main.py (including new settings). The PICO needs ca. 1s for that and is quite fast in comparison to other micro controllers, but obviously it is not as fast as the GPIO interface on the Pi. Is there any way to speed up the flash process?
@Aka_Hub
@Aka_Hub 3 жыл бұрын
Thank you dear keep it.
@tolgagercek
@tolgagercek 26 күн бұрын
Hello I can't find micropython in pycharm market, how can i find ?
@nutakkipradeep2708
@nutakkipradeep2708 3 жыл бұрын
Can I have integration of Aanaconda3, Python 3.7, Pico version?
@paulavandertol5601
@paulavandertol5601 2 жыл бұрын
Hi, ive bought an pico H. One question, when i write the program and run flas etc.. my led wont blink on the pico. although i see soft reboot etc. no errors. any clues?
@Office-Clerk
@Office-Clerk 9 ай бұрын
I know it's too late for answer, but it may help others. I just bought Pi Pico W, followed this tutorial, and the led doesn't blink (everything else went good). The problem was - on pi pico W we should now write led = Pin("LED", Pin.OUT) instead of 25. On pico W, internal led is not on 25 pin anymore. I guess for pico H (does pico H exist?) you may have same problem. Pin 25 is not an internal led anymore, just write "LED" instead of 25.
@rajeshrazz9244
@rajeshrazz9244 3 жыл бұрын
Great video
@Darkev77
@Darkev77 3 жыл бұрын
Awesome video! How to save a file script on the pico via PyCharm?
@prathameshgujar6527
@prathameshgujar6527 3 жыл бұрын
Not able to install the Files needed for Pyboard support in PyCharm. No blue hyperlink found. Is the Pico board connection to the PC first necessary?
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Did you enable micropython support in the options and did you have an active internet connection? You don’t need to have the pico plugged in to see that message
@michaelevan9184
@michaelevan9184 3 жыл бұрын
Spot on job!
@AzlanNadeem-q8p
@AzlanNadeem-q8p Жыл бұрын
How to fix this "Raspberry pi pico support requires valid python 3.5+ SDK" ?
@luchi5988
@luchi5988 3 жыл бұрын
Great! Thx for timesaving!
@adamhofman8112
@adamhofman8112 3 жыл бұрын
Hello, I'd really appreciate Linux tutorial on how to set Pico up with Pycharm. Thanks and keep up the great work!
@cvm6690
@cvm6690 3 жыл бұрын
Merci pour la présentation :pouce:
@shakirsalam555
@shakirsalam555 4 ай бұрын
Thanks Bro, interesting info
@baltazardiaz9423
@baltazardiaz9423 3 жыл бұрын
Thank you. If you select ESP8266 also worked for me.
@omerfarukgunaydn4881
@omerfarukgunaydn4881 2 жыл бұрын
is there a any chances that can i use different librarires with raspberry pi pico in pycharm ? for example i want to create guı with tkinter at the same time i want take values from raspberry pi(for ex temp) and i want to write this values into my guı
@TheMachineShopUK
@TheMachineShopUK 2 жыл бұрын
No the pico cannot handle a GUI, that would be two separate scripts, one for the Pico and one for the desktop GUI that runs on a computer and communicates with the Pico over some sort of communications protocol, e.g UART. Unless you were running this on a non-Pico raspberry pi (like a zero) which can handle the GUI, then you could have one file that handles sensor data and the GUI.
@omerfarukgunaydn4881
@omerfarukgunaydn4881 2 жыл бұрын
@@TheMachineShopUK thank you so much
@Baba-so6fh
@Baba-so6fh 3 жыл бұрын
is it possible to send the pico instructions from a PC to carry out a task? I want to try and use my PC as an IR remote control. But the PC will act as a web server which listens for specific calls. I then want the PC to get the pico to carry out specific IR pulses... Anyone have any ideas on how i can achieve this?
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
I’ll see what I can do for this
@47lokeshkumar74
@47lokeshkumar74 3 жыл бұрын
yes
@jumbo999614
@jumbo999614 3 жыл бұрын
I have no knowledge of machine learning but I know it uses Python programming language. And since this raspberry pi pico also uses Python, can we do machine learning on it?
@susmitagoswami129
@susmitagoswami129 2 жыл бұрын
Hello thanks for the awesome video. My device is COM3. I have followed everything but don't know why getting no module name machine error. Can you please help me with this? It is not working for me. Any help would be great.
@TheMachineShopUK
@TheMachineShopUK 2 жыл бұрын
Can you tell me exactly what it says please?
@susmitagoswami129
@susmitagoswami129 2 жыл бұрын
Hey thanks a lot for promt reply. It got solved for me. It was a sily path mismatch for me. But thanks a lot for your help.
@susmitagoswami129
@susmitagoswami129 2 жыл бұрын
Another request as a viewer, is it possible for you to make a video on raw sensor data like accelometer data plotting using pico? Because I believe there is not enough support for plotting raw sensor data using pico. So, I would love to see some experiments.
@susmitagoswami129
@susmitagoswami129 2 жыл бұрын
Hello, another thing I didn't notice properly that, it is running and giving no error. However, no print message is displayed in micropython. Any idea how to fix it?
@PontusThePilot
@PontusThePilot 3 жыл бұрын
Great vid! Please do a Mac and a Linux version as well :)
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Ok will do
@damanivu
@damanivu 3 жыл бұрын
Mac port for my computer was “/dev/cu.usbmodem0000000000001”
@raunak51299
@raunak51299 3 жыл бұрын
Great video. But there is a high pitched noise in the background.
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Hi Raunak, thank you for the comment, I’ll check out the noise for future videos
@linuxboi2869
@linuxboi2869 3 жыл бұрын
Nice video!
@alibabaei3457
@alibabaei3457 2 жыл бұрын
Thank you very much👍
@orph4nsx
@orph4nsx Жыл бұрын
Is python better then C/C++ with Rap PI Pico?
@TheMachineShopUK
@TheMachineShopUK Жыл бұрын
Technically no, since python or micropython in this case, is interpreted where as C is compiled, so the pico has to do more work when interpreting micropython which means each instruction takes longer, slowing down the whole program
@TheMachineShopUK
@TheMachineShopUK Жыл бұрын
But on the flip side, micropython can be easier to understand and you don’t have to compile it
@MainzerKaiser
@MainzerKaiser 2 жыл бұрын
I copied your steps on the Raspberry Pi instead of Windows, got the Upload of my Files working, started MicroPython REPL and pressed Crtl+d, but it happens nothing. The procedure works with the Thonny on Raspberry Pi though. Same with other scripts, it is somehow related to the Pi/Pycharm. Edit: I plugged the Pico in the Windows PC and did everything as you mentioned, unfortunatley LED is not blinking. After CRTL+D i get >>> MPY: soft reboot MicroPython v1.17 on 2021-09-02; Raspberry Pi Pico with RP2040 Type "help()" for more information. >>> as on Rasp Pi.
@TheMachineShopUK
@TheMachineShopUK 2 жыл бұрын
Interesting, I will try this too
@MainzerKaiser
@MainzerKaiser 2 жыл бұрын
@@TheMachineShopUK I made it work on both Windows and RaspPi: 1. in my case only python scripts called main.py were detected on the pico and made it run 2. even if pycharm offers to have Pico in MicroPython settings of Pycharm, I had to choose Pyboard
@jemarosepagasita5000
@jemarosepagasita5000 9 ай бұрын
Thank you so much
@renanrenan3312
@renanrenan3312 3 жыл бұрын
I'm Brazilian, my name is Renan, I have an interest in learning web designer and programming in python, but I have nowhere to practice, I would like to have access to the raspberry pi, more here in Brazil with the current dollar quote, the equipment that was supposed to be easy access, very expensive, between R $ 500 and R $ 1000, with a minimum wage of R $ 1060, I am not able to acquire. would it be possible to help me in any way? I'm sorry for any typo I'm using google translator. I'm just asking for not having the conditions. Thanks in advance.
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Hey, check this site out, they have a special version for Brazil www.filipeflop.com/produto/raspberry-pi-3-model-b/
@damanivu
@damanivu 3 жыл бұрын
Mac port for my computer was “/dev/cu.usbmodem0000000000001”
@AzlanNadeem-q8p
@AzlanNadeem-q8p Жыл бұрын
And its showing SDK invalid
@venkir1408
@venkir1408 3 жыл бұрын
pyCharm windows could have been bigger or maximized for better visibility
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
Thank you for the feedback
@carloseduardoangelescabana2332
@carloseduardoangelescabana2332 3 ай бұрын
Thanks!!
@CallMeMSL
@CallMeMSL 3 жыл бұрын
thanks dude
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
You’re welcome
@jugnu361
@jugnu361 3 жыл бұрын
how to debug using ST Link and SWD ........ without debug this is not of much use .....
@TheMachineShopUK
@TheMachineShopUK 3 жыл бұрын
You can debug this like an Arduino, you can use print statements and led indicators. But I will look more into this feature
@themarsoff
@themarsoff 3 жыл бұрын
ModuleNotFoundError: No module named 'machine'
@jasontiscione1741
@jasontiscione1741 3 жыл бұрын
PyCharm doesn't support this plugin anymore and current versions won't let you install it.
@trevorphillips9220
@trevorphillips9220 2 жыл бұрын
It does work for me now
@Taki7o7
@Taki7o7 2 жыл бұрын
Type exec(open("filename.py").read()) into the REPL if you want to test another file ^^
@Tolya421.
@Tolya421. Жыл бұрын
Круто)
Raspberry Pi Pico Stepper Motors via PIO
25:17
Tinker Tech Trove
Рет қаралды 62 М.
The Raspberry Pi Pico File Management System - (Ep. 0.1)
16:21
Life with David
Рет қаралды 27 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Raspberry Pi Pico - Review and Getting Started
18:32
Gary Explains
Рет қаралды 78 М.
3 Easy @raspberrypi Pico Projects that ANYONE can tackle!
19:21
Print 'N Play
Рет қаралды 141 М.
Beginners Guide to SPI on the Raspberry Pi Pico (BMP280 Example)
14:30
Learn Embedded Systems
Рет қаралды 52 М.
Raspberry Pi Pico: Inputs & Servo Control
17:20
ExplainingComputers
Рет қаралды 135 М.
5 Ways Pi Pico 2 Takes Your Projects to the Next Level
5:15
Hardware.ai
Рет қаралды 20 М.
#370 Raspberry Pi Pico vs ESP32 (-S2) and STM32 Blackpill
15:53
Andreas Spiess
Рет қаралды 392 М.
Getting Started with Multicore Programming on the Raspberry Pi Pico
11:14
Learn Embedded Systems
Рет қаралды 46 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН