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

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 60

  • @chipwilliams1640
    @chipwilliams1640 25 днів тому +1

    Big thing not mentioned is that ‘C’ code is character based and Python is line based. In ‘C’ then you have to terminate your statement with either a ‘;’ or with a compound statement in the curly braces “{}”. ‘C’ doesn’t care about the line structure. In fact your whole program could be on one line if you want (would be ugly but it works). In Python the end of a statement is implied at the end of a line. Not an Arduino vs MicroPython thing just syntax of the languages.

  • @AirForceJuan747
    @AirForceJuan747 Рік тому +19

    Careful with the sound levels. You have a very soft voice, and the music is too loud. Otherwise great video as usual.

    • @kevinmcaleer28
      @kevinmcaleer28  Рік тому +2

      Thanks for the feedback Juan, I'll keep any background music really low in future videos

    • @olaf927
      @olaf927 10 місяців тому +2

      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

  • @electron46
    @electron46 Місяць тому +1

    Kevin, you sound like a very intelligent person with great content in your videos, so what part of you thinks that adding music to this kind of material is appropriate. Music requires another thread of distraction to be generated in one's brain thus reducing our ability to focus on your voice and your code. I'll visit Spotify for my music. Cheers.

  • @ronnetgrazer362
    @ronnetgrazer362 3 роки тому +10

    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  3 роки тому +1

      Will do Ron. Sorry the audio was too low (and music too loud)!

  • @gaithouri
    @gaithouri 2 роки тому +17

    hi ... cool .. music is too loud compared to the rest

    • @kevinmcaleer28
      @kevinmcaleer28  Місяць тому +2

      I made this video over 3 years ago and didn’t have a lot of video editing skills - everyone has to start somewhere; sorry to disappoint

    • @gaithouri
      @gaithouri Місяць тому +1

      @@kevinmcaleer28 will haunt you for ever... 😂😂😂 thnx for all the tutorials .. great stuff

  • @mystery_1101
    @mystery_1101 Рік тому

    I didn't know why we use import when we use from, thanks for clearing it up!

  • @thweiser
    @thweiser 3 роки тому +4

    Great Video!!! Nicely explained how to get from C to MicroPython (or the other way around). 👍👍👍

  • @OttoDIY
    @OttoDIY 9 місяців тому

    best quick comparison video so far!

  • @CoachMannyRodriguez
    @CoachMannyRodriguez 3 роки тому +1

    Great video Kevin around moving arduino to micropython

  • @nandithamarar2759
    @nandithamarar2759 Місяць тому

    One note: MicroPython (For Thonny, I don't know about other IDEs) inserts 4 spaces every time you press ':' at the end of a line

  • @4122inc
    @4122inc 2 роки тому

    Diving in the Python world (coming off Arduino IDE). Thank you for the video!

  • @jimcraig5727
    @jimcraig5727 2 роки тому +3

    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.

  • @vick3394
    @vick3394 3 роки тому

    Thank you for summarizing.

  • @chon2095
    @chon2095 6 місяців тому +1

    I don't know if it's worth it to learn micro python. Arduino C seems more intuitive to me on a certain level. Being an educator some of the syntax in Arduino C sounds more appropriate like def int include plus I like the idea of the library manager when working with different products and sensors etc. Maybe I'm just to use to Arduino C. But regardless you are the master. I love all your resources and videos.

  • @DavidCousins
    @DavidCousins 2 роки тому +1

    Good video. Thanks

  • @Rich-can-do
    @Rich-can-do День тому

    Micro python is awesome you can test ideas and you don't have to burn any flash unlike Arduino.
    I use Thonny in Linux mint. Thonny lets you run your code in your devices memory without needing to write the new script o the device. The only time I would write to the device is if its a library or I want a script to run on boot.

  • @marcova_79
    @marcova_79 2 роки тому +1

    Really helpful video, keep going

  • @infelicitatis
    @infelicitatis 3 роки тому +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.

  • @96Ash69
    @96Ash69 3 роки тому +1

    Helpful af

  • @das250250
    @das250250 Рік тому +1

    The music between points is wayyyy too loud for the vocal level . You might just review that difference on earphones . Ty for video.

  • @charliesrccrawler9325
    @charliesrccrawler9325 2 роки тому +1

    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

  • @tiberiu_nicolae
    @tiberiu_nicolae Рік тому +1

    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

  • @unionse7en
    @unionse7en Рік тому +1

    is there an IDE doesn't play obfuscating music?

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl Рік тому +1

    Thank YOu

  • @younessid437
    @younessid437 3 роки тому +3

    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  3 роки тому +3

      MicroPython is an easier language to learn for sure!

    • @younessid437
      @younessid437 3 роки тому +1

      @@kevinmcaleer28 Thanks sir

  • @das250250
    @das250250 Рік тому

    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.

  • @Multijuicee
    @Multijuicee 2 роки тому +1

    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 роки тому +1

      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.

  • @10Minutes_Of_Code
    @10Minutes_Of_Code 2 роки тому

    Hi is it we can run the machine learning code on aurdino

  • @mwangicharles844
    @mwangicharles844 2 роки тому +1

    Please is there a difference between micropython and pyfirmata

    • @kevinmcaleer28
      @kevinmcaleer28  2 роки тому

      One is a programming language and one is a library is the quick answer - I cover this in the video

  • @MrTaken-tl4bw
    @MrTaken-tl4bw 2 роки тому +1

    3:00 voltage depends on the board you using not the programming language

    • @kevinmcaleer28
      @kevinmcaleer28  2 роки тому

      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 2 роки тому

      @@kevinmcaleer28 by that logic esp32 esp8266 esp 01 raspberry pico are all 3.3v and can be programmed with arduino

    • @kevinmcaleer28
      @kevinmcaleer28  2 роки тому

      @@MrTaken-tl4bw that doesn’t make sense

  • @maxmaxmaxmax-p7m
    @maxmaxmaxmax-p7m 2 роки тому +3

    Suggestion: Stop using music between transition. It is very annoying.
    good info in the video tho.

  • @AM-jw1lo
    @AM-jw1lo 2 роки тому +1

    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 3 роки тому +1

    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  3 роки тому

      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 3 роки тому

      @@kevinmcaleer28 it is like saying: 4-beds apartment is only for families with 3 kids -you might or might not - up to you ;)

  • @mohamedfarid7499
    @mohamedfarid7499 2 роки тому +1

    micropython and circuitpython is more user friendly from c arduino

  • @faisletoismeme
    @faisletoismeme 4 місяці тому +1

    yep music is too loud... come on...

    • @kevinmcaleer28
      @kevinmcaleer28  4 місяці тому

      @@faisletoismeme Yep I made this video 2 years ago and was learning how to edit. Everyone has to start somewhere

  • @pellcorp
    @pellcorp Рік тому

    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!

  • @Новости-з3й
    @Новости-з3й 2 роки тому +2

    STOP that awfull music !!!!!

  • @krzysztofzemski291
    @krzysztofzemski291 2 роки тому

    This could be useful bunch of tips but you have ruined it with back ground music.

  • @MrBobWareham
    @MrBobWareham Місяць тому

    This video would have been very good, and I would give it top marks, however the music or noise just killed it for me, and stopped watching such a shame, I do not understand why UA-camrs like to mix music when talking, if you go to a classroom the teacher does not have music playing when talking!! 👎👎👎