Тёмный

micro:bit Tutorial Series Part 2: Images, Buttons, and Conditionals 

Shawn Hymel
Подписаться 11 тыс.
Просмотров 137 тыс.
50% 1

Let's make some faces! In this episode, we interact with the micro:bit by pressing buttons to display different images on the LED array.
micro:bit online editor: www.microbit.co.uk/app
micro:bit MicroPython documentation: microbit-micropython.readthed...
Code: gist.github.com/ShawnHymel/68...
Challenge 1 answer: gist.github.com/ShawnHymel/bf...
Challenge 2 answer: gist.github.com/ShawnHymel/71...

Наука

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

 

12 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@airthrowDBT
@airthrowDBT 6 лет назад
I wish you continued this series, your explanation is very succinct and easy to follow. Thanks for this!
@julielanders712
@julielanders712 5 лет назад
Shawn, your explanantions are so easy to follow - thank you! Please post more!
@psd4942
@psd4942 3 года назад
Respected *Shawn Hymel* sir, I am a student, and literally the way you have teached electricity and electromagnetism is infinite wonderful!❤️ You have given us knowledge in the best way which nobody has ever given to us! In india , teachers don't teach us correctly, they just make. Us gulp the text written in the book. I request you teacher Shawn hymel that please try to teach us more physics like that you did in past(electricity, electromagnetism) I know making more such videos will take a lot of effort! But please try to help, Hope you will reply sir🙏🙏🙏👍❤️😁
@edwardCYHsu
@edwardCYHsu 7 лет назад
Like it a lot. So professionally done too. Impressed.
@globalnavigator
@globalnavigator 3 года назад
Really good tutorial and explanation. 👌🏼
@dnrandom9406
@dnrandom9406 4 года назад
This is great! This video is awesome.
@HilalGungorr
@HilalGungorr 7 лет назад
thanks for tutorial ! :)
@syaduinotech3681
@syaduinotech3681 2 года назад
I also wish you can create more content for micro bit. Tq sir
@jklilj.k3512
@jklilj.k3512 2 года назад
This helped me on 9 school projects Thanks
@ConexSpot
@ConexSpot 3 года назад
Super video. Thanks
@keanendelaney7729
@keanendelaney7729 7 лет назад
Thanks so much!:D
@uCubeYT
@uCubeYT 6 лет назад
I love the skit at 8:38
@skylettvlogs5156
@skylettvlogs5156 4 года назад
thanks for the help! :D
@janszymanski9947
@janszymanski9947 7 лет назад
Great tutorial. Is there a "save as" option in the micropython editor or should I rename .hex files from the system level?
@sethangadanulmi7289
@sethangadanulmi7289 4 года назад
Explaining is very very good
@nourhubous
@nourhubous 5 лет назад
Thank you!
@user-un8fv1kg2b
@user-un8fv1kg2b 6 месяцев назад
Amazing explanations
@tinselinkl
@tinselinkl 5 лет назад
Please continue your series
@tomclements1830
@tomclements1830 6 лет назад
Hi shawn love you sm
@sockeroo5077
@sockeroo5077 3 года назад
Hi! Is the 'while True:' statement a kind of if statement?
@ShawnHymel
@ShawnHymel 3 года назад
Both "if" and "while" are considered "conditional" statements. Most high-level programming levels no longer use "jump" or "goto" commands, but you could implement a "while" statement with "if then ."
@scottlauracunningham8279
@scottlauracunningham8279 3 года назад
Thanks now I can code
@hamfan1355
@hamfan1355 5 лет назад
For sure, import the whole library into the name space.
@blakeallan1054
@blakeallan1054 6 лет назад
thanks in class learning
@limeljus
@limeljus 7 лет назад
Very nice! I hope you find time for some more videos!!!
@ShawnHymel
@ShawnHymel 7 лет назад
Danai Specialmuse Thanks! I do, too. I'm working on an Arduino online course at the moment :)
@limeljus
@limeljus 7 лет назад
Shawn Hymel Your videos are very well made. Easy to follow and structured! Thank you!
@branobodor5687
@branobodor5687 5 лет назад
Can you make more of this? Great video
@Arandomkidincalifornia
@Arandomkidincalifornia 3 года назад
Hi! For the ending part when you want us to get our microbit to make a confused face when we pushed both buttons at the same time, how do we do that?
@4nte3
@4nte3 2 года назад
Theres a link to the answer in the description :D
@DiamondTMZ
@DiamondTMZ 7 лет назад
thanks :D
@wakenvy1
@wakenvy1 7 лет назад
BEST
@isaiahpaul56
@isaiahpaul56 4 года назад
Seriously I think he looks a lot like Sheldon.
@vineshsakthivel8962
@vineshsakthivel8962 10 месяцев назад
hi this is my school project but also finish school secend dary but love project tq for informtion 😃😃😃🙃
@SLIMEburger-jf5od
@SLIMEburger-jf5od 4 года назад
Please make a part 3
@fongkwong5950
@fongkwong5950 7 лет назад
Can it use on LabVIEW?
@notnipneb2810
@notnipneb2810 4 года назад
i showed this to my friends and they said "meh"
@judemendez007
@judemendez007 6 лет назад
If I use the language "Python" does it do the same thing as micropython?
@ShawnHymel
@ShawnHymel 6 лет назад
Jude Mendez MicroPython is a subset of Python, meaning that only some of the language's features are available to you. Python is intended to run on full computers (e.g. your laptop) whereas MicroPython will run on microcontrollers (e.g. the micro:bit). By learning one, you are effectively learning the other, but just be aware that each language has its own intended platform.
@jamescooper2267
@jamescooper2267 6 лет назад
Hi Shawn, can i edit code and use my microbit without a internet connection in any way?
@ShawnHymel
@ShawnHymel 6 лет назад
James Cooper yes you can. The mu microython editor allows you to edit code and upload it to the micro:bit without an Internet connection.
@chewedwater3490
@chewedwater3490 5 лет назад
1:21
@markharrington5826
@markharrington5826 6 лет назад
How do you construct a hardware logical button without a processors then and no programming ??
@ShawnHymel
@ShawnHymel 6 лет назад
I'm afraid I don't quite follow you. You can connect 5V -> button -> resistor -> LED -> GND to flash an LED with a button. For the micro:bit, you have to use programming, as the buttons are attached to the processor.
@markharrington5826
@markharrington5826 6 лет назад
Shawn Hymel Thats exactly my thoughts too You've answered my question beautifully without me even having to present an argument with what you possibly assumed the micro bit is going to teach you Thank you so much Its exactly the answer I expected you to come back with as well Incredible that I managed to make a correct assumption of what I thought would be entirely missing from your answer too I may now conclude that this truthfully although a extremely exciting product , how ever some what lacks the desired approach as a possible teaching aid with all relative ingredients missing not because of the product but more connected to basics Thank you again My points now clearly illustrated and reverent in every industry I walk into these days I must therefore ask , " Do you feel this is the real answer to teaching youngsters at this age , bearing in mind that as a company who market this are also requesting participation with reflection to producing decent well trained highly educated design , engineers of the future ?? " Please notice at this point the following No Idea of what value resistor , No Idea of what ground , Only points to five volts supplies Would not understand differ and thats means No idea of current rating of led's and says , "All you have to do is write the code " Result ... An educated person at the age of 11 with no circuit diagram knowledge , doesn't understand the hardware or how this works Cant assemble this on any board at all and so there fore fails in the ability to construct and fails on component recognition , checking values and connections of components thus cannot design or read a schematic or even so much as make a strip board to do this for him , her as well Software side Does not know about switch denounce and how to achieve this both hardware or software wise and when enters he industry gives the same answers then as management in corporations . "PLC" with sales staff who equally do not know their subjects yet are in charge of Hi tech fields in relation to electronics thus cannot fault diagnose , cannot identify design problems and then will argue with you as well regards findings too The typical reasons why Industry collapses What is being forgotten completely is hardware Its all very well being able to write code but without hardware designers, people whom can read , draw and assemble circuits in component format starting with discrete components and them moving into SMT later LSI , FPGA you don't have product you can write software for do you ?? No much point in being able to write software if you can create the hardware is there ?? So if you going to teach someone at age 11 plus and younger then surely you have to start with basics This i would think might just be motors , H bridge , cmos logic IC's , Timer Ic's , Op amps , Transistors , diodes , capacitors , Fets , IGBT , transistor arrays , Logic gates , printed circuit boards , strip boards etc Especially at a young age so you would be thinking in terms of how to construct first then program then see results making this an all round experience and beneficial
@ShawnHymel
@ShawnHymel 6 лет назад
I definitely appreciate your thoughts on the micro:bit, but I believe you are missing the point of why something like it was created in the first place. If the intention was to teach circuitry and the underlying principles for making a computer operate, then an old-fashioned breadboard would be more appropriate. For more creative approaches on teaching circuitry, I recommend looking into the research of Dr. Kylie Peppler, who uses things like e-textiles to demonstrate basic circuits to grade school children. For many people, a computer is a tool, and understanding how it works is a ancillary to their main function, even in engineering. I recommend reading about the BBC Micro, which is the precursor to the micro:bit. It was created not to teach children electronics or even how computers worked but how to use one as a modern tool. Many great things came out of the Micro, including prototypes of the now popular ARM architecture. The purpose of the micro:bit (and many similar kid-friendly computers, kits, and embedded systems that are intended for the classroom) is to inspire young students to consider pursuing an education and career in STEM as well as teach them critical thinking and problem solving skills. Nowhere does it promise to teach sound engineering practices, basic electronics, or digital logic. It's meant to be the beginning of a journey wherein the participant will hopefully learn how to debounce a button along the way. I am very much like you: I want to know how a computer works from the ground up in order to use it, but I also understand that not everyone operates that way. Some just want the tools to make something light up with LEDs without needing to understand band gaps.
@markharrington5826
@markharrington5826 6 лет назад
Actually Its university students that are pointing this out as well as much as i appreciate your suggestions , and in particular University lecturers whom are also pointing this out Id hardly want to argue with some of these people Id be inclined to take note of these suggestions with a view to how your company will be proceeding in the market place with particular reference to the educational standards that my well require explanations I notice how ever that you haven't quite answered the questions that I put forward in full and this equally become quite distinctive within Industry too particularly with some PLC's , example Maplin electronics who claim they are electronics professionals Would you care to go back to my face book page please and view the catastrophic mistakes that are being made which are responsible ultimate for company collapse We can all be very creative of that Im sure but there is being creative and understanding your creativity and being creative and still not being able to provide correct answers Im just about to illustrate how being ever so creative has wound up with at least 10 - 15 products being bought from super professionals and where they actually do not work Combined Precision Components , Amazon.co.uk, Farnell components, being no exception to the rule , but hey hardware is superb Just a shame nothing else actually works as described PS I think there are just a few of us who might just be able to teach a little more than grade school children PS 11years old as recommended is grade school so perhaps you all need to do some rethinking in earnest on this subject alone Personally I would if I were some of you This is not a laughing matter some of this anymore Its actually quite disgraceful With reference to many person whom i know both in the industry and equally within the realms of teaching we often are no sitting discussing this entire subject of technologies and the effect that this is having Whilst I note these are real problems I also feel that you are also missing the entire point too whilst attempting to quell knowledge which will in reality , although you may not realise this yourself , both affect and limit persons to what they are able to achieve and that to me is entirely non sensible almost if I may say a real form of suppression to some extent and not beneficial to anyone Quote your answer "You can connect 5V -> button -> resistor -> LED -> GND to flash an LED with a button" , unquote , is hardly an answer to my original question which was how would you connect this to other supplies being as this an LED array that you produced with smt resistors
@aqeebkhan8435
@aqeebkhan8435 7 лет назад
my sad face doesn't even come it just says a text :(
@humphreystech
@humphreystech 6 лет назад
Help, ours didn't work, it says indent error....any advice please?
@ShawnHymel
@ShawnHymel 6 лет назад
Humphrey 2017 sounds like a Python syntax error. Make sure that you have a tab (or 4 spaces) before display.show and that the display.show line is directly under the "while True:" line.
@asbestos464
@asbestos464 5 лет назад
well i know micro:bit works on scratch
@zukauskurejus8523
@zukauskurejus8523 6 лет назад
wtf it says error in microbit and it says no modul
@ShawnHymel
@ShawnHymel 6 лет назад
Does it say anything after "module?" This is likely an error in micropython where it could not find a module (library), so the error should say something like "No module named radio" or something similar. Were you able to get the code from Part 1 working?
@AnishAnsari78
@AnishAnsari78 7 лет назад
How can I reach to you, sir? I need your help.please give me email or something like that
@lotsarats
@lotsarats 6 лет назад
part1 said wireless communications. seems like this series was abandoned
@MrShivamgautam1
@MrShivamgautam1 7 лет назад
did you quit Sparkfun?
@ShawnHymel
@ShawnHymel 7 лет назад
Nope! Just making some videos on the side. I did micro:bit with MakeCode for SparkFun: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kaNtg1HGXbY.html
@HurtsHOF
@HurtsHOF 4 года назад
Nerd
@honasefiksamhanasouna5842
@honasefiksamhanasouna5842 3 года назад
this dont help me at all
Далее
Coding with micro:bit - Part 5 - Motors & Servos
18:22
Просмотров 110 тыс.
micro:bit Tutorial Series Part 1: Getting Started
6:39
Who Can Break Most Walls? Ep.2 | Brawl Stars
00:26
Просмотров 777 тыс.
What is the BBC micro:bit - Gary explains
8:05
Просмотров 73 тыс.
Getting Started with micro:bit Part 1: Say Hello
6:38
Просмотров 154 тыс.
Micro:bit Basics for Teachers Part 1: The Hardware
10:10
Learn To Code Like a GENIUS and Not Waste Time
9:41
Просмотров 1,3 млн
Microbit Fix
5:12
Просмотров 15 тыс.
BBC micro:bit V2 - simply amazing
15:32
Просмотров 7 тыс.
#engineering #diy #amazing #electronic #fyp
0:59
Просмотров 339 тыс.
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 55 тыс.