Тёмный

MicroPython #3 - Fundamentals 

Unexpected Maker
Подписаться 25 тыс.
Просмотров 28 тыс.
50% 1

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

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@chrisw1462
@chrisw1462 3 года назад
Finally! A tutorial by someone that knows how to teach, stay on topic, AND pronounce tuple correctly! :-)
@Rocotoconchira
@Rocotoconchira 3 года назад
Este video nos dice lo importante que es hablar y entender el idioma del tio SAM
@BenDover-pq8xj
@BenDover-pq8xj 3 года назад
Fantastic, short, sweet, straight to the point - more please - just started learning uPython this week and glad I 'stumbled' on this vid.
@HariWiguna
@HariWiguna 5 лет назад
Thanks for infecting me with the MicroPython virus. I've been having fun playing with MicroPython on my ESP32. However, I think a paradigm shift needs to happen in my brain before I could write good Python code instead of just translating C into Python. You're doing a great job introducing me to important Python concepts unavailable to us in C. Thank you!
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Cheers Hari!
@andymouse
@andymouse 5 лет назад
Nice bite size chunk to take away and chew for a while, I'm impressed at just how "readable" this language is and I think your format is gonna do the trick...they say it takes a couple or three episodes to get into something, well based on your three, I'm in.....cheers!
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Awesome to hear you are sticking with it mate!
@paulrautenbach
@paulrautenbach 5 лет назад
Good length and depth for this content. Thanks.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Thanks Paul, I tried hard to get it shorter, but didn't want to leave any of this content out. Glad to hear you thought it was a good length after all.
@deathshaker0026
@deathshaker0026 5 лет назад
Thanks Mate! This is the first video that has opened me up to MicroPython.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
You mean you didn't watch the first 2 episodes? ;) Awesome to hear you keeping an open mind about MicroPython!
@deathshaker0026
@deathshaker0026 5 лет назад
@@UnexpectedMaker I watched the first episode and part of the second episode. This video has warmed me up to it.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Excellent! Now the pressure's on me to keep you interested!
@deathshaker0026
@deathshaker0026 5 лет назад
@@UnexpectedMaker It's one way to keep you on your toes! ;)
@scrubberfred
@scrubberfred 5 лет назад
@@UnexpectedMaker its also got me hooked i just ordered a esp32 to start to play.
@charlesje1966
@charlesje1966 Год назад
I recently switched to an Adafruit micropython board and discovered there is a version of Numpy available for micropython Ulab > Numpy. My non-python boards are basically obsolete now. The great advantage of a pyboard is that no IDE is required. You just edit the main code file on the board directly like it's on a usb dongle.
@UnexpectedMaker
@UnexpectedMaker Год назад
That is called CircuitPython - Not MicroPython. CircuitPython is forked from MicroPython, sure, but there are fundamental differences with the hardware level syntax, access and functionality. there's also a difference in what's included at a Python level. For instance, CircuitPython doesn't have Thread support. Both are valid versions of "Python for Embedded Hardware" - but it would be wrong to confuse MicroPython and CircuitPython as they are not the same.
@meagrebones
@meagrebones 5 лет назад
Great video. I really enjoyed it, although I'm still waiting for the 50 min "Director's Cut". Thanks.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Ha! Not going to happen... took me almost 4 hours of cutting to get ti down below 20mins ;)
@vk3fbab
@vk3fbab 5 лет назад
With scoping in Python you can read variable from within a child but you can only change it if you use the global keyword. Whereas C or C++ you could change it. So Python makes globals accidental change safe by default. Python also allows you to declare functions inside functions which limits their calling scope. The only thing I miss is the C preprocessor. Small price to pay. The more I use Python the more I like it. Haven't tried it on an ESP yet. I'm sure that will happen.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Very good point that globals can be read, just not written to without stating they are global. I should have mentioned this!
@antlister
@antlister 5 лет назад
I like how this series is shaping up. You have a new subscriber! Keep up the great work. It's only a shame you're not using PyCharm to flash a PyBoard D series instead :-)
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Thanks Anthony. The PyBoard D is a fantastic board, but not as accessible to most people like the ESP32 is.
@TheDefpom
@TheDefpom 5 лет назад
very interesting... makes me feel that my coding skills are so last year.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Hahaha, I always feel like my coding skills are 1990's at best ;)
@ratmadness4858
@ratmadness4858 5 лет назад
thanks again!
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
You're welcome again :-)
@weerobot
@weerobot 3 года назад
Pythonic...lol....A very clean language...
@johndraper8197
@johndraper8197 5 лет назад
Looking forward to many more of these MicroPython tutorials. Since you are using an ESP32 will you be including how to access core 0 and core 1 separately. I have seen several "Arduino" based methods for this but cannot find any MicroPython methods.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Using the second core in MP is not currently supported. That said, the second core is enabled in MP and available to FreeRTOS, so C modules in MP can use them.
@johndraper8197
@johndraper8197 5 лет назад
@@UnexpectedMaker Thanks for this keep up the great work.
@tonyhodgson6744
@tonyhodgson6744 Год назад
Great tutorial, im new to python, using it in pi pico and esp32. Ive got an issue extracting numbers from strings. Non of the sample code ive found works. Using import re, and re.findall brings up error object has no attribute findall. Can you do a tutorial on string functions please.
@MikeNewham
@MikeNewham 5 лет назад
Appreciate your tutorials. How about some μ-python code controlling a wee robot from an ESP32?
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Thanks Michael. controlling a robot is really out of scope for this tutorial series, sorry.
@AJB2K3
@AJB2K3 5 лет назад
So that is how you could implement a text based adventure game
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
Good string and collection support makes creating text based adventures pretty easy :-)
@amiral3187
@amiral3187 4 года назад
Thank you for this well explained tutorial , I've a question please....i'm receiving a stream of data (String,Integers and float) through a box that contain many sensors, how can i construct a packet that contains all those data ( in a specific order) from the receiving Pin of the ESP32 ? I'll transmit this Packet through wireless connection
@UnexpectedMaker
@UnexpectedMaker 4 года назад
If you need it in a specific format and order, you'd put all of the sensor data into a dictionary or list and convert JSON and send it like that so you can unencoded it on the server side and do what you want with it.
@amiral3187
@amiral3187 4 года назад
@@UnexpectedMaker Thank you for the response, I'll try what you said but why do I've to convert the bytes to JSON in order to transmit it?
@UnexpectedMaker
@UnexpectedMaker 4 года назад
You said you needed data for sensors (multiple) with all data in a specific order before sending.Your requirements are super vague, so all I can take from it is that to get the data in a specific order to be sent, it needs to be packed into some container. This really isn't the right forum to asking Q's like this sorry. Maybe join my discord and ask there with a lot more details?
@drewrogge4798
@drewrogge4798 5 лет назад
FWIW, "is" is not the same as ==. See here: www.geeksforgeeks.org/difference-operator-python/ for an explanation.
@UnexpectedMaker
@UnexpectedMaker 5 лет назад
You are 100% correct. In the case of int comparison, it works just like ==, but comparing strings and objects etc with unique id's, it works quite differently. I mentioned during the video I was not going deep in the features I was showcasing, and I'm planning on expanding on stuff like this over time :-)
@anlpereira
@anlpereira 3 года назад
Hi, Great Viedo. I've tried to compile te Microlad package inside the ESP32 but without success. Can you show us how to compile a micropython library using github files? Thanks a lot
@ayushsharma5989
@ayushsharma5989 Год назад
Brother can you tell me how can i save code in esp32(python)
@revanthmogalluri3272
@revanthmogalluri3272 5 лет назад
how to add esp32 board to visual studio
@MAKERDEMY
@MAKERDEMY 4 года назад
Hey, I noticed that you are interested in MicroPython. We just released a video on MicroPython. Thought you'd want to check it out. Thanks 👇👇👇 utm.io/unoj
@levien7597
@levien7597 4 года назад
Fill complete screen please and speak slowly
Далее
MicroPython #4 - PWM, ADC, Timers & Interrupts
13:52
Просмотров 36 тыс.
Using MicroPython in the wild
31:55
Просмотров 35 тыс.
Learn MicroPython - Part 3 Loops and Operators
20:46
Просмотров 4,3 тыс.
Writing fast and efficient MicroPython
31:42
Просмотров 68 тыс.
MicroPython #1 - Lets Get Started
12:35
Просмотров 143 тыс.