Raspberry Pi Pico - Getting Started with MicroPython REPL (on Windows)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ย. 2024

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

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

    This is the best Pico getting started video I have seen, out of more than a dozen. Some are merely infatuated with taking something out of a cardboard box, while all of them did nothing more than read the spec sheet out loud. You, on the other hand, actually showed us how to do something. Thank you. I used Putty in serial mode to get the REPL.

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +2

      Thanks :) Connecting by terminal is a great "need to know" for microcontrollers, and the next level up is using an IDE such as Thonny to flash your scripts to your Pico (so they stay on there forever). Oh, and we have done a guide for that as well =) th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

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

    Used Roger Meier's stuff for ages - he does amazing work! So useful for many different applications

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

    Wonderful intro video. Thanks Micheal
    The code didn't work initially but it worked with the following:
    from machine import Timer
    from machine import Pin
    tim = Timer()
    led = Pin(25, Pin.OUT)
    def tick(timer):
    global led
    led.toggle()
    tim.init(freq=3.5, mode=Timer.PERIODIC, callback=tick)

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

      Do you know why CoolTerm might not execute print("Hello World")? I typed it in and hit ENTER, but the code disappeared and nothing happened.

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

    This is so cool! I haven’t seen a touch typist since a secretary in school 15 years ago

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      Michael's keyboard skills are often commented upon, #manwithclass

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

    Wow! Thank you so much for this. I just spent 3 hours trying to follow the PDF made by raspberry pi and couldn't seem to get anything to work. Followed this and I had everything working in 10 minutes. Should have just come here first 😭

  • @freeelectron8261
    @freeelectron8261 3 ปีที่แล้ว

    Got my Pi Pico from Core and now have a flashing green led thanks to this video. :) Now for the real stuff...

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

    CoolTerm tip:
    Enabling the "Filter ASCII Escape Sequences" and "Handle BS and DEL Characters" options in the CoolTerm connection settings allows you to use CoolTerm in "Raw Mode" as opposed to "Line Mode". This gives you the same look and feel you get from the Python interpreter running on a PC. However, you will lose the ability to use the UP arrow to recall previously used commands as MicroPython on the Pi Pico doesn't appear to be supporting the UP/Down arrows.

    • @MeierUTube
      @MeierUTube 2 ปีที่แล้ว

      The latest version of CoolTerm now has an option to emulate certain keys, such as the UP and DOWN arrows by sending specific ANSI escape sequences MicroPython understands. Enabling this option enables the use of the UP and DOWN arrows in "Raw Mode".

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

    The pico is on stock,unlike the Raspberry Pi of course
    This is very very very useful

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

    REPL is cool but WebREPL through Wifi is cooler. I use it to update or debug my ESP8266s around my house. (Lights and water control)

    • @goranjosic
      @goranjosic 3 ปีที่แล้ว

      I use ESP8266 with webrepl for years for small home project. Great hoby toy!
      In the last few days micropython has exploded in popularity due to pi pico. (which is a good thing, I hope for the accelerated development of the program)

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

    used this video to start with Pt2040 zero and it worked!

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

    I really enjoyed your video even though it's a year old it gave me a huge boost of confidence and excitement watching your video reason being years ago I actually bought a Raspberry Pi device similar to yours and it got misplaced in some boxes so by watching your video it gave me this bolt of energy to go and look for it and to do what I wanted to do years ago now I know my device is probably again years old but thanks for the video and just get me excited to get back to working in starting on I should say with my Raspberry Pi device I look forward to watching your other videos in the future as well friend. Also it was very easy to listen to you and follow you you did a great job of explaining things and your video work was just really good so great job on everything regarding your video

  • @Core-Electronics
    @Core-Electronics  หลายเดือนก่อน

    If you want to go even further with the Pico we have made a comprehensive beginners course for it! We cover everything from the basics, reading sensors, controlling servos, and even all the way upto hosting webpages on it!
    So if you wanna get started, you can find the entire playlist over here: th-cam.com/play/PLPK2l9Knytg4f6qkY65dizne2yAWeIyKD.html

  • @pedrovelazquez138
    @pedrovelazquez138 3 ปีที่แล้ว

    In 3 weeks I will have mine. I am learning now thanks to you!

  • @nadeemNadamat
    @nadeemNadamat 2 ปีที่แล้ว

    very under rated channel.

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

    I just got started pico with you 😇

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

    Nicely Explained

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

    Well done Michael! Looks awesome. Love to get my hands on some soon. I'll stay tuned to see about uploading persistent code. Cheers!

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +2

      Thanks Colin, we released the rshell video last night and a Thonny is on the bake today :)

    • @somebody9033
      @somebody9033 3 ปีที่แล้ว

      Mine's coming tomorrow and I can't wait!!!

    • @somebody9033
      @somebody9033 3 ปีที่แล้ว

      @MichaelKingsfordGray Erm I have a name, I don't want to disclose it here.

  • @Core-Electronics
    @Core-Electronics  3 ปีที่แล้ว +5

    We've just finished a guide using Thonny - which makes it *really* easy to upload code/scripts onto your Pico (not just tinker with the REPL) th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

  • @stevetobias4890
    @stevetobias4890 3 ปีที่แล้ว

    Very cool.
    Have ordered my Pico from Core but won't have it till sometime in March.
    Looking forward to playing with it.

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

    While I am waiting for my order to arrive I've been having a quick look through of the Official Raspberry Pi Pico Guide digital download 'Getting Started with MicroPython on Raspberry Pi Pico'.
    It seems that Thonny is the simplest option and comes with Raspberry Pi OS or can be downloaded for other OSes. You can write your MicroPython code in live mode or save it as a .py file directly to the Pico.

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +2

      We have a Thonny guide coming out in the next couple of hours :) We just wanted to be sure the new public release of Thonny works the same way (pretty much does, so stay tuned!)

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +2

      .... and it's done! th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

  • @tohcp9562
    @tohcp9562 2 ปีที่แล้ว

    It is simple and step by step learning ,so good to the beginner like me ,keep it out

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

    Ok got that ordered ofcourse...
    But can't wait for a version with wifi :P

    • @j_o_h_n_d_u_n_n
      @j_o_h_n_d_u_n_n 3 ปีที่แล้ว

      Would a pi zero not cover it ?

    • @j_o_h_n_d_u_n_n
      @j_o_h_n_d_u_n_n 3 ปีที่แล้ว

      @@wojtek-33 I know, just wondering what a WiFi enabled Pico could do, that a PiZero(W) couldn't ....
      Possibly enable the Pico with an USR-W610, but that's £50 !

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

    THANK YOU !!! Oh my GOD !! I've read DOZENS of "Quick Start Guides" and "For the Absolute Beginner" tutorials and they ALL start with, "To get started type THIS into your Pi Pico" without it ever crossing ANY of their BUTT- STUPID minds that they haven't explained WHERE to type it in !! I'm not kidding. They go through the whole, hold the "BootSel" button down, plug it in, it shows up here, drag this file onto it and wait for it to reboot thing. Then the VERY next thing is "Now type THIS in". WHERE !?!?!?!?!??! God it's so frustrating how utterly stupid software people almost always are. Any 10 year old can learn to program. Doing software requires zero brains and the 100 get started tutorials out there for this demonstrate that perfectly. Thank you for NOT being an idiot !!!!!

  • @adrianbromley6156
    @adrianbromley6156 3 ปีที่แล้ว

    Thank this was very helpful was about to give up.

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

    Helpful video 👍

  •  3 ปีที่แล้ว +7

    Does the Timer class require that the tick function has the argument timer? The argument is not being used inside the function.

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

      The callback function can use the argument if it wants to do things like stopping the actual timer. If the function has no argument it will basically get an error that the type does not match, however you won’t see the error as it happens in a service routine (you can define an emergency buffer if you want to see the error as documented here docs.micropython.org/en/latest/pyboard/reference/isr_rules.html ) but it’s best to just define the argument so that the number of arguments is correct, even if you don’t use it.

  • @abrahamthomas4136
    @abrahamthomas4136 3 ปีที่แล้ว

    nice to learn- thank you

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

    Nice Moire pattern led blinking....

    • @MichaelRuppe
      @MichaelRuppe 3 ปีที่แล้ว

      Yeah I suppose it does work out like interference. I wonder what it might look like if you photographed it as long exposure, scanning it back and forth slowly

    • @metalmolisher666
      @metalmolisher666 3 ปีที่แล้ว

      @@MichaelRuppe Like any waveform put through a lowpassfilter

  • @gerlingtascam1907
    @gerlingtascam1907 3 ปีที่แล้ว

    Thankyou on my order.

  • @Learner1963
    @Learner1963 3 ปีที่แล้ว

    Thank you! appreciate your effort.

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

    Nice work! Could you help me? Chinese calliper data reading pi pico micropyton is the few lines of code that do this! Unfortunately,
    I couldn't find a sample example of such a thing anywhere!

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

    That's good value for bucks. 4$ for a complete MC is nothing, and specially for the reason, the language can be chosen.

    • @artbecker5618
      @artbecker5618 3 ปีที่แล้ว

      A dollar less gets an Arduino Uno clone from China.

  • @mwilliams0303
    @mwilliams0303 3 ปีที่แล้ว

    Great video, well presented. keep it up!

  • @cthoadmin7458
    @cthoadmin7458 3 ปีที่แล้ว

    Ordered 2 Picos from Core last week. Interested to see how it compares to the Teensy.

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

    I have a Chromebook, would I be able to do it similar or how, it’s hard to find anything for chromebook people

  • @Dwrecktz
    @Dwrecktz 4 หลายเดือนก่อน

    This is pretty cool. Got my Pico to print "Hello World" On the screen. The only problem is I did everything you said, and my LED still won't light up.

    • @Core-Electronics
      @Core-Electronics  4 หลายเดือนก่อน

      Hi do you have a Pico or a Pico W variant?

    • @Dwrecktz
      @Dwrecktz 4 หลายเดือนก่อน

      @@Core-Electronics This might be an issue but I don’t know. I have the normal Pico variant, not the Pico W.

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

    hi, I am dragging and dropping uf2 file onto rp2 drive, it dispears but I can't find micro python from drop down in Thornny in Interpretor drop down in options. can you help?

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

    it have 128MB memory to save projects?

  • @DmitryEljuseev
    @DmitryEljuseev 3 ปีที่แล้ว

    Thanks for review. Why did not you use a normal Micropython IDE? Coding in terminal, hmm... And a Raspberry Pi Foundation guys are f..ng late in creating an Arduino-style board without wireless connectivity. It can be nice in 2010 but now I don't see any advantages in switching from ESP32 to this...

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

    I am getting this:
    >> from machine import pin
    Traceback (most recent call last):
    File "", line 1, in
    ImportError:
    can't import name pin
    Any advice, please? Ah-ha, I got it now Capital P! on the pin.
    Harrah I have a lit LED
    Thanks for the tutorial.

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

      from machine import Pin

    • @SusanAmberBruce
      @SusanAmberBruce 3 ปีที่แล้ว

      @@MrRadiostep yes

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      Capital "P" for pin :) Also, you may prefer to use Thonny for scripting and flashing your code to your Pico. We have put together a guide here th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

    • @SusanAmberBruce
      @SusanAmberBruce 3 ปีที่แล้ว

      @@Core-Electronics great I actually did a little video myself recommending your web site 😉

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

      P capital , lol i did the same mistake for like 2-3 times

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

    I tried uploading a script into my Raspberry Pi Pico using conventional method (drag and drop into it). However, when I power the board, the code doesn't execute at all. I bought two boards and they are both having the same behaviour. However, with CoolTerm it is doing just fine.

    • @Core-Electronics
      @Core-Electronics  8 หลายเดือนก่อน

      Hey Gabriel, are the scripts named main.py? The board will only run code named that on boot. If that is not the case ensure you have installed MicroPython correctly and that the scripts are correct. Best of luck!

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

      @@Core-Electronics Yup, they are. I tried almost everything I could find on the web, formatting it, deleting everything and then uploading, uploading the ufi file after the main.py, etc

  • @manuelpopp1687
    @manuelpopp1687 2 ปีที่แล้ว

    After copying the MicroPython file, the Pico disconnects. How can I access the Pico after that? Apparently, there are no serial connections found on my computer...
    Edit: It was a Windows issue. Switching to my Linux machine fixed it.

  • @bobhill2483
    @bobhill2483 3 ปีที่แล้ว

    I came here just out of curiosity. It looks like strange way of programming microcontroller but I guess for people who already know python it can be useful. I will definitely stick with STM32 + C + STM32cubeIDE.

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      Heya Bob, this is just the bare-metal approach using REPL. You might be interested with a full IDE experience such as Thonny, which we have recently done a guide for as well th-cam.com/video/HlmOqaFOOWY/w-d-xo.html

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

    Good man, very well done. Ther's something quite exciting about programming a microcrontroller interactively in real time, eh?

  • @leeoliver2969
    @leeoliver2969 3 ปีที่แล้ว

    Your poly-rhythm is called a "heartbeat". Hardkernel from South Korea likes to use it.

  • @nichtgestalt
    @nichtgestalt 3 ปีที่แล้ว

    So you can make a LED blink and set up a timer to that. I was wondering if you can programm some sort of morse alphabet to it and use the Pico as a minimalistic communication device? ^^
    (Note here: I'm pretty new to programming and computers in general so i have no idea what the limitations of this software and hardware is. All a have is a bit creativity, thats all atm :) )

    • @smellor123
      @smellor123 3 ปีที่แล้ว

      Get one and have a go! They don't have have any wireless communication on board, so you'd have to design that yourself or wait for their wifi pack from pimoroni. You could set it up with a short range radio transmitter and then have another pico set up with a receiver and a little servo to read out your morse code. Could be a great project to get started.

  • @bobtausworthe
    @bobtausworthe 3 ปีที่แล้ว

    Interesting they are going after Arduino. But is this the right offering? Micropython has been around for a while now and esp8266 offers wifi at the same price point. The real things I see as interesting are the 132Mhz clock and operating voltage 1.8-5v.

  • @aznjezza88
    @aznjezza88 3 ปีที่แล้ว

    When i try to connect, i get a CoolTerm - Warning
    An Error Occured while attempting to open the port COM4
    5: Access Denied

  • @yxhankun
    @yxhankun 3 ปีที่แล้ว

    I prefer u demo on c orC ++ for PICO. PLEASE!

  • @prathampandey9898
    @prathampandey9898 2 ปีที่แล้ว

    I have create main.py file for blinking led and now when I try to save/run another script the IDE(Thonny) shows error that the device is bussy. The previous script keeps on running. Even ctrl+c doesn't works. Any solution?

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

    now with micropython, led doesn;t turn on with this light. but rather,
    led=Pin("LED", Pin.OUT)
    led.on()

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

    Where can I find the python functions that can be imported on the pico?

  • @problematic7993
    @problematic7993 2 ปีที่แล้ว

    when i drag the uf2 file into the pico it immediately disconnects

  • @marzuqjanwar6247
    @marzuqjanwar6247 2 ปีที่แล้ว

    Hey i have a problem so when i downled the uf2 file it shows up as notepad and i think i did something that resulted in thatbut now what can i do?

  • @davidhill499
    @davidhill499 3 ปีที่แล้ว

    Just got my Pico, so just starting to get aquainted. Could you explain what goes on in the 2mb flash chip. I see that Adafruit has installed a 4mb on their board, please discuss.

  • @hamzadlm6625
    @hamzadlm6625 2 ปีที่แล้ว

    Why is my coolterm showing a dot instead of "hello world" ?

  • @gabrielaiello9993
    @gabrielaiello9993 3 ปีที่แล้ว

    What volt did you have in output from input/output pin ???? 5 or 3.3 ???

    • @MrStaplez
      @MrStaplez 3 ปีที่แล้ว

      The Pi Pico is 3.3V only on the I/O.

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

    After installing CoolTerm, I typed in
    print("Hello World")
    And I hit Enter.
    Nothing happened. It did not output "Hello World."

    • @Core-Electronics
      @Core-Electronics  หลายเดือนก่อน

      This tutorial is can be a little outdated, the Pico has become far easier to use now and we have a newer getting started video over here: th-cam.com/video/1QqHAwCkQLU/w-d-xo.html&ab_channel=CoreElectronics

  • @avivarma6564
    @avivarma6564 3 ปีที่แล้ว

    I am trying to get Hello world working with ubuntu on WSL, but the command minicom -b 115200 -o -D ttyACM0 outputs nothing, do you know what I should modify this to? (my device is on COM3)

  • @samineni100
    @samineni100 3 ปีที่แล้ว

    I tried using Termite and is not working.putty works.

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

  • @12350752
    @12350752 3 ปีที่แล้ว

    Only thing I'd like different is wifi capability like the zero w

  • @rverm1000
    @rverm1000 3 ปีที่แล้ว

    what do you do if the uf2 file doesnt get saved to the pico

  • @henrysabsurdities1766
    @henrysabsurdities1766 2 ปีที่แล้ว

    i'm at a loss here... i want to write a simple script to make a pulsing signal but i can't even get step one. i don't need it to be sent over serial or edited realtime like he did but i can't even import the required libraries. from machine doesn't even work using the latest uf2, it just isn't a thing. is there another way to use gpio that doesn't involve me spending another day trying to figure out what i did wrong or the steps people like this guy assumes everyone just knows to do?

  • @pintokitkat
    @pintokitkat 3 ปีที่แล้ว

    Three dots is an ellipsis. The fact that there are three of them does not make it an ellipses.

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

    i cant install the machine module.....can someone help me?

  • @OnlyKnowsGod
    @OnlyKnowsGod 3 ปีที่แล้ว

    I would have liked to see it running c++ as that would enable use of the Arduino library's which are very large and comprehensive.

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว

      Good idea! We'll have to get to work on one ;) word on the street is that RPi are working on a direct arduino port so it should integrate super easily

  • @Lasp39
    @Lasp39 3 ปีที่แล้ว

    Helt OK Jag beställde tio st Pico direkt!

    • @AndersJackson
      @AndersJackson 3 ปีที่แล้ว

      Har bara beställt en. Tänkte prova Forth på den, och kanske Ocaml, vi får se.

  • @andreaswolfesberger6140
    @andreaswolfesberger6140 3 ปีที่แล้ว

    HELP: i have no module named machine on my pico

  • @jugnu361
    @jugnu361 3 ปีที่แล้ว

    How to debug the c cide ??

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

    Doesn't include how to upload a program to the board.

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

      Next video as per his outtro! :-)

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว

      Thanks Ramon, rshell is the "bare metal" and we've shared that guide here th-cam.com/video/IMZUZuytt7o/w-d-xo.html
      Releasing a Thonny version today (more user friendly)

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      Thonny guide released! th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

  • @cristophersagcal4974
    @cristophersagcal4974 3 ปีที่แล้ว

    Pls help. My project is Automated Pig Feeder using Rasberry pi pico.

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

    Why are you not using a RPi 4B when you program this? ;-)
    (Thanks for the video, by the way)

    • @jyvben1520
      @jyvben1520 3 ปีที่แล้ว

      most have windows, less have rpi os, both can handle the repl/dropfile, putty also works on both (like coolterm)
      rp2040 is not confined to rpi users.

  • @turkuas23626
    @turkuas23626 3 ปีที่แล้ว

    I could not see the rpi codes in micropython/ports repository, will it be added later or will it be not "open source"?

  • @38911bytefree
    @38911bytefree 3 ปีที่แล้ว

    It executes comands on the spot .... like the C64 did 40 years ago. Of course, at 1/100 the power. Still dont see the adavantage of using this approach, rather than just playing. Also, he never made a mistake, in the real woold what happens, the lines are "compiled" on the go ?.

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว

      It is pretty much "just playing" - though getting a dev board up-and-going with a terminal application is quite handy for a range of reasons, especially debugging. If you want to instead connect the Pico to an IDE, then take a look at this guide th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

    • @pratiklondhe5167
      @pratiklondhe5167 3 ปีที่แล้ว

      that's how interpreted languages work mate

  • @ITGuyinaction
    @ITGuyinaction 3 ปีที่แล้ว

    👍 👍 👍 👍 👍 👍 👍 🍀

  • @Matlalcueitl
    @Matlalcueitl 3 ปีที่แล้ว

    That global wasn't necessary. It would be only if you set the variable inside that function.

  • @jugnu361
    @jugnu361 3 ปีที่แล้ว

    how to debug ?? without debugging its of NO professional use.....

  • @koodauskanava9096
    @koodauskanava9096 3 ปีที่แล้ว

    Could you use VSCode as the code editor on your computer and send the code to Pico somehow?

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      At the time of writing, Thonny is the best user experience. It will gracefully handle firmware updates and makes updating code transparent (easy). Support for VSCode shouldn’t be far away; though it would be via a plug-in of some flavor

    • @tannewt
      @tannewt 3 ปีที่แล้ว

      You can run CircuitPython on the Pico as well. It appears as a drive with a python file on it that you can edit from any code or plain text editor. On save, the code will be restarted. You'll need a separate serial app to see the output. circuitpython.org/board/raspberry_pi_pico/

  • @jayd7974
    @jayd7974 2 ปีที่แล้ว

    doesn't recognize driver.

  • @pewcfpv8056
    @pewcfpv8056 3 ปีที่แล้ว

    This guy either plays drums or listens to Animals as Leaders. How do I know? He knows what polyrhythms are.

  • @otakubio3776
    @otakubio3776 2 ปีที่แล้ว

    It’s not turning on☹️

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

    Have you looked into running Circuitpython? It could be a better option for new users. Let me know what you think.

  • @KaivitiSingh
    @KaivitiSingh 3 ปีที่แล้ว

    He is complicating a simple issue, Python is only a year 10 school stuff and simple. NOTE: You don't need to write all that timer, def etc, you can just write a simple loop which doesn't end and you will have continuous blinking :
    from machine import Pin
    import time
    led = Pin(25,Pin.OUT)
    while True:
    led.high()
    time.sleep(0.2)
    led.low()
    time.sleep(0.2)

  • @jamescullins2709
    @jamescullins2709 3 ปีที่แล้ว

    Not $4.00 now, $6.80 + $24.00 shipping

  • @davidwebster3383
    @davidwebster3383 3 ปีที่แล้ว

    Is micropython the only way to program the Pico?

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

      There's also a C++ SDK. Check out raspberry pi's literature on the subject

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

      You can use Circuitpython. Lady Ada has done a lot of development work and they are also a manufacturer for the board.

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

    9:00

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

    Didn't use putty, 0/10
    Jk great vid

    • @artbecker5618
      @artbecker5618 3 ปีที่แล้ว

      putty works great in serial mode to get the REPL

  • @jimmytherazor
    @jimmytherazor 3 ปีที่แล้ว

    Sorry - too fast for me. From "Hello world" to creating functions in live coding in 10 min... I look forward to the scripting - maybe that will be a better pace for beginners like me.

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

    How to teach programming without writing a program, Doh!

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +3

      We didn't want to bog-down everyone with a "MicroPython Guide" - this was intended to be a clean cut example of how to get the REPL going on RP2040 (Pico) and from there, have at it!
      We've also released a guide for rshell (for uploading your code) and today we'll release another for Thonny

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +1

      Here's the Thonny guide, enjoy! th-cam.com/video/_ouzuI_ZPLs/w-d-xo.html

  • @1over137
    @1over137 2 ปีที่แล้ว

    You're ginger and you dye your hair dark.

  • @RupertBruce
    @RupertBruce 3 ปีที่แล้ว

    Sorry, I can't tolerate the keyboard noise😡 I could download your video and redo the audio, I suppose - good content!

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว +4

      Oh no, keyboard noise will be a problem when coding in general. Good luck :)

    • @RupertBruce
      @RupertBruce 3 ปีที่แล้ว

      @@Core-Electronics - I know, I've been coding for 35 years! Thank goodness for headphones 🙂

  • @user-yv2cz8oj1k
    @user-yv2cz8oj1k 3 ปีที่แล้ว

    Pity it isn't the Raspberry Pikelet. :D

  • @Devin82m
    @Devin82m 3 ปีที่แล้ว

    Man bun. Eww.

  • @karoma7898
    @karoma7898 3 ปีที่แล้ว

    Man do i fuckin hate python... Did they have to do that!

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

    I hope you do reply. i tried this code . Didn't work.
    import machine
    import utime
    power_mosfet = 0
    reset_mosfet = 1
    mosfet_toggle_srt = 2
    mosfet_toggle_med = 5
    mosfet_toggle_long = 7
    def mosfet_toggle(pin_no, toggle_period):
    power_on = Pin(pin_no, Pin.OUT)
    power_on.value(1)
    utime.sleep(toggle_period)
    Pin(pin_no, Pin.OUT).value(0)
    utime.sleep(2)

    def toggle(pin_no):
    Pin(pin_no, Pin.OUT).toggle()
    mosfet_toggle(power_mosfet, mosfet_toggle_long)
    """while True:
    utime.sleep(2)
    mosfet_toggle(power_mosfet, 1)
    utime.sleep(2)"""