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
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
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.
Seriously, mad respect for the Mr Wizard opening :) Thanks for the nostalgia hit!!
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
6 жыл бұрын
Michael Fillian y
Thank you, appreciate the information and the pace of delivery
What a good communicator! Bravo Tony!
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. :-)
OMG, your opening, I thought I was watching an episode of Computer Chronicles.
"It doesn't matter if it is 10ms or 200ms" Beautiful words for Micropython dissidents! What a fantastic and flexible language for embedded systems!
Dude, I haven't watch a that long video until the end has a long time ago, but you created a great material. Congrats!
Great video!! So much information. Question: What if you wanted to read that temp on your android phone?
Excellent review. Good speed. Good focus.
Awesome video sir.. Thank you from the single board computer club
Can we upload main.py via Bluetooth ? and Can we upload main.py via Serial Communication (Uart) ? Thank you very much.
Thankyou - you're an excellent presenter.
How do you load code into the arduino?
This was awesome!
when i type led.high() it shows "Pin " object has no attribute "high" why why why
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?
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
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.
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.
Very useful! Thanks!
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
7 жыл бұрын
no , the code is always interpreted , so each source code line is always evaluated and translated by the interpreter
how to post sensor values to a website using a webserver? using MicroPython of course.
I think I will have to actually get one of these, I hve always been nervous about microprocessor programming, but Python w00t.
Silly question, but how do you close out a for / while loop?
@Codie__
7 жыл бұрын
break
These are the types of things that make me wanna major in EECS :D
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
7 жыл бұрын
Apparently there are 16 external interrupts: docs.micropython.org/en/latest/pyboard/library/pyb.ExtInt.html#pyb-extint
@jamescullins2709
7 жыл бұрын
Outstanding ! Thanks
I would appreciate it if you could enlarge the font size before the recording.
nice explanation and demo...
for me, in the first example, only print("Hex number: 0x{0:X}", format(255)) works
Kinda reminds me of Applesoft BASIC on my first computer, the Apple II+. Those were the days...
Very cool stuff!
Could micro-python be rooted to an arduino? Is an Arduino mega powerful enough?
@Tyrone-Ward
6 жыл бұрын
James McLain lol no
Can it be used to control motors? (Might be a stupid question, but I'm a beginner)
@FoamyDave
7 жыл бұрын
The ESP8266 does not have a HW PWM so motor control has to be done through SW.
@paulhendrix8599
6 жыл бұрын
Yes. You need extra stuff though, which you can get in a motor driver board.
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!
TWITCH channel link?
@adafruit
8 жыл бұрын
www.twitch.tv/adafruit
how do you get out of loop ? my prompt is always ....
@conceptualTriad
5 жыл бұрын
Press ENTER a few times, then it will execute
Sir, Great. I am a new comer to this field, but I express.
On the Bluetooth le tutorial pt one I get masked instead of loaded in the status thing
I want a pyboard now.
Ireland's WORLD Domination Route.... ;p
I think it's amazing
weird this board is from the 70s
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
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
7 жыл бұрын
excellent. Thank you.
@Norfeldt
7 жыл бұрын
take a look at IPython (now jupyter) or Spyder and I think you'll find what your looking for
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?
It's Python pronounced pie-thunn of course ;-)
import everything while True: read.all.kinds.of.sensor() control.all.kinds.of.devices()
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.
1:40 argument in a nutshell - you must not be braindead to do regular embedded stuff.
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