MicroPython #2 - Hit the ground running

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

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

  • @bgable7707
    @bgable7707 5 ปีที่แล้ว +6

    You have a knack of explaining VERY clearly. Hitting the right points, concepts and ideas. Keep up the great work!

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

    Great video. Even I understood what was going on. Thanks Seon

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

    Nice. I found this video by accident(kind of). This is how I started Arduino. Blinking an LED. Now I have sensors around the house, relays. Complete products that have been plugged in 24/7 for 2 years now and still working. I've got my 1st ESP32 on it's way. Wish me luck. I think I'm going to have fun!!!

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

    Excellent tutorial. Easy to follow but not too slow for me. Thanks.

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

    Hi Seon, I am now sitting staring at my blinking LED (blue)...Micropython is now fully installed, gonna hit the books and look forward to your tutorials...thanks in advance !

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

      Awesome to hear mate! And blue LED? Yes!!! Paint world blue!

  • @martinkaspar5095
    @martinkaspar5095 4 ปีที่แล้ว +5

    great work - i like it very much. You did a great job. Could you create a video on the setup of VSCode and make it working with MicroPython - and connecting the esp 32... - that would be great

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

    you can also use p.toggle() and if it was on it will turn off and vise-versa

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

    Hi Seon, this is wonderful!
    I feel like I could code in Python now. :-)
    I love Visual Studio too. I love the Intellisense and for a while it was the only editor that knows how to collapse code. Thanks for info packed video. Well done!

    • @UnexpectedMaker
      @UnexpectedMaker  5 ปีที่แล้ว

      Thanks Hari... Yeah, VSC rocks... it's fast and intuitive, and the intenseness is awesome.

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

    Great!!! I always prefer to use VScode instead of shell... Thank you!

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

    good job! I'm going to play along at home.

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

    Awesome..Clear Video..!!!

  • @rene-jeanmercier6517
    @rene-jeanmercier6517 5 ปีที่แล้ว +1

    Excellent ! Indeed! Now can you connect a TFT display controller like an ST7735 (SPI mode) and create a menu with a few options, one of which being a call to your blink function ? Thank you so much for sharing your knowledge. R.J.

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

    help ( machine ) for some reason the class Signal is missing ?

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

      you may need to import machine first to view the help

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

    I,am trying to keep up,but its nice you take the time to show us thanks agine for your cool vids,.//.,

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

    How to open serial port with Terminal On Windows?

  • @andymouse
    @andymouse 5 ปีที่แล้ว

    I'm looking forward to playing now and it looks great! Ive fallen at the first hurdle though!!….I'm having a hell of a job getting "esptool" so I can load up my Wemos D1 Mini (just bought it )...It was supposed to be easy just type "pip install esptool" but no, it seems only certain versions of Python have it !!….so as soon as I sort out what to do I'm gonna be straight on Micropython and I look forward to your tutorials.

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

      esptool also comes with the ESP8266/32 packages for Arduino... it's how Arduino flashes code onto them.

    • @andymouse
      @andymouse 5 ปีที่แล้ว

      @@UnexpectedMakerso close yet so far! I have MP installed and the REPL comes up I can import machine, and assign values but if I type print "hello world" and hit return it replies
      Trackback (most recent call last)
      File "", line 1
      Syntax error: invalid syntax
      any thoughts ?......Oh yeah also if I type 2*8 it answers 16 perfect it just dosent like "print" (sorry to bother you)

    • @andymouse
      @andymouse 5 ปีที่แล้ว

      @@Captn_Grumpyversion 27 thanks but dont understand next bit all new to me gonna get some sleep its 3 in the morning here but I can rest easy I'm getting there I have a REPL prompt that sort of works ! thanks again

    • @andymouse
      @andymouse 5 ปีที่แล้ว

      @@Captn_Grumpy Hi!...yeah parentheses, my version is python 2.7 and seems to need brackets

    • @andymouse
      @andymouse 5 ปีที่แล้ว

      @@Captn_GrumpyHi just had a couple of points cleared up from the forum...mine is version 3.4 with some 3.5 extensions also yes you need parentheses also the error message I was receiving was due to a fresh install and it was looking for "main.py" so just needed to create one and other stuff that I forgot is case sensitive, so that was "silly me" ! so all in all I seem to have a proper install at last. Thanks for help

  • @paulo.galvao
    @paulo.galvao 3 ปีที่แล้ว

    You can download this jupyter file and test the code: github.com/labF212/ESP32/blob/master/teste.ipynb
    How to use Thonny: github.com/labF212/ESP32/blob/master/Thonny%20MicroPython%20ESP-32.pdf

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

    How do I set up visual studio code for Micropython?

    • @UnexpectedMaker
      @UnexpectedMaker  5 ปีที่แล้ว

      Just install VSC, then add the Python extension from the extension manager. That's it!

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

    All this works on my pi zero but I get wriggly lines under the code on line 1. Is this ok or have I got a problem with my "machine module" installation?

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

      Pi Zero runs Python, not MicroPython. These tutorials don't apply.

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

    Can cython be used in this manner? For obvious reasons of speeding up the code ofcourse

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

    I always find it a bit strange to program a microcontroller using an interpreted language.

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

    Can you use rshell on windows or what would you use to transfer files to the microcontroller from windows?

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

      Yes, rshell works on Windows, some folks also use ampy and mpfshell.

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

    Can i using nano or vim ?

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

      Sure, to edit your code, but you still need a way to upload your code.

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

      with rshell you can set the editor. i use nano.

  • @Konrad_Wallmeier
    @Konrad_Wallmeier 5 ปีที่แล้ว

    And how do I insert the rshell in VSC now?
    Excuse me that's all new to me. I am thankful for every answer.

    • @UnexpectedMaker
      @UnexpectedMaker  5 ปีที่แล้ว

      If you have rshell installed, you just open a terminal window in VCS and run it from there.

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

    Hi could u make a video on how to develop micropython using c/c++ please?

  • @jumbo999614
    @jumbo999614 4 ปีที่แล้ว

    Can anything go wrong while flashing that cause it to be unusable? I have esp8266 and esp32. How do you flash it to original firmware if you decide to go back to Arduino IDE?

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

      You can always do an erase flash. To go from MP to Arduino, just flash your code from Arduino. No need to do anything else.

  • @clownzfeet
    @clownzfeet 5 ปีที่แล้ว

    I'm fairly new, please bear with me. I can turn on and off gpio pins, but when I use a loop the loop does nothing...and ideas? esp8266 running from raspberry pi3B usb.
    Thank you for your tutorials.

    • @konde58
      @konde58 5 ปีที่แล้ว

      You have to press the enter key a several times after entering the last line of code of the loop , 3 or 4 is usually enough.

  • @Konrad_Wallmeier
    @Konrad_Wallmeier 5 ปีที่แล้ว

    What is the command for the rshell to address the MicroPython board via the rshell?
    With me ESP32 to COM6

    • @UnexpectedMaker
      @UnexpectedMaker  5 ปีที่แล้ว

      Have you tried googling "rshell on com6" ?

    • @Konrad_Wallmeier
      @Konrad_Wallmeier 5 ปีที่แล้ว

      @@UnexpectedMaker Yes, I have made but found no solution. The rshell is running, but I can not contact the ESP32 board.
      Under uPyCraft I can address the board. I do not know what else to try.

    • @UnexpectedMaker
      @UnexpectedMaker  5 ปีที่แล้ว

      rshell --port COM6

  • @pawankumar-xv9lu
    @pawankumar-xv9lu 4 ปีที่แล้ว

    hey in which software are you coding? how i will get it on windows

    • @UnexpectedMaker
      @UnexpectedMaker  4 ปีที่แล้ว

      I'm using Visual Studio Code, it's free and available on all platforms.

  • @wayneyue1662
    @wayneyue1662 4 ปีที่แล้ว

    How cool!!

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

    Just wanted to slip this in. assembly language!!!!!!!!! docs.micropython.org/en/v1.9.3/pyboard/pyboard/tutorial/assembler.html

    • @UnexpectedMaker
      @UnexpectedMaker  5 ปีที่แล้ว

      Yup, MicroPython can do both inline C and Assembly, as well as modules in C and Assembly... It's very versatile! Damien is making it all better and better all the time :-)

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

    MicroPython rocks !
    But man, VisualStudio ? NO.

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

      Visual Studio Code rocks!

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

      I don't use Visual Studio.... I use Visual Studio Code - It's a completely different app, and works on all platforms, and makes Atom look like crap ;) Nah, it's just like Atom, but better support.

  • @wayneyue1662
    @wayneyue1662 4 ปีที่แล้ว

    How cool!!