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!!!
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 !
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
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!
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.
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.
@@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)
@@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
@@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
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
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?
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?
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.
@@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.
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 :-)
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.
You have a knack of explaining VERY clearly. Hitting the right points, concepts and ideas. Keep up the great work!
Great video. Even I understood what was going on. Thanks Seon
Cheers mate!
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!!!
Excellent tutorial. Easy to follow but not too slow for me. Thanks.
Thanks Paul :-)
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 !
Awesome to hear mate! And blue LED? Yes!!! Paint world blue!
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
you can also use p.toggle() and if it was on it will turn off and vise-versa
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!
Thanks Hari... Yeah, VSC rocks... it's fast and intuitive, and the intenseness is awesome.
Great!!! I always prefer to use VScode instead of shell... Thank you!
You're welcome :-)
good job! I'm going to play along at home.
Awesome! Glad to hear :-)
Awesome..Clear Video..!!!
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.
help ( machine ) for some reason the class Signal is missing ?
you may need to import machine first to view the help
I,am trying to keep up,but its nice you take the time to show us thanks agine for your cool vids,.//.,
Cheers Karl!
How to open serial port with Terminal On Windows?
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.
esptool also comes with the ESP8266/32 packages for Arduino... it's how Arduino flashes code onto them.
@@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)
@@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
@@Captn_Grumpy Hi!...yeah parentheses, my version is python 2.7 and seems to need brackets
@@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
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
How do I set up visual studio code for Micropython?
Just install VSC, then add the Python extension from the extension manager. That's it!
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?
Pi Zero runs Python, not MicroPython. These tutorials don't apply.
Can cython be used in this manner? For obvious reasons of speeding up the code ofcourse
I always find it a bit strange to program a microcontroller using an interpreted language.
Can you use rshell on windows or what would you use to transfer files to the microcontroller from windows?
Yes, rshell works on Windows, some folks also use ampy and mpfshell.
Can i using nano or vim ?
Sure, to edit your code, but you still need a way to upload your code.
with rshell you can set the editor. i use nano.
And how do I insert the rshell in VSC now?
Excuse me that's all new to me. I am thankful for every answer.
If you have rshell installed, you just open a terminal window in VCS and run it from there.
Hi could u make a video on how to develop micropython using c/c++ please?
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?
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.
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.
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.
What is the command for the rshell to address the MicroPython board via the rshell?
With me ESP32 to COM6
Have you tried googling "rshell on com6" ?
@@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.
rshell --port COM6
hey in which software are you coding? how i will get it on windows
I'm using Visual Studio Code, it's free and available on all platforms.
How cool!!
Just wanted to slip this in. assembly language!!!!!!!!! docs.micropython.org/en/v1.9.3/pyboard/pyboard/tutorial/assembler.html
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 :-)
MicroPython rocks !
But man, VisualStudio ? NO.
Visual Studio Code rocks!
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.
How cool!!