MicroPython Basics: What is MicroPython? with Tony D! @micropython

Ғылым және технология

Live stream to / adafruit looking at the MicroPython programming language, how it compares to Arduino, and demos of what it can do. Companion to the guide at: learn.adafruit.com/micropytho...
Links mentioned in the video:
- MicroPython Basics: What is MicroPython? learn.adafruit.com/micropytho...
- Python programming language: www.python.org/
- MicroPython homepage: www.micropython.org/
- BBC micro:bit: www.microbit.co.uk/
- Pyboard: www.adafruit.com/products/2390
- Feather HUZZAH ESP8266: www.adafruit.com/products/2821
- AM2302 (DHT22 style) sensor: www.adafruit.com/products/393
- NeoPixel rings: www.adafruit.com/products/1643
Acknowledgements:
- Music: bartlebeats
- Intro shuttle footage: NASA
- Intro fonts: Typodermic
- Intro inspiration: Mr. Wizards's World
- Matrix background: cool-retro-term & cmatrix
-----------------------------------------
Visit the Adafruit shop online - www.adafruit.com
Subscribe to Adafruit on KZread: adafru.it/subscribe
Join our weekly Show & Tell on G+ Hangouts On Air: adafru.it/showtell
Watch our latest project videos: adafru.it/latest
New tutorials on the Adafruit Learning System: learn.adafruit.com/
Music by bartlebeats: / bartlebeats
-----------------------------------------

Пікірлер: 66

  • @davidstovall7646
    @davidstovall76467 жыл бұрын

    Favor, for all us older fokes with very worn eyes... would sure be helpful to enlarge the font in you terminal presentations. The very first thing I did with my RasPi was to increase the font and it sure helped! Tks

  • @matambale
    @matambale7 жыл бұрын

    I've been writing code since dirt was invented - and Python looked really peculiar to me at first. This was easily the best intro to Python/Micropython I've seen. Thanks, Tony.

  • @element4studios
    @element4studios8 жыл бұрын

    Seriously, mad respect for the Mr Wizard opening :) Thanks for the nostalgia hit!!

  • @michaelj3971
    @michaelj39718 жыл бұрын

    This is really good information. My grandson is just starting to learn programming, using Python as his first language. These small boards would be a good way to learn both Python and hardware. Thanks for the tutorial!

  • @deanperk

    @deanperk

    6 жыл бұрын

    Michael Fillian y

  • @amjedmajeed3218
    @amjedmajeed32187 жыл бұрын

    Thank you, appreciate the information and the pace of delivery

  • @Cardesie
    @Cardesie7 жыл бұрын

    What a good communicator! Bravo Tony!

  • @RichardEricCollins
    @RichardEricCollins8 жыл бұрын

    I'm an old school coder from the 80's. Had this level of instant coding on the ZX80 to the spectrum. :) Although not as powerful. good to see going back to speed of development. Very nice tutorial Tony. I'm a c/c++ coder yet I can see the value of this. it is an extremely powerful development. I must bring my skills up to date. :-)

  • @databang
    @databang4 жыл бұрын

    OMG, your opening, I thought I was watching an episode of Computer Chronicles.

  • @stevegables3303
    @stevegables33033 жыл бұрын

    "It doesn't matter if it is 10ms or 200ms" Beautiful words for Micropython dissidents! What a fantastic and flexible language for embedded systems!

  • @erickcampos50
    @erickcampos505 жыл бұрын

    Dude, I haven't watch a that long video until the end has a long time ago, but you created a great material. Congrats!

  • @RTmadness1
    @RTmadness17 жыл бұрын

    Great video!! So much information. Question: What if you wanted to read that temp on your android phone?

  • @jpolarseminario
    @jpolarseminario3 жыл бұрын

    Excellent review. Good speed. Good focus.

  • @greaterthanbut
    @greaterthanbut8 жыл бұрын

    Awesome video sir.. Thank you from the single board computer club

  • @tnants012345
    @tnants0123457 жыл бұрын

    Can we upload main.py via Bluetooth ? and Can we upload main.py via Serial Communication (Uart) ? Thank you very much.

  • @gregsullivan7408
    @gregsullivan74087 жыл бұрын

    Thankyou - you're an excellent presenter.

  • @chrisschene8301
    @chrisschene8301 Жыл бұрын

    How do you load code into the arduino?

  • @ShaneEngelman
    @ShaneEngelman8 жыл бұрын

    This was awesome!

  • @Vikas_Singh_Kushwaha
    @Vikas_Singh_Kushwaha7 жыл бұрын

    when i type led.high() it shows "Pin " object has no attribute "high" why why why

  • @chillipaste2183
    @chillipaste2183 Жыл бұрын

    If I may ask.... I always hear "just open a terminal". What exactly is a "terminal" and where can I find it on a Windows7 laptop? Or where can I download a "terminal" program?

  • @kamakshaiah
    @kamakshaiah7 жыл бұрын

    This is really a great video. However, I do have a question, that is it possible to play with stm8 (not 32) and ATMega#/### with micropython? if yes, please help me identify resources... thanks

  • @skull132

    @skull132

    7 жыл бұрын

    "Yet it is compact enough to fit and run within just 256k(bytes) of code space and 16k(bytes) of RAM." If you can find a MCU with enough flash and RAM on it! (You probably can't, not in the class you listed off.) There's a reason all uPy boards are STM32s: the implementation requires a lot of space.

  • @MrEdwardhartmann
    @MrEdwardhartmann Жыл бұрын

    I am porting some code from a bluepill stm32 processor running the Arduino C++ to an ESP32 S2 Mini running Circuit Python. I just found out the other day that Circuit Python does not support interrupts which is a real bummer since I have 6 lines that I need to monitor and the polling routine to do that is just dirty. But, we wanted the S2 Mini for the I2S capability that the bluepill did not have.

  • @RRP3168
    @RRP31685 жыл бұрын

    Very useful! Thanks!

  • @ejb1011
    @ejb10117 жыл бұрын

    The performance drag is only during development? Once the code is on the board, then it is in machine language and no performance drag?

  • @linuxcow9870

    @linuxcow9870

    7 жыл бұрын

    no , the code is always interpreted , so each source code line is always evaluated and translated by the interpreter

  • @ThomasHaberkorn
    @ThomasHaberkorn7 жыл бұрын

    how to post sensor values to a website using a webserver? using MicroPython of course.

  • @mybigbeak
    @mybigbeak7 жыл бұрын

    I think I will have to actually get one of these, I hve always been nervous about microprocessor programming, but Python w00t.

  • @ianstoll
    @ianstoll7 жыл бұрын

    Silly question, but how do you close out a for / while loop?

  • @Codie__

    @Codie__

    7 жыл бұрын

    break

  • @mondair99
    @mondair997 жыл бұрын

    These are the types of things that make me wanna major in EECS :D

  • @jamescullins2709
    @jamescullins27097 жыл бұрын

    Can it do ext interrupts? I need to read a count for wind speed. I think about 4 counts per rev. Thank great job

  • @Gastell0

    @Gastell0

    7 жыл бұрын

    Apparently there are 16 external interrupts: docs.micropython.org/en/latest/pyboard/library/pyb.ExtInt.html#pyb-extint

  • @jamescullins2709

    @jamescullins2709

    7 жыл бұрын

    Outstanding ! Thanks

  • @TheSamwongms
    @TheSamwongms5 жыл бұрын

    I would appreciate it if you could enlarge the font size before the recording.

  • @anmg2024
    @anmg20246 жыл бұрын

    nice explanation and demo...

  • @ThomasHaberkorn
    @ThomasHaberkorn7 жыл бұрын

    for me, in the first example, only print("Hex number: 0x{0:X}", format(255)) works

  • @Jianju69
    @Jianju698 жыл бұрын

    Kinda reminds me of Applesoft BASIC on my first computer, the Apple II+. Those were the days...

  • @Brianuyahoo
    @Brianuyahoo7 жыл бұрын

    Very cool stuff!

  • @Shakespeare1612
    @Shakespeare16127 жыл бұрын

    Could micro-python be rooted to an arduino? Is an Arduino mega powerful enough?

  • @Tyrone-Ward

    @Tyrone-Ward

    6 жыл бұрын

    James McLain lol no

  • @tjspov7791
    @tjspov77917 жыл бұрын

    Can it be used to control motors? (Might be a stupid question, but I'm a beginner)

  • @FoamyDave

    @FoamyDave

    7 жыл бұрын

    The ESP8266 does not have a HW PWM so motor control has to be done through SW.

  • @paulhendrix8599

    @paulhendrix8599

    6 жыл бұрын

    Yes. You need extra stuff though, which you can get in a motor driver board.

  • @cautious_possum
    @cautious_possum8 жыл бұрын

    Hi Tony, Thanks for the informative video. It's an excellent resource like so much of the education work you are doing for Adafruit. I wonder if you could increase the font size in the terminal when you show code samples? At least one of us out here finds it difficult to read.Thanks for all your fine and fun work!

  • @MIGuy
    @MIGuy8 жыл бұрын

    TWITCH channel link?

  • @adafruit

    @adafruit

    8 жыл бұрын

    www.twitch.tv/adafruit

  • @tablatronix
    @tablatronix7 жыл бұрын

    how do you get out of loop ? my prompt is always ....

  • @conceptualTriad

    @conceptualTriad

    5 жыл бұрын

    Press ENTER a few times, then it will execute

  • @BennyInasu
    @BennyInasu3 жыл бұрын

    Sir, Great. I am a new comer to this field, but I express.

  • @oneconfusedbeing2027
    @oneconfusedbeing20278 жыл бұрын

    On the Bluetooth le tutorial pt one I get masked instead of loaded in the status thing

  • @Donatellangelo
    @Donatellangelo7 жыл бұрын

    I want a pyboard now.

  • @ReganMarcelis
    @ReganMarcelis5 жыл бұрын

    Ireland's WORLD Domination Route.... ;p

  • @Evo2Raid
    @Evo2Raid7 жыл бұрын

    I think it's amazing

  • @AgentOffice
    @AgentOffice7 жыл бұрын

    weird this board is from the 70s

  • @ismzaxxon
    @ismzaxxon7 жыл бұрын

    python is hard to debug. no single step etc that high level languages have. Unless there is an IDE i am not aware of.

  • @blaser80

    @blaser80

    7 жыл бұрын

    Python has a debugger, it's called pdb (python debugger). You can run your program via pdb and give it the option to step through each line.

  • @ismzaxxon

    @ismzaxxon

    7 жыл бұрын

    excellent. Thank you.

  • @Norfeldt

    @Norfeldt

    7 жыл бұрын

    take a look at IPython (now jupyter) or Spyder and I think you'll find what your looking for

  • @toastrecon
    @toastrecon7 жыл бұрын

    So, let's say with the Feather: you build a script on your computer (assuming you don't want to keep trying it into the terminal, ha!) is there a way you can push it to the device? Did you say that there was storage on the device? Sorry, could just be in another video. This is really cool, thanks for sharing! P.S. does the feather have the ability to connect to wifi routers and then send data out, make web requests?

  • @daddy3118
    @daddy31187 жыл бұрын

    It's Python pronounced pie-thunn of course ;-)

  • @demoncloud6147
    @demoncloud61474 жыл бұрын

    import everything while True: read.all.kinds.of.sensor() control.all.kinds.of.devices()

  • @barryluft4451
    @barryluft44514 жыл бұрын

    Hmmm. Well, I would love to this board, BUT since a Pyboard is 5 times the price of an Arduino board... I have to say, its not something I'll put any effort or money towards.

  • @akkudakkupl
    @akkudakkupl2 жыл бұрын

    1:40 argument in a nutshell - you must not be braindead to do regular embedded stuff.

  • @paulelliott2459
    @paulelliott24593 жыл бұрын

    Mmm looking at all the videos on KZread it looks like this language is orientated for Linux users.... I'm from the 80s. Basic, cobol, fortran 6502 assembly and Z80 assembly.. I just cannot seem to get to grips with thease languages... Lol. All the videos seem to presume you allready have a grounding... Wooosh over my head..lol

Келесі