Pratique du Shadowing: Microbit lesson 1 introduction - Apprendre l'anglais à l'oral avec YouTube

C1
Hello
⏸ En pause
194 phrases
Si les phrases sont trop courtes ou trop longues, cliquez sur Edit pour les ajuster.
1
Hello
2
and welcome this is Mr. Baumgarten back for the first of
3
a series of videos I'm going to do on the BBC micro bit this is the little box
4
that it comes in and the micro bit is a really great little device for beginner programmers wanting to learn Python.
5
You can also use it for a Blockly style interface but I'm going to be teaching Python today.
6
So inside the box what do you get?
7
So this is the micro bit go and it comes with a couple of cool little accessories.
8
You have your little micro bit you've got your usb to micro usb cable
9
and it comes with a little battery pack holder
10
even a couple of batteries
11
which i will quickly put together now on the front as
12
you can see we just had light up on us we
13
have five by five sets of leds on the front so little matrix of 25 leds
14
we have two buttons that you can program up to respond to presses
15
and we have a series of pins
16
that we can also program responses to on the back we have a compass a gyroscope
17
and accelerometer and a little reset button
18
and that's it it's a tiny cute little pack now software
19
that you are going to want to use is called the Moo Editor
20
that you can see I have up and running here.
21
This is where you can download the program from here.
22
This is my personal website and
23
if you scroll down to learning resources you'll see I've got a link for Python with micro bit.
24
This will be where I upload all my lessons and code samples
25
and lesson resources so if after watching the video you need some notes
26
or I'll have referred you to my website to download any particular code
27
or anything like that this will be where you can find it all right
28
but let's go back to Moo the first time you start Moo you will get a screen
29
that looks like this make sure you select the micro bit mode
30
and then click ok now these are the things I want to quickly go through in this particular video
31
so introducing the micro bit and the moo editor
32
which we've kind of just done and we'll talk about the import statement
33
that you're going to need on all of your python programs
34
that run on the microbit we'll run our first program
35
and we'll talk a little bit about how python works in terms of running programs
36
so without any further ado let's get underway from microbit that's what we want import star okay
37
and this basically means
38
that there is a section of code in a what's known
39
as a library over on the shelf somewhere there is some code
40
that we are wanting move to load up and bring into our program
41
and so from the microbit section bring in everything the star means everything
42
so bring it all into our program so that we can use it.
43
And so that gives us the micro bit functionality in Python.
44
And so the command that we're going to run is display.show.
45
And I'm going to open a set of round parentheses,
46
image with a capital I,
47
dot, happy, all in uppercase, close the brackets, enter.
48
get this program up and running on our micro bit first you want to save your program
49
and then you hit the little flash button
50
so presuming you are plugged in so this is the button
51
that will transfer the code from your laptop onto the micro bit
52
and you can see that the micro bit is flashing it's restarting
53
yellow light on the back is flashing indicating
54
that data has been transferred onto it
55
and now we have a little happy emoji so
56
that was obviously the program that I already had up
57
and running on it because it's now doing exactly the same thing
58
that it was done before because I've just reloaded the same thing onto it
59
but it is a fresh program
60
so how can I do something else with this maybe I
61
started out maybe I want to express my love for the microbit having gotten it working for the very first time.
62
So after showing the happy face,
63
let's put it in a sleep command.
64
Okay, and as I type sleep and I open the parentheses,
65
you'll see that Moo tells you a little bit of a hint as to what might go inside the brackets
66
and what the command does.
67
So here, this is telling us,
68
this will put the micro bit to sleep for some number of milliseconds.
69
One second is 1000 milliseconds worth of time.
70
And here's even an example.
71
So sleep2000 gives micro bit a two second nap.
72
So let's put 2000 in here and I'll close the brackets.
73
And then I am going to us display.show image,
74
again with the capital I,
75
dot, and this time let's express our gratitude with a heart.
76
heart.
77
Now close the brackets.
78
So I am going to show the happy face,
79
I'm going to wait for two seconds and then I'm going to show a heart.
80
So if I save this and then flash the microbit,
81
we will see the data transfer light flashing on us again
82
and in a few moments time we will get the happy face appear
83
and two seconds later it will transfer to a picture of a heart.
84
Ah, isn't that lovely now there are actually a whole bunch of images
85
that are already installed on the micro bit that we can use
86
so for example another one so if I go back to sleep
87
and then two seconds later I want to show a yes symbol and
88
then yeah let's run that one so save flash okay
89
and then we wait again it does the data load you
90
can see there the little orange glow of the data transfer
91
happy two seconds later heart two seconds later a big tick for yes Excellent.
92
So this brings us on to this fourth part of the lesson
93
that I wanted to draw out to you and that is
94
that when Python runs its commands unless we specify otherwise
95
when we use loop commands or run functions
96
and things later on by default Python will start from the top and run the first line
97
and then run the next line and then run the next line
98
and then run the next line and then run the next line
99
and then run the next line okay
100
so it starts statements are executed in order from the top working their way down
101
if i didn't have this sleep command here then we the happy
102
and the heart would have just flashed by so quickly
103
that we may not have even noticed them in fact let's show what this would do
104
so I'll save and I'll flash this onto the card all right
105
and let's see if we can even notice the happy
106
or the heart appear all right it just went looked as
107
if it went straight to the tick and
108
so this could be a source of frustration you might be
109
I've asked it to show happy why is it not doing
110
it why is it just going to the yes image
111
and the reason is that programs are very fast
112
so it is running through this at several thousand times per
113
second all right that's how many lines it can execute several thousand per second
114
so unless we tell it to go to sleep
115
all right it's gonna it will do it it will show the happy image
116
and the heart image but it will change
117
and move on to the next line so quickly
118
that we won't even notice it so that's why we've to put these sleep commands into place.
119
The final thing I wanted to point out in this video is the importance of casing and spelling.
120
This is always a challenge for beginner programmers.
121
But if I had lowercase i on this,
122
this program would not run.
123
And in fact, Moo has a helpful little check button here.
124
And if I click on that,
125
it will say undefined name image because Python does not know what
126
that is because the person who wrote the original programming for this image thing that we are using,
127
they spelt it with an uppercase I,
128
and so it will only work with an uppercase I.
129
Same as for sleep, if I used uppercase S,
130
it would not work undefined name sleep,
131
uppercase D, undefined name display.
132
all right if I didn't use the dot
133
if I used a dash instead that would also generate
134
that would generate errors telling me that there's not this thing called show all right
135
because because show is a sub part I guess to describe it of display
136
but by using the hyphen it's no longer saying
137
that I want to run this thing that belongs to display
138
so I need to run the dot and this needs to be a lowercase d
139
and this needs to be a lowercase s if I check
140
that now right it will work so make sure you are careful with your uppercases
141
and lowercases make sure you're careful with your spelling
142
and also your punctuation
143
so what else do I want to quickly show you we can make up our own little images on this thing.
144
We are not stuck with the images that are predefined and there's a big list that I will upload to my website,
145
but we can create our own.
146
And the way that we might go about doing that,
147
so if I go to sleep here for 2,000 milliseconds,
148
I can say display show image,
149
and this time if I open a set of brackets Inside this image,
150
I can create my own image.
151
And the way that I do that is I will have a set of double quotes.
152
And I want to give it a bunch of numbers.
153
Actually, let's get it right.
154
Five, five more, five more zeros.
155
These are separated with a colon.
156
Whoops, five more zeros and five more zeros.
157
And what each of these zeros is,
158
They correspond to the different LEDs on the micro bit.
159
So the first five zeros are the top row.
160
The second five zeros are the second row.
161
Then we've got the middle row,
162
then the fourth row and then the fifth row.
163
So zero means off.
164
Five means kind of turn the LED halfway on.
165
And a nine, let's put some nines over here.
166
The nine means turn the LED all the way on to full brightness.
167
So if I was wanting to get creative and make my own piece of artwork,
168
I might do something like this.
169
Let's put in some fives.
170
I have fives in the middle.
171
And if I save and flash this,
172
we will get our happy face for two seconds.
173
Then we'll get our heart picture for two seconds.
174
Then we'll get the yes tick for two seconds.
175
And then we'll get kind of like a little bit of a picture of a boat.
176
Two masts there and the boat.
177
And you can see that the masts are not quite as bright as the boat itself.
178
And you might need a little bit of imagination to see that it's a boat.
179
We do only have a 5x5 grid after all.
180
but for our purposes it is good enough.
181
There's only one other thing I will quickly show you before I leave you to experiment on your own
182
and that is how to write some text.
183
Using the scroll command, again I use the double quotes and I can just write in here,
184
hello from micro bit.
185
and if I check my code good job no problems found
186
so let's save let's flash it on to the micro bit
187
and I will get my happy face for two seconds my
188
heart emoji for two seconds the yes will appear for two
189
seconds my little picture of a boat will appear for two seconds
190
and then it will scroll and it will say hello from microbit.
191
Hello from microbit.
192
All right, that's more than enough for the first lesson.
193
Why don't you experiment and see what you can create.
194
All right, this is Mr. Baumgarten signing off.

Télécharger l'application

Notation IA pour chaque phrase que vous prononcez

TRENDING

Populaires

Context & Background

In this engaging introduction to programming with the BBC Micro Bit, Mr. Baumgarten welcomes viewers to the first lesson in a series aimed at beginner programmers interested in learning Python. The Micro Bit is an innovative, compact device designed to help learners understand programming concepts in a hands-on manner. The video not only emphasizes the importance of using the Moo Editor to write and execute Python code but also sets the stage for a practical learning experience that combines technology with essential programming skills.

Top 5 Phrases for Daily Communication

  • "Let's get underway." - A motivating phrase to start an activity or discussion.
  • "You can use it for a Blockly style interface." - Refers to an alternative programming method, useful for understanding different coding environments.
  • "Make sure to select the micro bit mode." - A crucial instruction that underscores the importance of the right settings in any tech project.
  • "This will be where you can find it all." - Commonly used to direct someone to a resource or reference point.
  • "Import star means everything." - A key programming concept that explains how to access libraries in Python, can also serve as a metaphor for grasping concepts in other fields.

Step-by-step Shadowing Guide

To fully engage with this video and enhance your learning process, consider using the shadowing technique, a highly effective method for improving your speaking skills. Here’s a step-by-step guide to effectively shadow this video:

  1. Prepare your shadowing app: Before you start, ensure you have a reliable shadowing site or app ready to record your speech. This will help you analyze your pronunciation and fluency later.
  2. Watch the video once: Familiarize yourself with the content and tone of Mr. Baumgarten’s delivery. Pay special attention to the technical vocabulary used in programming, as this will enrich your language skills.
  3. Break it down: Divide the video into short segments. Focus on one phrase or sentence at a time. Use your shadowing app to pause after each segment to repeat what you’ve heard.
  4. Practice shadow speech: Imitate the speaker. Try to capture not just the words but also the intonation and rhythm of their speech. Repeat phrases like “Make sure to select the micro bit mode” until you feel comfortable with the pronunciation.
  5. Review your recordings: Listen to your recordings and compare them with the original video. Identify areas of improvement and make adjustments to your pronunciation and fluency.
  6. Regular practice: Consistency is key. Incorporate this shadowing practice into your IELTS speaking practice routine, making it a part of your daily learning process.

By applying the shadowing technique as you engage with this video, you’ll develop not only your programming knowledge but also enhance your English speaking skills effectively.

Qu'est-ce que la technique du Shadowing ?

Le Shadowing est une technique d'apprentissage des langues fondée sur la science, développée à l'origine pour la formation des interprètes professionnels. Le principe est simple mais puissant : vous écoutez de l'anglais natif et le répétez immédiatement à voix haute — comme une ombre suivant le locuteur avec un décalage de 1 à 2 secondes. Les recherches montrent une amélioration significative de la précision de la prononciation, de l'intonation, du rythme, des liaisons, de la compréhension orale et de la fluidité.

Offrez-nous un café