Raspberry Pi Pico - Getting Started and programming in PyCharm

Поделиться
HTML-код
  • Опубликовано: 21 янв 2021
  • We will show you how to get started with programming the Raspberry Pi Pico in PyCharm.
    Did you know, Seeed Studio are currently doing free shipping during August on the XIAO RP2040???!!!!
    The XIAO RP2040 is a microcontroller using the Raspberry RP2040 chip. It runs at up to 133MHz, is built with rich interfaces in a tiny thumb size, and fully supports Ardunio, MicroPython, and CircuitPython. The onboard interfaces are enough for developing multiple applications.
    For further information:
    www.seeedstudio.com/XIAO-RP20...
    Find us on Facebook, Instagram and Twitter @MachineShopUK
    Visit our website TheMachineShop.uk
  • НаукаНаука

Комментарии • 119

  • @loupletac
    @loupletac Год назад +12

    FYI: for the pico W, it's no longer the pin 25. Use led = Pin("LED", Pin.OUT) instead

  • @ww1593
    @ww1593 2 года назад +5

    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.

  • @petermferguson
    @petermferguson 3 года назад +13

    Getting the "Run ‘Flash main.py’" is invaluable - thank you :)

    • @TheMachineShopUK
      @TheMachineShopUK  3 года назад +5

      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 года назад +3

      Feel free to share it on social media to make sure people know about this trick 😉

  • @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

  • @kenwallace6493
    @kenwallace6493 3 года назад +3

    One of the better getting-started videos. Thanks!

  • @MikeSims70
    @MikeSims70 3 года назад +1

    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! :-)

  • @ste76539
    @ste76539 3 года назад +9

    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)

  • @denisfilming
    @denisfilming 2 года назад +1

    Thank you very much. Just got into Pi development and wanted to use PyCharm, and your video allowed me to do that. Cheers!

  • @kooroshtehraniyan1918
    @kooroshtehraniyan1918 2 года назад

    Thanks buddy! Finally got PyCharm working on my Pi Pico!

  • @GETinTheVaniHavCndy
    @GETinTheVaniHavCndy 3 года назад +3

    Thank you, I was struggling to read serial messages from my nodeMCU. Incredibly helpful, serial tutorial begins @ 10:58

  • @freeelectron8261
    @freeelectron8261 3 года назад +1

    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!

  • @amoghpatil302
    @amoghpatil302 3 года назад +2

    Thank you for keeping it simple!

  • @deniz_guven
    @deniz_guven Год назад

    Thanks for the clear and understandable instruction. This is the best way to program pico.

  • @zhouyu9971
    @zhouyu9971 Год назад +1

    This is really helpful. I can't get used to the Thonny Mac version for bugs, and editing interface.

  • @deniz_guven
    @deniz_guven Год назад

    It is working flawlessly.

  • @je1vuj
    @je1vuj 3 года назад +1

    It was easy to understand.
    Thank you very much.

  • @Quebster
    @Quebster 2 года назад +1

    Awesome little tutorial. Thanks!

  • @PM-ly9gc
    @PM-ly9gc 3 года назад +1

    Superb tutorial. Thanks for sharing!

  • @KarlZawoy
    @KarlZawoy Год назад

    John, Thank you for the great tutorial. Very helpful, I'm up and running now with my PICO on PyCharm!

  • @investwithstuph5887
    @investwithstuph5887 2 года назад +1

    excellent introduction, im a newbie and needed such video. Keep up good work!

  • @salamona03
    @salamona03 3 года назад +1

    Thanks, the tutorial worked for my esp32 apart from firmware which I used thonny to install.

  • @freeelectron8261
    @freeelectron8261 3 года назад +2

    Thanks for saving us lots of config hassle!

  • @KidFifty
    @KidFifty Год назад

    Thank you; very easy to understand.

  • @dans-designs
    @dans-designs 2 года назад

    great tutorial, thank you for taking the time!

  • @mohamedabdelfattah8627
    @mohamedabdelfattah8627 3 года назад +1

    Very helpful video, thanks a lot.

  • @hornorama
    @hornorama 2 года назад

    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!

  • @Jlou21000
    @Jlou21000 3 года назад +1

    It works !!!! Thank you so much :)

  • @luchi5988
    @luchi5988 3 года назад +1

    Great! Thx for timesaving!

  • @iKostanCom
    @iKostanCom 3 года назад +1

    Hi there. Well done, thank you for this quality content.

  • @rajeshrazz9244
    @rajeshrazz9244 3 года назад +1

    Great video

  • @jorgechac
    @jorgechac Год назад +2

    Excellent, today Pycharm has already been updated and Raspbery Pi Pico already appears in device type.

  • @linuxboi2869
    @linuxboi2869 3 года назад +1

    Nice video!

  • @electrohub9100
    @electrohub9100 3 года назад +1

    Thank you dear keep it.

  • @michaelevan9184
    @michaelevan9184 3 года назад +1

    Spot on job!

  • @ivangutowski
    @ivangutowski Год назад

    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

  • @electronicaprogramacion2311
    @electronicaprogramacion2311 3 года назад +1

    muchas gracias por el video es lo que yo buscaba bendiciones

  • @cvm6690
    @cvm6690 3 года назад +1

    Merci pour la présentation :pouce:

  • @emilwaszkiewicz7744
    @emilwaszkiewicz7744 Год назад

    I'll tell you what...IT WAS JUST GREAT,MANY THANKS!!!! :)

    • @TheMachineShopUK
      @TheMachineShopUK  Год назад +1

      Almost as great as your comment, thank you

    • @emilwaszkiewicz7744
      @emilwaszkiewicz7744 Год назад

      @@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

  • @booboyBL
    @booboyBL 3 года назад +1

    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.

  • @alibabaei3457
    @alibabaei3457 Год назад

    Thank you very much👍

  • @GeekMustHave
    @GeekMustHave 3 года назад +1

    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!!

  • @jemarosepagasita5000
    @jemarosepagasita5000 4 месяца назад

    Thank you so much

  • @risk4786
    @risk4786 2 года назад +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?

  • @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!

  • @CallMeMSL
    @CallMeMSL 3 года назад +1

    thanks dude

  • @47lokeshkumar74
    @47lokeshkumar74 3 года назад +1

    yes

  • @amank97
    @amank97 3 года назад +1

    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 года назад +1

      Haven't thought about anything in particular, would keep u posted as I come across some idea

  • @baltazardiaz9423
    @baltazardiaz9423 3 года назад

    Thank you. If you select ESP8266 also worked for me.

  • @amank97
    @amank97 3 года назад +1

    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

  • @karama5478
    @karama5478 2 года назад +1

    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.

  • @TheBishopOfBarton
    @TheBishopOfBarton 3 года назад +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.

  • @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?

  • @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

  • @octopussapiens5497
    @octopussapiens5497 2 года назад +1

    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

  • @Darkev77
    @Darkev77 2 года назад

    Awesome video! How to save a file script on the pico via PyCharm?

  • @denisfilming
    @denisfilming 2 года назад

    Any idea how to browse and load files residing on the Pico (from PyCharm)?

  • @PontusThePilot
    @PontusThePilot 3 года назад +1

    Great vid! Please do a Mac and a Linux version as well :)

    • @TheMachineShopUK
      @TheMachineShopUK  3 года назад +1

      Ok will do

    • @damanivu
      @damanivu 3 года назад

      Mac port for my computer was “/dev/cu.usbmodem0000000000001”

  • @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).

  • @paulavandertol5601
    @paulavandertol5601 Год назад

    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 4 месяца назад

      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.

  • @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

  • @walterp7125
    @walterp7125 2 года назад +1

    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  2 года назад

      Thank you for your comment Walter, I’ll get right on it

    • @walterp7125
      @walterp7125 2 года назад +1

      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 2 года назад +1

      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

  • @smnsdf
    @smnsdf 3 года назад

    One dought please help me in file manager the pico is not coming

  • @user-zo8ng3tk5h
    @user-zo8ng3tk5h Год назад

    How to fix this "Raspberry pi pico support requires valid python 3.5+ SDK" ?

  • @nutakkipradeep2708
    @nutakkipradeep2708 3 года назад

    Can I have integration of Aanaconda3, Python 3.7, Pico version?

  • @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?

  • @omerfarukgunaydn4881
    @omerfarukgunaydn4881 Год назад

    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  Год назад +1

      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 Год назад

      @@TheMachineShopUK thank you so much

  • @damanivu
    @damanivu 3 года назад +2

    Mac port for my computer was “/dev/cu.usbmodem0000000000001”

  • @susmitagoswami129
    @susmitagoswami129 Год назад

    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  Год назад

      Can you tell me exactly what it says please?

    • @susmitagoswami129
      @susmitagoswami129 Год назад +1

      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 Год назад

      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 Год назад

      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?

  • @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

  • @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?

  • @venkir1408
    @venkir1408 3 года назад +1

    pyCharm windows could have been bigger or maximized for better visibility

  • @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

  • @orph4nsx
    @orph4nsx 10 месяцев назад

    Is python better then C/C++ with Rap PI Pico?

    • @TheMachineShopUK
      @TheMachineShopUK  10 месяцев назад +1

      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  10 месяцев назад +1

      But on the flip side, micropython can be easier to understand and you don’t have to compile it

  • @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 года назад +1

      Hey, check this site out, they have a special version for Brazil www.filipeflop.com/produto/raspberry-pi-3-model-b/

  • @user-zo8ng3tk5h
    @user-zo8ng3tk5h Год назад

    And its showing SDK invalid

  • @themarsoff
    @themarsoff 2 года назад

    ModuleNotFoundError: No module named 'machine'

  • @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

  • @jasontiscione1741
    @jasontiscione1741 2 года назад

    PyCharm doesn't support this plugin anymore and current versions won't let you install it.

  • @Tolya421.
    @Tolya421. 8 месяцев назад

    Круто)

  • @Taki7o7
    @Taki7o7 2 года назад

    Type exec(open("filename.py").read()) into the REPL if you want to test another file ^^