Тёмный

000 - ESP32 MicroPython: How to Get Started with MicroPython 

TechToTinker
Подписаться 9 тыс.
Просмотров 114 тыс.
50% 1

In this video we will learn how to install Thonny Python IDE for MicroPython learning and development. I will also guide you step-by-step on how to flash a MicroPython firmware to ESP32 development.
For more details, visit my blog post at:
techtotinker.com/2020/09/05/0...
Write your comments and suggestions in the comment box provided.
If you enjoy this video, please LIKE and SHARE this to your friends.
And please do SUBSCRIBE.
Thank you and stay safe everyone.
#TechToTinker

Наука

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 123   
@NesbyBone
@NesbyBone 3 года назад
Great intro on how to get started with MicroPython. Subscribed and eager to see more! Thank you so much!
@TechToTinker
@TechToTinker 3 года назад
Thank you @NesbyBone and you're welcome.
@TheJavaSync
@TheJavaSync 2 года назад
True
@tybo759
@tybo759 Год назад
Just wanted to say thanks for the instructions. I am not a programmer but I purchased some esp32 wroom boards for projects and used this video to install MicroPython using windows 11. There were some differences involved but I finally got it to work! Even had the LED turn on and off just like in the video! Now Im off to learn programming during my retirement!
@philnelson2364
@philnelson2364 3 года назад
This is the clearest video on installing micropython so far. I am an app engineer since 1976 but I wrote assembler and designed my own programming languages. I have been out of programming for 19 years and lost a lot of updates to the microcontroller world and could never understand C, C++ etc. This makes it easy.
@TechToTinker
@TechToTinker 3 года назад
@phil nelson, glad that you liked it. I experience same problem as you, I learned assembly language for PIC microcontrollers from school then learn C and VHDL in work but due to few circumstances, I change my career but I am still fascinated with controlling the LED to blink :D. Kidding aside, I decided to purchased PIC learning board only to found out that Arduino are more popular and commonly use by tinkerers. And my knowledge is a bit rusted. Anyways, I am now back playing with electronics. I would to hear from you soon. Happy tinkering. Thanks
@philnelson2364
@philnelson2364 3 года назад
@@TechToTinker It's interesting that you mention the PIC controller. Back in 1995, I started to work for Autostart, a company that produced remote car starters (start your car by remote control.) At that time, the controller used discrete components like the 555 timer and a few others. This was the 810 model. The company had one employee and the owner and had sold 4000 units the year I was hired as a contractor. He had a company produce a controller using the Motorola controller but because 1995 was the year that Motorola stopped selling their controllers and used them for their own cell phones which started to gain in popularity. I was asked to research another controller and he showed me the specs for the Microchip controller (I can't remember the model at this time) so I developed a plug-in board to use the Microchip PIC to replace the Motorola based board and from there, I started to develop more products based on Microchip's controllers. That year, we sold 8000 units, the next was 13000 and it grew till 10 years later, we were selling 250000 remote car starters and alarms. At one point, the CEO of Microchip came to Montreal from Arizona to visit us to ask if there was anything we needed from them to ask them. We were told that Autostart was the largest user of Microchip on the east coast of North America. The only other larger user of the PIC was General Motors. When I started using Microchip, the only language available was the assembler (they later came out with a C language, which I couldn't understand) so I developed a BASIC cross compiler which generated assembler code. I could mix basic and assembler code in the same program without using an instruction to switch between each. Those were the days. Oh yes... Another point, I did succeed in installing MicroPython on the ESP32 board. One of the instructions was different from one of the download sources (I believe it was for the USB driver) but I managed to figure it all out and, it was un-necessary since the Arduino IDE already had it for the ESP32 board.
@TechToTinker
@TechToTinker 3 года назад
@@philnelson2364 wow that's a lot of experience especially for the assembly language. I would like to encourage you, maybe you can create assembly language tutorials for those who want to learn it. I am glad you make some progress in MicroPython. Cheers.
@slamanaim1837
@slamanaim1837 2 года назад
​@@TechToTinker hi please after this video if want to work with arduino ide i want to know if i must do the same steps with my esp32 nodemcu or no because already done with thonny and already my esp32 is flashed.... thx a loy
@michaelbosela3998
@michaelbosela3998 3 года назад
Thank you for your tutorial. I’ve just started learning Arduino IDE programming, good to know there are individuals like yourself to help beginners like myself. Will save this MicroPython start-up tutorial for future reference.
@TechToTinker
@TechToTinker 3 года назад
Hi Michael, thank you for the kind words. And welcome to Arduino world it's fun to learn it. Cheers
@Ry3Bre4d
@Ry3Bre4d 7 месяцев назад
This is a great tutorial! Even though some things have changed since this video was uploaded, I was able to figure out how to flash the firmware.. The biggest change that I noticed was instead of open diaglog, there is a link to install.
@javierpasetti2947
@javierpasetti2947 3 года назад
Perfect video, clear, simple and right to the point. Congrats from Argentina!!!
@TechToTinker
@TechToTinker 3 года назад
@Javier Pasetti, Im glad that you find it useful :) and thank you.
@tamhenry
@tamhenry Год назад
Very clear instruction, I like it and will continue to watch other videos on MicroPython👍
@MrBobWareham
@MrBobWareham 10 месяцев назад
Very nice intro I have joined your channel to see more as I want to make a temperature controller, Thanks Bob in the UK
@dsbohra
@dsbohra Год назад
Wonderful explanation, clear, concise and informative.
@mytechnotalent
@mytechnotalent 3 года назад
I could not be happier to see MP series! Will you be working with the file system on ESP32 and BLE examples? Please do a WHOLE series on MicroPython please.
@TechToTinker
@TechToTinker 3 года назад
Hi Kevin, definitely I will create MicroPython series of tutorial. And noted for your request. Thank you.
@mytechnotalent
@mytechnotalent 3 года назад
@@TechToTinker Thank you the MORE the better this is SUCH AN UNDERTAUGHT skill this would put you as the PREMIER trainer in MicroPython! I would make 100 vids on it over time make it the PREMIER MP site!
@TechToTinker
@TechToTinker 3 года назад
Good idea Kevin, I will look on that. Thank you for the suggestion
@LastEventHorizon
@LastEventHorizon Год назад
Great tutorial! Thank you so much bro! 👍
@hfreyO.o
@hfreyO.o 3 месяца назад
Thank you for sharing the detailed steps.
@miguelsolervicedo9677
@miguelsolervicedo9677 2 года назад
Clear and concise, great job!
@TechToTinker
@TechToTinker 2 года назад
Hi Miguel, glad you liked it. Thanks
@automatinger
@automatinger Год назад
thanks, that helped!
@hobokengar
@hobokengar Год назад
That was excellent.
@williamdori3601
@williamdori3601 Год назад
Good man. God bless you
@vaibhavkhatri3435
@vaibhavkhatri3435 2 года назад
Very well explained sir! Great tutorial man!! :) :)
@TechToTinker
@TechToTinker 2 года назад
Glad it helped! Thanks.
@LayneHarris
@LayneHarris 2 года назад
Very helpful. Appreciate your effort here.
@TechToTinker
@TechToTinker 2 года назад
Glad it was helpful! Thank you.
@GoodMan-z1x
@GoodMan-z1x Месяц назад
One of the best tutorials.Thanks 👏
@TechToTinker
@TechToTinker 14 дней назад
Glad it was helpful!
@user-fe1nr3ws1z
@user-fe1nr3ws1z 10 месяцев назад
Great informative tutorial
@tenzinstalder1104
@tenzinstalder1104 3 года назад
very good! Thanks!
@TechToTinker
@TechToTinker 3 года назад
Thank you too!
@ProfessorMarcosCarnevali
@ProfessorMarcosCarnevali 3 года назад
Very good!!! Muito bom!!! Parabéns!!!
@TechToTinker
@TechToTinker 3 года назад
@Professor Marcos Carnevali, thank you.
@anokhautomation4453
@anokhautomation4453 3 года назад
Hi dear. I am ramesh here from dubai.also an electronic hobbyist. Very nice tutorial you have done. I am already using the thonny too. This is the best ide i found what are the available ide if compare with mu, upycraft. Continue posting such helpful project tutorials. Tru to do some IOT projects.
@TechToTinker
@TechToTinker 3 года назад
Hi Ramesh, I am happy to know you. Glad that you like my tutorials. I agree with you about the Thonny Python IDE, it has almost all the necessary tools for building MicroPython codes. But of course there are other more advance IDE like VSCode. And thank you for your suggestions, noted with that.
@makifbuz
@makifbuz 2 года назад
Great Vids!
@TechToTinker
@TechToTinker 2 года назад
Glad you like them!
@nikolaykostishen6402
@nikolaykostishen6402 Год назад
Thanks!
@sukhbirrana9779
@sukhbirrana9779 3 года назад
Thanks for excellent work
@TechToTinker
@TechToTinker 3 года назад
My pleasure. Thank you.
@REXONCROSS
@REXONCROSS 9 месяцев назад
Best channel ever
@ricardoaravena2068
@ricardoaravena2068 2 года назад
hi dear, what bout UART interrupt? do you have implement it? regards, Ricardo.
@mehdikarimpoor9401
@mehdikarimpoor9401 2 года назад
Hello Ahmed with respect I created a device control program for thonyide for esp32 devkit using station and access point modes. I send commands using the udp connection from the mobile application and I also control the devices every three seconds of the application using an api. I'm worried that after making it, when the device is used, there will be a problem in the program and it will not work properly. Is it possible to trust esp32 and micropython language and build a product with many customers?
@pipinopal
@pipinopal 2 года назад
Beutyfull greetings From italy ✌️
@venkateshm8479
@venkateshm8479 3 года назад
It's awesome start-up.... Make a home automation with device status feedback it would be awesome..
@TechToTinker
@TechToTinker 3 года назад
Noted on this @Venkatesh
@briancooper2737
@briancooper2737 3 года назад
Very well done video. I would have liked to see you use the actual IDE part not just the command line. Other than that you did an excellent job explaining everything in very nice detail.
@TechToTinker
@TechToTinker 3 года назад
@Brian Cooper, the command line or more better to call as REPL is best to use when explaining the concept. In anyways, you can upload your program to ESP and save it as main.py. That way, your program will run after the reset or power ON. By the way, thank you for the kind words :). Cheers
@briancooper2737
@briancooper2737 3 года назад
@@TechToTinker I was playing with the IDE part and noticed that it is it's own thing. Everything that I had done in the REPL did not apply there. I Just wasn't sure how it worked until I played with it. It makes more sense now. BTW: thanks for helping me get it going in the first place.
@TechToTinker
@TechToTinker 3 года назад
@@briancooper2737 wow congratulations :). Keep it up bro. I think we can say we know how to ride a bike after actually riding a bike. I am happy for your achievement, thank you.
@jawadmezaal5192
@jawadmezaal5192 Год назад
I got this message in Thonny - wait until it completes current work; - use Ctrl+C to interrupt current work; - reset the device and try again; - check connection properties; - make sure the device has suitable MicroPython / CircuitPython / firmware; - make sure the device is not in bootloader mode.
@manwailam9313
@manwailam9313 Год назад
Thanks
@edinetgrunhed6000
@edinetgrunhed6000 10 месяцев назад
perfect!
@BonJunCuevas
@BonJunCuevas Месяц назад
salamat po sa video
@TechToTinker
@TechToTinker 14 дней назад
you are welcome. Cheers
@TheJavaSync
@TheJavaSync 2 года назад
If my esp32 detected on my device manager (I don't sure when I installed it, I already try blink it with PIO/VScode & it worked) I don't need reinstall cp1202 USB serial, right?
@hamidmandi5862
@hamidmandi5862 3 года назад
Hi, What an awesome video! I have installed Thonny on Linux as well as Esptool (pip3) and Micropython via command line. The problem is I can not find and add esptool and micropython into Thonny. Do I need to do anythin else?
@TechToTinker
@TechToTinker 3 года назад
Hi @hAMid MAndi, I am not familiar with Linux environment but I believe the steps is very similar with Windows. You may observe that I installed the esptool plugin within Thonny, maybe you need to copy that steps. Cheers, George Bantique, #TechToTinker
@slamanaim1837
@slamanaim1837 2 года назад
very nice you are a good teacher i want to ask you if after this video and after working with thonny can i use aruino ide with my esp32 nodemcu or i have to do the same steps with arduino ide :flash esp32 ,install driver.... thx a lot again
@TechToTinker
@TechToTinker 2 года назад
Hi, thank you for the kind words. After you flash the esp32 with micropython and you decided to use it with Arduino IDE, you just need to upload a program. Arduino IDE will take care of flashing it with the default firmware.
@slamanaim1837
@slamanaim1837 2 года назад
@@TechToTinker thx but after using arduino ide and i wand to return to thonny i must flash esp32 again yes ? thx
@tyres9
@tyres9 3 года назад
Thanks sir.
@TechToTinker
@TechToTinker 3 года назад
Most welcome. Thanks.
@jumbo999614
@jumbo999614 3 года назад
11:22 My esp32 board requires BOOT and EN to be pressed during flashing. I thought my new board got damaged during shipping from manufacturer.
@TechToTinker
@TechToTinker 3 года назад
@Pal Sih, yes correct most of old version of ESP32 needs BOOT button in order to flash it. Newer versions has been modified a little to take that.
@zoyamchuang2806
@zoyamchuang2806 3 года назад
Thanks a lot to learn from your channel. Very useful and helpful. BTW, could demo some BLE project to link App inventor 2 or kinds of IoT projects. Hope this wish will come true
@TechToTinker
@TechToTinker 3 года назад
@Zoyam Chuang, glad you like it. I will take note of your suggestion. You may also check other MicroPython videos. Thank you.
@zoyamchuang2806
@zoyamchuang2806 3 года назад
@@TechToTinker I also written a HackMD note hackmd.io/x3cd61mySQyJ9Op5iN3jeA?view to teach my club member to use esp32 with micropython
@bhaveshbhanushali5633
@bhaveshbhanushali5633 Год назад
hello sir your video about micro pythen is verry usefull big thums up👍 for that i have quastion can we creat hex. file using ' micropythen ' 'thonypythen' ?
@raymondzhao9557
@raymondzhao9557 Год назад
cooooool
@anokhautomation4453
@anokhautomation4453 3 года назад
Can you guide me where we can find the examples in micropython?? Same like in arduino example libraries??
@TechToTinker
@TechToTinker 3 года назад
Hi Rameshkumar, you could find a link in the video description. Click that and that should bring you to my blog post. For your convenience, here it is: techtotinker.blogspot.com/2020/09/micropython-tutorial-how-to-get-started.html
@anokhautomation4453
@anokhautomation4453 3 года назад
Thanks for your reply. I have already visited your blog spot. My question was, is there is an example library available in thonny? Same like in arduino IDE??
@gjkbaker1
@gjkbaker1 2 года назад
Great tutorial. However, I flashed two ESP32s(Adafruit #5323 ). Thonny says it was successful, but the COM port recognization is oscillationing back and forth causing a USB beep. Any thoughts?
@TechToTinker
@TechToTinker 2 года назад
Your problem could be in the USB cable or in the USB port.
@afrakes4510
@afrakes4510 Год назад
dude? is that windows 95 ??? how has your computer not exploded yet ??? nice tutorial!
@shubhamtelang9068
@shubhamtelang9068 3 года назад
Will you make a video on load cell(weight sensor)?
@TechToTinker
@TechToTinker 3 года назад
Yes, in the future. Cheers.
@shubhamtelang9068
@shubhamtelang9068 3 года назад
@@TechToTinker thanks👍. I think it is HX711.
@TechToTinker
@TechToTinker 3 года назад
Yes you are right. Thanks.
@amsouzapa
@amsouzapa 21 день назад
What is the name of that download tool you used? great video!
@TechToTinker
@TechToTinker 14 дней назад
Which one?
@hopi9927
@hopi9927 3 года назад
Dear ,can you explain me how to flash micropython on esp8266 by thonny on raspberry pi3 .and why is esp8266 port not detected on raspberry pi3 .thank for you help !
@TechToTinker
@TechToTinker 3 года назад
Hi @Ho Pi, First, make sure you are using a USB data cable for ESP8266 not charging USB cable. Data cable has 4 or 5 wires inside while charging cable has 2 for the power and ground. After that, using the terminal app inside the Raspberry Pi, type lsusb and you should found [CP210x family] which is the USB for ESP8266. After that, you may need to update and upgrade your Raspberry Pi OS as follows: 1. Using the terminal type "sudo apt update" 2. Using the terminal type "sudo apt full-upgrade" This will need internet connection and will take time. After that, verify your Thonny IDE has version 3.2.6 by opening Thonny IDE, click Help menu, and select About Thonny. Now in order to use Thonny IDE in Raspberry Pi, set the MicroPython Interpreter by clicking Tools menu, select Options..., under the Interpreter tab select Micropython(ESP8266) and under select the port of ESP8266. Hope this helps you to keep going. Yours truly, - George Bantique | tech.to.tinker@gmail.com
@drTERRRORRR
@drTERRRORRR 2 года назад
Me: "How the fuck do I learn this shit??" Some random Indian Hero on YT: "Hello,my fren!" Don't you just love it?
@cedriceveleigh
@cedriceveleigh 3 года назад
When I install the CP210x driver, and I plug in my ESP32 by USB, there are no COM ports in my Device Manager. I'm using Windows 10 with a Dell XPS 13 9310 laptop. Can someone help?
@TechToTinker
@TechToTinker 3 года назад
@Cedric Eveleigh, are you able to successfully installed the driver? You might also want to try the CP210x driver that solves my problem before with USB driver problem. By the way, if your ESP32 is totally not detected by the computer: check the following: 1. Make sure that you are using a data type USB cable (not the USB cables that specifically designed for charging on). 2. Your ESP32 is damaged.
@cedriceveleigh
@cedriceveleigh 3 года назад
@@TechToTinker Your suggestion #1 solved my issue. I tried another cable and the Silicon Labs COM port showed up in my device manager, just like in your video. Thanks!
@TechToTinker
@TechToTinker 3 года назад
@@cedriceveleigh that's great. I hope to hear from you soon about your progress. Cheers
@michaelnoardo3315
@michaelnoardo3315 2 года назад
i still like vstudio because Thonny does not help with syntax , but i cannot make vs talk to my esp i tried everything it is instable
@TechToTinker
@TechToTinker 2 года назад
If I were you, I would learn the basics of Python syntax first then stick in using Thonny IDE. Thonny is easier and simpler to use and it works great for MicroPython. I am able to use VSCode for MicroPython before but still comes back to Thonny IDE.
@explorerofinfinity722
@explorerofinfinity722 2 года назад
Thanks for the tutorial. But using Arduino IDE we can burn the code to ESP32, but here we can't. If we close the Thonny app it will stop blinking.
@TechToTinker
@TechToTinker 2 года назад
Of course you can. Just save the code as main.py in your Micropython Device directory by clicking the File menu, select Save As, select MicroPython Device, save it as main.py, and finally hit OK button.
@explorerofinfinity722
@explorerofinfinity722 2 года назад
@@TechToTinker Ok yes.. Thank you.
@Simplified-Script-Development
@Simplified-Script-Development 9 месяцев назад
bro you website got a new look but, the links aren't working(returning 404)
@venkateshm8479
@venkateshm8479 3 года назад
Hiii.... Currently l have a esp8266 board How can I start with ??
@TechToTinker
@TechToTinker 3 года назад
Hello @Venkatesh, the steps is exactly the same except for step #2. You just need to download ESP8266 firmware instead.
@yojithkr17
@yojithkr17 Год назад
Sir how to upload micropython code to ESP32
@troy5767
@troy5767 2 года назад
hi! is it possible to implement sqlite with micropython?
@TechToTinker
@TechToTinker 2 года назад
SQL uses large chunk of resources. Even SQLLite won't fit inside MicroPython. There are other ways to achieve storing data. You can use an sd card or write it on Micropython root directory.
@troy5767
@troy5767 2 года назад
@@TechToTinker thank you!
@TechToTinker
@TechToTinker 2 года назад
@@troy5767 you are welcome. Cheers
@alech3630
@alech3630 2 года назад
Как установить модуль machine? Pip ругается на pycrypto и рушит всю установку
@TechToTinker
@TechToTinker 2 года назад
Install first the Micropython firmware inside the ESP32. Carefully follow this video for that: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-elBtWZ_fOZU.html
@nicolarusso5230
@nicolarusso5230 3 года назад
Hello!... I'm trying in Thonny IDE to use these same fleshing steps on ESP32-cam with MB programmer (makeradvisor.com/tools/esp32-cam-mb-usb-programmer/). I flashed correctly this firmware 'esp32-idf4-20210202-v1.14.bin' but in shell section Thonny tell me that: ---------------------------------------------------------------------------------- Device is busy or does not respond. Your options: - wait until it completes current work; - use Ctrl+C to interrupt current work; - use Stop/Restart to interrupt more and enter REPL. ------------------------------------------------------------------------------------ Viceversa if I open the serial monitor in Arduino IDE, I have: -------------------------------------------- MicroPython v1.14 on 2021-02-02; ESP32 module with ESP32 Type "help()" for more information. >>> ------------------------------------------ and I can enable or disable the flash led for example with single command. But if I can't write a script in Thonny IDE because the device is busy. Please, could you give me some suggestions? thanks in advance.
@TechToTinker
@TechToTinker 3 года назад
@Nicola Russo, it happens to me when I flashed a program with infinite loop. Try reflashing it again with new MicroPython firmware.
@nicolarusso5230
@nicolarusso5230 3 года назад
​@@TechToTinker thanks for you reply. I tried reflash ESP32-cam with a previous firmware (esp32-idf4-20200902-v1.13.bin), but nothing has changed with the following interpreter settings: _______________________________________________ MicroPython (ESP32) Port or WebREPL USB-SERIAL CH340 (COM6) _______________________________________________ I tried also to change IDE using Visual Studio Code with command 'ampy --port COM6 run .\blink.py' for example, and the board seems not to respond. The only sign of life is present in Arduino IDE if I open the serial monitor: MicroPython v1.13 on 2020-09-02; ESP32 module with ESP32 Type "help()" for more information. >>> The same tests works on board ESP32. There seems to be some wrong configuration for board ESP32-cam in Thonny IDE. What do you think about this issue?
@occamraiser
@occamraiser 4 месяца назад
I am genuinely sorry - but being a Western European I have been taught by innumerable fraudulent phonecalls from India to distrust this accent. I can't listen to it with any sense of credibility after every single person I hear with that same accent has been trying to steal from me. My loss I suppose - but until India sorts out its telephone criminals, India's loss too.
@TechToTinker
@TechToTinker 4 месяца назад
I am a Filipino (a citizen of Philippines). Cheers.
@vladimirastrelin1719
@vladimirastrelin1719 4 месяца назад
Thanks, George! Great Tutorial and a wonderful start for beginners.
@TechToTinker
@TechToTinker 4 месяца назад
Glad you enjoyed it!
Далее
001 - ESP32 MicroPython: What is MicroPython
4:41
Просмотров 19 тыс.
Run your own AI (but private)
22:13
Просмотров 1,3 млн
ЮТУБ БЛОКИРУЮТ?
01:52
Просмотров 820 тыс.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
Arduino To ESP32: How to Get Started!
9:26
Просмотров 274 тыс.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Writing fast and efficient MicroPython
31:42
Просмотров 68 тыс.
TailsOS Guide For The Ultra Paranoid
35:32
Просмотров 414 тыс.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
JPEG is Dying - And that's a bad thing
8:09
Просмотров 73 тыс.
Hacker's Guide to UART Root Shells
17:40
Просмотров 473 тыс.
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 7 млн