How to Use PyCharm with Raspberry Pi Pico W and MicroPython

แชร์
ฝัง

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

  • @mmshilleh
    @mmshilleh  ปีที่แล้ว +1

    If this helped you please consider supporting the channel at www.buymeacoffee.com/mmshilleh or if you want to book a chat with me.
    Also be sure to like, comment, and subscribe. That would be awesome! Thanks!

  • @rbnzdave
    @rbnzdave 8 หลายเดือนก่อน +1

    While I found the micropython rom after a depressing search and it made the other guide i was using all of a sudden work, Kudos for including the firmware as people watching this first are going to have FAR less hassles.

    • @mmshilleh
      @mmshilleh  8 หลายเดือนก่อน

      Certainly, I strive to produce content that is welcoming to beginners. Nevertheless, I occasionally overlook the challenges of being a beginner. I appreciate your positive content and hope that beginners will consistently find value in the content on this channel!

  • @Weaselpro
    @Weaselpro 16 วันที่ผ่านมา +1

    Hei!!! It also would worth to show how to run Serial Terminal console for comunication with PICO in PyCharm.
    Go Micropython tool on the left panel, click RELOAD circle arrow at left side to restart all, then Ctrl+D will run code on Pico and you will get serial terminal output.

    • @mmshilleh
      @mmshilleh  15 วันที่ผ่านมา

      That is great might have to do a P2

  • @nightcoder5k
    @nightcoder5k ปีที่แล้ว +3

    Pretty cool. Thanks for sharing.
    I'm wondering about the job market for embedded programming. It would be cool to have a job doing what you like.

    • @mmshilleh
      @mmshilleh  ปีที่แล้ว +1

      Hey, yeah I did briefly look into that for a bit. For now, I am a backend engineer which is interesting but have not looked too much into embedded systems engineering. Working for some robotics companies would be awesome, we will see what the future holds!

  • @johncutler5995
    @johncutler5995 ปีที่แล้ว +2

    I have found that installing rshell via pip and the using the Pycharm terminal to load and delete files and directories onto and from the Pico works well. Not as easy as Thonny for file manipulation, but very effective especially if one is familiar with Vim and the command line.

    • @mmshilleh
      @mmshilleh  ปีที่แล้ว +1

      Wow that is very clever maybe I will make a part 2 because of this comment thanks John!

    • @joshmosley
      @joshmosley 11 หลายเดือนก่อน

      Just wanted to second this, thats an amazing idea sir.

  • @LucianoMesquita1180
    @LucianoMesquita1180 10 หลายเดือนก่อน +2

    It works!!!!

    • @mmshilleh
      @mmshilleh  10 หลายเดือนก่อน

      Awesome 👏 Happy to hear done forget to subscribe!!!

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

    thank you for this tutorial but my setup not working: windows 10 / pycharm 2024.1.3 / Micropython Plugin 1.4.0 / latest Micropython uf2 for RPI_PICO . repl is not working the code compiles but nothing happens in pico . same code working on thonny on same computer. any idea?

    • @mmshilleh
      @mmshilleh  2 หลายเดือนก่อน

      Hard to tell Meysam! I would try VSCode it is more robust

  • @chocokikochocokiko9555
    @chocokikochocokiko9555 9 หลายเดือนก่อน +1

    In CirquitPython you can just add the device volume as content root to the project and work with the files like on any other flash storage...

    • @mmshilleh
      @mmshilleh  9 หลายเดือนก่อน

      Are you saying CircuitPython works fine with PyCharm? What is your point mate

    • @rbnzdave
      @rbnzdave 8 หลายเดือนก่อน

      I think their point is the ide allows you to work directly on the device. I dont know if there is a write limit that might get reached doing this, but someone will always provide an example of what is not your content. Personally I feel jetbrains stomp all other ide's into the ground. Pycharm is just another awesome entry in its arsenal.@@mmshilleh

  • @prozacsf84
    @prozacsf84 26 วันที่ผ่านมา +1

    ctrl+d is rebooting the pico

  • @kiransubramanianpallayil5861
    @kiransubramanianpallayil5861 ปีที่แล้ว +2

    Would this work for a Pico with wifi access

    • @mmshilleh
      @mmshilleh  ปีที่แล้ว +1

      Yes, it would. It is just an IDE so you should hypothetically be able to write any code the Pico W supports. Honestly, I would recommend using VSCode or Thonny for anything Pico related. The interfacing with PyCharm is not that flushed out and has issues.

    • @kiransubramanianpallayil5861
      @kiransubramanianpallayil5861 ปีที่แล้ว

      @@mmshilleh thank you

  • @cosminvasiliu7370
    @cosminvasiliu7370 5 หลายเดือนก่อน +1

    bro, i did everything exactly how u showed and in my case i run my program and nothing happens after those pop ups with 100 % files uploaded. after soft reboot nothing happens..... and i dont know what to do

    • @mmshilleh
      @mmshilleh  5 หลายเดือนก่อน

      My honest advice, use Thonny and make your life easier

  • @gus_gus_
    @gus_gus_ ปีที่แล้ว +1

    where is the output, after running code? is it possible to saw it?

    • @mmshilleh
      @mmshilleh  ปีที่แล้ว

      No this is one of the flaws, you can only see the output if you are running the main file.

    • @Weaselpro
      @Weaselpro 16 วันที่ผ่านมา

      Go Micropython tool on the left panel, click RELOAD circle arrow at left side to restart all, then Ctrl+D will run code on Pico and you will get serial terminal output.

  • @CLyon-cc9jp
    @CLyon-cc9jp 5 หลายเดือนก่อน +1

    I don't like the fact that you cannot see the output. This is a major flaw in my opinion. Perhaps there is something I am missing, but I won't be using it because I can't see my debug statements when running. Hopefully, someone can prove me wrong.

    • @mmshilleh
      @mmshilleh  5 หลายเดือนก่อน

      Yeah not a big fan of the editor at all tbh

    • @Weaselpro
      @Weaselpro 16 วันที่ผ่านมา

      Go Micropython tool on the left panel, click RELOAD circle arrow at left side to restart all, then Ctrl+D will run code on Pico and you will get serial terminal output.

  • @henryzhang758
    @henryzhang758 ปีที่แล้ว

    Hi there! I wrote a program to receive the analog output from a photodiode module and print out its value, which runs pretty well on Thonny. But when I run it on PyCharm, it keeps reporting this: No module named 'machine'. Although I've already set up MicroPython and there is no red wave-line under my code "import machine". Would it be possible for you to help me out?

    • @mmshilleh
      @mmshilleh  ปีที่แล้ว

      Hello Henry,
      I do remember dealing with something like this. Try this:
      In PyCharm you should enable MicroPython Support:
      Settings > Languages & Frameworks > MicroPython > Enable MicroPython Support
      Once that is ready, you should Run 'Flash '. This will flash your script to your connected micropython device so it can run on there, not on your computer.

    • @henryzhang758
      @henryzhang758 ปีที่แล้ว +1

      @@mmshillehI enabled it but it still doesn't work. I flashed the script successfully but no value is printed out on the screen. After that I ran the main.py file and the same problem occurred.

    • @mmshilleh
      @mmshilleh  ปีที่แล้ว

      Did you install MicroPython on your device properly? Just want to be clear. You can try in Thonny or REPL @@henryzhang758

    • @henryzhang758
      @henryzhang758 11 หลายเดือนก่อน +1

      @@mmshilleh PyCharm didn’t work so I turned to VS Code instead and it worked (Your video on VS Code helped me a lot)! It occurs to me that it’s also possible to use serial communication to transfer data.

    • @mmshilleh
      @mmshilleh  11 หลายเดือนก่อน

      @@henryzhang758 wow great to hear. VScode is way better too in my opinion! Thanks for watching :)

  • @vincent3051
    @vincent3051 6 หลายเดือนก่อน +1

    Maybe you should have a disclaimer about the drawbacks of using pycharm with micropython in the beginning. Big waste of time. I would not have gone down this rabbit hole to begin with. The functionality is pretty much useless, you can't see output, you can't change files only port over. Basically no reason to even use this.

    • @mmshilleh
      @mmshilleh  6 หลายเดือนก่อน

      😛