MicroPython #2 - Hit the ground running

Поделиться
HTML-код
  • Опубликовано: 14 окт 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!

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

  • @jmicari
    @jmicari 5 лет назад +5

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

  • @martinkaspar5095
    @martinkaspar5095 5 лет назад +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

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

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

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

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

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

  • @fvgoya
    @fvgoya 5 лет назад +2

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

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

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

    Awesome..Clear Video..!!!

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

  • @ratmadness4858
    @ratmadness4858 5 лет назад +1

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

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

  • @muhammadosama3358
    @muhammadosama3358 5 лет назад +1

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

  • @tahanprahara
    @tahanprahara 5 лет назад +1

    How to open serial port with Terminal On Windows?

  • @desir8356
    @desir8356 5 лет назад +2

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

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

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

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

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

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

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

  • @xtra9996
    @xtra9996 5 лет назад +5

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

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

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

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

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