Moving from Arduino to MicroPython - 10 Things you need to know.

  Рет қаралды 22,786

Kevin McAleer

Kevin McAleer

Күн бұрын

Here are 10 things you need to know if you are making the move from Arduino to MicroPython.
For more information, tutorials, parts and more visit:
www.smarsfan.com​
To join the membership at bronze, silver or gold levels, head over to
www.smarsfan.com/membership
Enjoy this video? Buy me a coffee!
www.buymeacoffee.com/kevinmca...
Chapters
00:00 Intro
00:16 1. Interpreted, not compiled
00:43 2. Libraries need to be on the device
01:17 3. Different Development Environments
02:22 4. Voltages
03:05 5. Void vs Def
04:42 6. Variable not strongly typed
06:59 7. Include vs import
08:46 8. Comments
10:25 9. Naming conventions - snake_case vs camel case
12:08 10. Indent to structure code vs squiggle brackets
14:30 11. Main loops vs while True
Music by Epidemic Sounds
www.epidemicsound.com/referra...
MicroPython Code on GitHub:
www.github.com/kevinmcaleer
#Pico​ #MicroPython​ #Robotics

Пікірлер: 51
@gaithouri
@gaithouri 2 жыл бұрын
hi ... cool .. music is too loud compared to the rest
@AirForceJuan747
@AirForceJuan747 Жыл бұрын
Careful with the sound levels. You have a very soft voice, and the music is too loud. Otherwise great video as usual.
@kevinmcaleer28
@kevinmcaleer28 Жыл бұрын
Thanks for the feedback Juan, I'll keep any background music really low in future videos
@olaf927
@olaf927 4 ай бұрын
Maybe you could do something with this video? I had to stop because since I have problems with my ears, I use headphones and the music is then definitivly too loud so I can't see this video, but I'm interessed in this topic. Woud be nice, if you can do something. Thank you
@ronnetgrazer362
@ronnetgrazer362 2 жыл бұрын
Very nice info for beginners like myself! One request: could you make your voice louder, and the music a LOT less loud? I had to operate the volume button (2 * 10)-1 times during this video, and the background music made it hard to concentrate at times. Full disclosure, I have attention deficit disorder. :)
@kevinmcaleer28
@kevinmcaleer28 2 жыл бұрын
Will do Ron. Sorry the audio was too low (and music too loud)!
@by9798
@by9798 2 жыл бұрын
@@kevinmcaleer28 Murdered my ears
@thweiser
@thweiser 2 жыл бұрын
Great Video!!! Nicely explained how to get from C to MicroPython (or the other way around). 👍👍👍
@vick3394
@vick3394 2 жыл бұрын
Thank you for summarizing.
@das250250
@das250250 9 ай бұрын
The music between points is wayyyy too loud for the vocal level . You might just review that difference on earphones . Ty for video.
@CoachMannyRodriguez
@CoachMannyRodriguez 2 жыл бұрын
Great video Kevin around moving arduino to micropython
@marcosvallasciani9800
@marcosvallasciani9800 2 жыл бұрын
Really helpful video, keep going
@OttoDIY
@OttoDIY 2 ай бұрын
best quick comparison video so far!
@mystery_1101
@mystery_1101 8 ай бұрын
I didn't know why we use import when we use from, thanks for clearing it up!
@unionse7en
@unionse7en Жыл бұрын
is there an IDE doesn't play obfuscating music?
@96Ash69
@96Ash69 2 жыл бұрын
Helpful af
@das250250
@das250250 9 ай бұрын
Do we know how much space micro python takes for mega as opposed to the C code we use as standard ? What situation might be an advantage to use micro python.
@jimcraig5727
@jimcraig5727 2 жыл бұрын
Great video Kevin. Learning Arduino first was very beneficial, in my case anyway. Understanding data types, functions, loops etc making it easier for me to get a grasp on Micropython. Unlike Arduino, I find Micropython tutorials in less abundance.
@kevinmcaleer28
@kevinmcaleer28 2 жыл бұрын
That’s great feedback Jim
@4122inc
@4122inc Жыл бұрын
Diving in the Python world (coming off Arduino IDE). Thank you for the video!
@charliesrccrawler9325
@charliesrccrawler9325 2 жыл бұрын
Awesome Thank you for this
@charliesrccrawler9325
@charliesrccrawler9325 2 жыл бұрын
I am from south Africa, i bought a arduino uno rev3 starter kit, but dont know really what to do with it
@TOMTOM-nh3nl
@TOMTOM-nh3nl Жыл бұрын
Thank YOu
@10Minutes_Of_Code
@10Minutes_Of_Code Жыл бұрын
Hi is it we can run the machine learning code on aurdino
@infelicitatis
@infelicitatis 2 жыл бұрын
i recently get stuck with arduinos a lot, maybe i will switch over to micro pythons, it seems like they are a little easier to debug cause you can interfere with the running programm.
@DavidCousins
@DavidCousins 2 жыл бұрын
Good video. Thanks
@kevinmcaleer28
@kevinmcaleer28 2 жыл бұрын
Thanks David!
@Multijuicee
@Multijuicee 2 жыл бұрын
I have tried Micropython several times with wemos but have had a lot of issues of the board hanging, not responding and in need to be flushed with a fresh python installation. Have you had similar experience at all? Maybe using C is more stable? Twice i have given up on projects due to this issue. I am using python in my day job so it would be a no brainer. I am on windows, not sure that has anything to do with it🤔 Better tooling in linux based systems?
@kevinmcaleer28
@kevinmcaleer28 2 жыл бұрын
It can be todo with the quality of the wemos boards - where did you get them from?
@Multijuicee
@Multijuicee 2 жыл бұрын
@@kevinmcaleer28 I got one from pi the hut after having issues with some ebay boards. The issue was the same though. Not much to go on i know 🙂 I can send you my github code if you find it an "interesting case" to look at when i get around to it again. *quite* sure its not a software issue. Basically just a green house sensor/watering project together with a Pi as MQTT broker
@Multijuicee
@Multijuicee 2 жыл бұрын
If i can also ask. What is your strategy powering a lot of small devises around the house? All on individual usb chargers? I like the idea of them running on battery for flexible placement.
@younessid437
@younessid437 2 жыл бұрын
Do I have to learn the Arduino language firstly or start learning micropython directly? which is better for beginners? is it good to program Arduino boards with Micropython ??
@kevinmcaleer28
@kevinmcaleer28 2 жыл бұрын
MicroPython is an easier language to learn for sure!
@younessid437
@younessid437 2 жыл бұрын
@@kevinmcaleer28 Thanks sir
@mwangicharles844
@mwangicharles844 Жыл бұрын
Please is there a difference between micropython and pyfirmata
@kevinmcaleer28
@kevinmcaleer28 Жыл бұрын
One is a programming language and one is a library is the quick answer - I cover this in the video
@maxcheung6269
@maxcheung6269 Жыл бұрын
Suggestion: Stop using music between transition. It is very annoying. good info in the video tho.
@tiberiu_nicolae
@tiberiu_nicolae 11 ай бұрын
Please please please make sure your voice is louder and the music is softer. I can't listen to this without blowing up my speakers with loud music
@MrTaken-tl4bw
@MrTaken-tl4bw Жыл бұрын
3:00 voltage depends on the board you using not the programming language
@kevinmcaleer28
@kevinmcaleer28 Жыл бұрын
True, but all MicroPython boards use the 3.3v pinouts, and none use 5v, whereas Arduino's Uno's are 5v - a beginner wouldn't know what.
@MrTaken-tl4bw
@MrTaken-tl4bw Жыл бұрын
@@kevinmcaleer28 by that logic esp32 esp8266 esp 01 raspberry pico are all 3.3v and can be programmed with arduino
@kevinmcaleer28
@kevinmcaleer28 Жыл бұрын
@@MrTaken-tl4bw that doesn’t make sense
@mohamedfarid7499
@mohamedfarid7499 2 жыл бұрын
micropython and circuitpython is more user friendly from c arduino
@AM-jw1lo
@AM-jw1lo Жыл бұрын
Realy, you think i look for videos for the music. If you must don't over ride you video with the music. but really a bad music loop. WHY?
@zyghom
@zyghom 2 жыл бұрын
totally bad music but super video with the comparisons the 9th thing has nothing to do with the languages I think ;-) btw coming to Python from Perl the indentation pisses me off completely ;-( it might be easier for newcomers but for Perl programmers... horrible ;-) There used to be Perl competitions: "how much you can do within 1 line of code" - marvellous what Perl allowed to do in 1 line - full programs were there
@kevinmcaleer28
@kevinmcaleer28 2 жыл бұрын
Thanks for the feedback. I mentioned number 9 as Python does have Python Enhancement Proposals or PEPs, and PEP 8 is all about style guides www.python.org/dev/peps/pep-0008/
@zyghom
@zyghom 2 жыл бұрын
@@kevinmcaleer28 it is like saying: 4-beds apartment is only for families with 3 kids -you might or might not - up to you ;)
@pellcorp
@pellcorp 7 ай бұрын
Music makes me sad 😢
@critical_always
@critical_always Жыл бұрын
I really don't like it that python is fragmenting the dev community. It has become impossible to search for solutions online because it may be C or python. Python is slower. It's a micro controller. Learn C!
@krzysztofzemski291
@krzysztofzemski291 Жыл бұрын
This could be useful bunch of tips but you have ruined it with back ground music.
@user-um3ui1gu9t
@user-um3ui1gu9t Жыл бұрын
STOP that awfull music !!!!!
Pico Starter Kit Unboxing and Review
1:14:08
Kevin McAleer
Рет қаралды 1,9 М.
Learn MicroPython - Part 1 Controlling the flow
22:35
Kevin McAleer
Рет қаралды 13 М.
Conforto para a barriga de grávida 🤔💡
00:10
Polar em português
Рет қаралды 88 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 2,8 МЛН
Когда на улице Маябрь 😈 #марьяна #шортс
00:17
Choosing a Board for CircuitPython   A Few Important Considerations
18:10
John Gallaugher
Рет қаралды 2,5 М.
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Рет қаралды 282 М.
Micropython Threads - Use Both Cores, on Raspberry Pi Pico and ESP32
44:21
Introduction to ESP32 - Getting Started
47:57
DroneBot Workshop
Рет қаралды 1,5 МЛН
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Рет қаралды 280 М.
КТО ЭТО😱
0:41
МЯТНАЯ ФАНТА
Рет қаралды 1,5 МЛН
ПЕЙ МОЛОКО КАК ФОКУСНИК
0:37
Masomka
Рет қаралды 9 МЛН
Женщина-полицейский СПАСЛА пациентку от МЕДСЕСТРЫ 😱 #shorts
1:00
Лаборатория Разрушителя
Рет қаралды 17 МЛН
Jack drinks Yujiro’s protein! 👹 @GFuelEnergy #yujirohanma
0:42
The Logan Chitwood
Рет қаралды 134 МЛН