ฝึกพูดภาษาอังกฤษด้วยเทคนิค Shadowing จากวิดีโอ: Microbit lesson 1 introduction

C1
Hello
⏸ หยุดชั่วคราว
194 ประโยค
หากประโยคสั้นหรือยาวเกินไป กดที่ Edit เพื่อปรับแก้
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.

ดาวน์โหลดแอป

AI ให้คะแนนทุกประโยคที่คุณพูด

สแกนเพื่อดาวน์โหลด
สแกนเพื่อดาวน์โหลด
TRENDING

ยอดนิยม

ทำไมต้องฝึกพูดกับวิดีโอนี้?

การเรียนรู้ภาษาอังกฤษจากยูทูปช่วยให้คุณได้สัมผัสกับการพูดในบริบทที่หลากหลาย โดยเฉพาะอย่างยิ่งในวิดีโอนี้ที่เกี่ยวกับการใช้ microbit ในการเขียนโปรแกรมภาษา Python ซึ่งมักเป็นเรื่องที่น่าสนใจสำหรับผู้เริ่มต้น โปรแกรมนี้มีการสอนที่เข้าใจง่ายและมีการสื่อสารที่ชัดเจน ผู้เรียนสามารถฝึกใช้ shadow speech เพื่อเลียนแบบการออกเสียงและการพูดจากผู้สอน คุณจะได้เรียนรู้จากภาษาที่เป็นธรรมชาติและเพิ่มทักษะการฟังและการพูดขณะทำการเขียนโปรแกรมได้อย่างมีประสิทธิภาพ

หลักไวยากรณ์ & สำนวนในบริบท

  • คำสั่งโปรแกรม: "import star" ในที่นี้หมายถึงการนำเข้าชุดคำสั่งทั้งหมดจากไลบรารีซึ่งเป็นหัวใจหลักที่ผู้เรียนจะต้องเข้าใจในการเขียนโปรแกรม.
  • การประกาศฟังก์ชัน: การใช้ "display.show" เป็นตัวอย่างของการเรียกใช้งานฟังก์ชันเพื่อแสดงผล ซึ่งช่วยให้ผู้เรียนเข้าใจการใช้งานฟังก์ชันใน Python ได้ดี.
  • การใช้คำสั่ง: "open a set of round parentheses" เป็นวิธีการที่แสดงถึงการเรียกใช้งานฟังก์ชันใน Python ซึ่งช่วยเสริมสร้างทักษะการพูดเกี่ยวกับการเขียนโปรแกรม.

การเรียนรู้โครงสร้างเหล่านี้จะทำให้คุณสามารถใช้ภาษาอังกฤษในการพูดคุยเกี่ยวกับโปรแกรมมิ่งและเทคโนโลยีได้อย่างคล่องแคล่วมากขึ้น

กับดักการออกเสียงที่พบบ่อย

ในวิดีโอนี้ ผู้พูดใช้คำศัพท์ที่อาจเป็นอุปสรรคสำหรับผู้เรียนภาษาอังกฤษ เช่น "microbit", "USB", และ "pythons" โดยเฉพาะการออกเสียงคำว่า "microbit" ซึ่งจำเป็นต้องเน้นเสียงที่สอง และการออกเสียงคำว่า "Python" ที่มักมีการพูดผิดเป็น "พิธอน" แทนที่จะเป็น "ไพธอน" การฝึก ปรับปรุงการออกเสียงภาษาอังกฤษ ให้ถูกต้องจะช่วยให้คุณฟังและพูดได้ชัดเจนขึ้น

การใช้เทคนิค ชาโดว์อิ้งภาษาอังกฤษ กับวิดีโอเหล่านี้จะช่วยให้คุณพัฒนาทักษะการฟังและพูดในเชิงลึกมากขึ้น สามารถนำไปใช้ในชีวิตประจำวันได้อย่างมั่นใจ

เทคนิค Shadowing คืออะไร?

Shadowing เป็นเทคนิคการเรียนรู้ภาษาที่ได้รับการรับรองทางวิทยาศาสตร์ พัฒนาขึ้นสำหรับการฝึกนักแปลมืออาชีพ วิธีการนี้เรียบง่ายแต่ทรงพลัง: คุณฟังเสียงภาษาอังกฤษจากเจ้าของภาษาและพูดตามทันที — เหมือนเงาที่ตามผู้พูดด้วยช่วงเวลาห่าง 1-2 วินาที การวิจัยแสดงว่าเทคนิคนี้ปรับปรุงความแม่นยำในการออกเสียง ทำนองเสียง จังหวะ การเชื่อมเสียง การฟังเข้าใจ และความคล่องแคล่วในการพูดได้อย่างมีนัยสำคัญ

เลี้ยงกาแฟเราสักแก้ว