Saltar navegación

Activa JavaScript para disfrutar de los vídeos de la Mediateca.

Arduino: blink (native speaker) - Contenido educativo

Ajuste de pantalla

El ajuste de pantalla se aprecia al ver el vídeo en pantalla completa. Elige la presentación que más te guste:

Subido el 19 de diciembre de 2021 por David G.

78 visualizaciones

Descargar la transcripción

You. 00:00:00
Good morning. 00:00:01
So you've already registered
in the Www.tinkercad.com website.
00:00:03
So you will be able to log in and you'll 00:00:09
see something like this in tinkercad.com.
There are different possibilities.
00:00:12
We could create 3D designs, for example. 00:00:17
But now we're going to create a circuit. 00:00:20
So we click on this label circuit
and here it shows that there have already
00:00:22
been some designs made,
but you will not have any yet.
00:00:27
So you're going to click
on Create new Circuit.
00:00:30
If you click on it, the screen will change 00:00:35
and something like this will appear
here on the right we have our library
00:00:37
of components that we will
click and drag to use.
00:00:43
But the first thing we need for this 00:00:47
exercise is here in the basic
components library.
00:00:49
So we will scroll down a little
bit and find the proto board.
00:00:53
Click and drag it and now it
will appear on the screen.
00:00:58
The proto board is a way
to connect things.
00:01:02
We'll learn more about it in a minute. 00:01:04
The next component we need
is the arduino board.
00:01:06
So click and drag. 00:01:09
We will also need an Led. 00:01:11
An Led is a tiny bulb,
a really, really small one.
00:01:13
And we will need a resistor. 00:01:17
So now we've clicked and dragged and we
have everything we need on the screen.
00:01:20
But the first thing we need to change
is the value of the resistance.
00:01:25
This one by default is in Kilo Ohms,
but we need to change it to 220 ohms.
00:01:31
And we have to be sure that instead
of having Kilo Ohms, we have ohms.
00:01:39
So now we have the resistor. 00:01:46
And the resistor has to be connected 00:01:48
to the Led because the arduino board will
provide a lot of energy and the Led
00:01:50
doesn't support all of the energy
that will be provided.
00:01:56
So the resistor will take part 00:01:59
of that energy and that's why it's
called a protection resistor.
00:02:01
Now the resistor is connected to the Led. 00:02:06
Why is it connected? 00:02:09
Well, you can see that there are five 00:02:10
green slots and it means that these
five slots are all connected.
00:02:13
Everything that is connected to one 00:02:19
of these five slots is connected because
there is a metal stripe under the plastic.
00:02:20
So every one of the five is connected. 00:02:26
But you can see that all
of these are vertical.
00:02:31
But there are also four
long horizontal lines.
00:02:35
There's one here, there's one here,
down here and down here.
00:02:38
And the rest of them are vertical. 00:02:47
So now the resistor and the Led are 00:02:49
connected through these
five vertical slots.
00:02:52
Another thing we want is to connect
the arduino board to the Led.
00:02:56
So we're going to connect
them using wires.
00:03:01
Using wires is really easy. 00:03:05
The only thing you need to do is click 00:03:07
in here and we are going to connect
it to the ground tierra first.
00:03:09
The color of the wire will choose it'll be 00:03:17
black because that is the usual
color for ground connection.
00:03:20
And ground connection in this context 00:03:25
means the negative
terminal of the battery.
00:03:27
The Arduino board will work as a battery,
a battery that can be programmed and we
00:03:30
will change its behavior
according to what we want.
00:03:35
But it's still a kind of battery. 00:03:37
So now the ground is connected
to the straight part of the Led.
00:03:40
There are two parts. 00:03:45
One is straight, the other one is not. 00:03:46
The one that is straight is
called the cathode in English.
00:03:49
And the bent one is the anode. 00:03:53
The wire is always connected 00:03:56
to the ground, or the one that is
usually black has to be connected here.
00:03:58
And the other one will be
connected to connector number 13.
00:04:02
Why 13? 00:04:07
Because we want to. 00:04:08
So now we have a closed circuit. 00:04:10
This is the negative terminal. 00:04:14
And the negative terminal is connected 00:04:17
to the Led and to the resistors
using these five green slots.
00:04:19
So we have a closed circuit. 00:04:24
Everything will work. 00:04:27
But now we need to program
the Arduino board.
00:04:30
So in order to program it, 00:04:36
we click on code and something appears
here with the programming window.
00:04:39
There are already some blocks
here and we don't want those.
00:04:44
So we're going to click and drag them
to the left and they will disappear.
00:04:47
Our first program will
be the blinking program.
00:04:53
It's the first program everyone learns
when you're starting to learn programming.
00:04:57
We want the Led to shine for 1
second and then be off for 1 second.
00:05:01
So how can we program it? 00:05:07
We are going to use two blocks,
definer basalore and alta.
00:05:11
The translation is not the best,
but basalor means connector.
00:05:18
So there are 13 connectors here. 00:05:23
And because we're using number 13, 00:05:26
we are going to program by selecting 13
and then the same for this one.
00:05:28
And this block will be useful to turn it 00:05:37
on and then the second one will
be useful to turn it off or low.
00:05:39
That's why we're changing it to bacha. 00:05:46
If we connect these two blocks, 00:05:49
the high and the low,
the program will not work well.
00:05:53
Why? 00:05:57
Because we want it to be high for 1
second and then low for 1 second.
00:05:58
So we are going to need to make it wait. 00:06:03
So we need the delay block. 00:06:06
The delay block is up here in control. 00:06:09
So we're going to select it and attach. 00:06:12
And now the program will work. 00:06:15
13 will be high for 1 second
and then delayed for 1 second.
00:06:19
And then it will be low for 1 second. 00:06:25
And then it'll wait another second. 00:06:28
So now we have everything. 00:06:31
We have the Led connected
to the protection resistor.
00:06:32
The two components have been connected
to the Arduino board using the wires.
00:06:36
And now we can simulate it
by clicking Initiate simulation.
00:06:41
So we click on it
and everything is working.
00:06:45
Now you can see the Led is on for 1 00:06:49
second, off for 1 second, and it's
repeated again and again and again.
00:06:51
So we can stop the simulation as
soon as we are sure that it works.
00:06:57
And now we're going to share
it with your teacher.
00:07:01
So there's a share button up here. 00:07:03
You click on it and then
invite other people.
00:07:05
And this is the link
you're going to share.
00:07:09
You can copy it and send it by email. 00:07:12
For example,
if I paste it up in a new tab,
00:07:15
you can see that I will be able
to open the same exact circuit again.
00:07:20
Here it is. 00:07:25
So this is the link you have to copy
and paste that you're going to send.
00:07:26
And this way, the teacher will be able to
know if you've already done the exercise.
00:07:30
So good luck. 00:07:34
Idioma/s:
en
Autor/es:
David Gonzalez Arroyo, Alyssa Fantel
Subido por:
David G.
Licencia:
Reconocimiento - No comercial - Compartir igual
Visualizaciones:
78
Fecha:
19 de diciembre de 2021 - 21:14
Visibilidad:
Público
Centro:
IES MARIE CURIE Loeches
Duración:
07′ 44″
Relación de aspecto:
1.78:1
Resolución:
1280x720 píxeles
Tamaño:
54.36 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid