Saltar navegación

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

Arduino: blink - 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 10 de enero de 2021 por David G.

217 visualizaciones

Descargar la transcripción

Good morning, you have already registered in the www.tinkercad.com webpage, so you will be able to log in and you will be able to see something like that. 00:00:00
Ok, in Tinkercad.com there are different possibilities, we can create 3D designs, but now we are going to create circuits. 00:00:14
So we click on this label, circuits, and now, I have already done a lot of designs, but you will have no one. 00:00:21
So, anyway, you have to click on Crear nuevo circuito, create new circuit. 00:00:29
Click on it and the screen will change. 00:00:34
Something like that will appear, ok? 00:00:38
Something like this, I mean. 00:00:40
Here, on the right, you have the library of components. 00:00:42
We will click and drag them to use them. 00:00:45
Well, the first thing we need, well, for this exercise the basic library is enough. 00:00:47
So we will move a little bit down and now we have the protoboard. 00:00:52
a protoboard. Click and drag and now we will have the protoboard. The protoboard is a way 00:00:56
to connect things. We will study it in one minute. The next component we need is the 00:01:01
Arduino board, so we click it here. We will also need an LED. An LED is a tiny bulb, a 00:01:07
really small one. And we will also need a resistor. The first thing we have already 00:01:15
clicking and dragging and we click and drag and we have everything we need on 00:01:23
the screen. The first thing we need is change the value of the 00:01:27
resistance. This one by default is one kilo ohms, one. So but we need 220 ohms so 00:01:33
we change the number 220 ohms and we are sure that instead of having kilo ohms we 00:01:41
have ohms. So now we have the resistor we want. The resistor has to be connected to 00:01:46
Because the Arduino board will provide a lot of energy and the LED doesn't support all the energy that will be provided. 00:01:51
So the resistor will take part of the energy and that's why it's called protection resistor. 00:02:01
Now the resistor is connected to the LED. Why is it connected? 00:02:08
Because can you see that there are five green slots? Yes, there are five. 00:02:11
five, and it means that these five slots are connected. Everything that is 00:02:16
connected to one of these five slots is connected because there is a kind 00:02:20
of metal stripe under the plastic. Every five green slots 00:02:25
are connected here, here, here, here, but all of them are vertical as you can 00:02:31
see, but there are four long horizontal resistors, stripes, lines I mean. 00:02:37
This one, this one, this one and this one, but the rest of them are vertical. 00:02:43
So now the resistor and the LED are connected, are connected through these five vertical 00:02:48
slots. 00:02:55
Okay. 00:02:56
Another thing we want is connecting the Arduino board to the LED. 00:02:57
So we are going to connect using wires. 00:03:04
To use wires is really really easy. 00:03:06
Using wires is really really easy. 00:03:08
The only thing you need to do is click in here, for instance, and we are going to connect it to the ground, tierra. 00:03:09
Ground, well, first of all, the color of the wire will be black. 00:03:15
Why? Just because. 00:03:20
Well, because it's the usual color for the ground connection. 00:03:21
Ground connection, in this context, means the negative terminal of a battery. 00:03:25
The Arduino board will work as a battery, a battery that can be programmed, 00:03:29
that we will change its behavior according to the thing we want. 00:03:34
but it's a kind of battery. So the ground now is connected to 00:03:38
the straight part of the LED 00:03:42
and you see that there are two parts. This one is straight, the other one is not. The straight part is 00:03:46
called cathode in English and this is the one that is not straight. 00:03:50
Usually, always, the wire connected to ground 00:03:55
the one that usually is black has to be connected here. And the one 00:03:58
the other one will be connected to connector number 00:04:02
13. Why 13? Just because we want to. We can use for instance red, I don't know, just because. 00:04:06
So now we have a closed circuit. This is the negative terminal and the negative terminal 00:04:15
is connected to the LED and to the resistors using these two green, five green slots. Okay, 00:04:21
so we have a closed circuit. Everything will work but we need to program the Arduino board, 00:04:29
is the only thing we need. So how can we program it? We click here on code and something appears. 00:04:35
Something is the programming window. There is already a block here, some blocks here, 00:04:43
we don't want them, so click and drag them to the left and they will disappear. 00:04:49
Well, our first program will be the blinking program. It's the first 00:04:55
program everyone learns when you are starting programming. The LED will be shining for one 00:04:59
second and then it will be off for one second. How can we program it? Okay, we are going 00:05:09
to use two blocks. Definir pasador en alta y definir pasador en alta. Pasador, I don't 00:05:14
like the translation. Pasador means a connector. There are 13 connectors here and because we 00:05:21
We are using number 13, we are going to take 13 and the same with this one, 13 here. 00:05:27
And this block will be useful to put it on and the second one will be useful to put it 00:05:38
off or low, that's why this one is baja. 00:05:47
If we connect this to block alta and then baja, the code, the program won't work. 00:05:53
Why? 00:05:59
Because we want it to be high for one second and then low for one second. 00:06:00
So we need to make it wait. 00:06:07
We need a wait block. 00:06:08
The wait block is here in control. 00:06:10
So we are going to use esperar un segundo, esperar un segundo, and now the program will 00:06:12
work. 00:06:20
mean 13 will be high for one second because it will be waiting for one 00:06:21
second then it will be low for one second because it will be way it will be 00:06:26
low for one second so now we have everything we have the LED connected to 00:06:30
the protection resistor the two components has been connected to the 00:06:34
Arduino board using the wires and now we can simulate it how can we simulate it 00:06:38
clicking on initial simulation start simulation we click on it and everything 00:06:42
is working and you can see the LED is on for one second, off for one second, and it's repeated 00:06:47
again and again and again, okay? 00:06:53
Now we can stop the simulation the moment we are sure it works, and now you will share 00:06:55
it with me. 00:07:00
How can you share it with me? 00:07:00
There's a share button here. 00:07:02
You click on compartir, share, and then on invitar a personas. 00:07:04
This is the link you are going to share it with me. 00:07:09
You can copy it, copy out, and then it's the one we are going to send to me by email. 00:07:12
for instance, but anyway, if I paste here 00:07:17
you can see that I will be able to open the same circuit again 00:07:20
so this is the link, this one is the one you have to copy and paste 00:07:25
to the email you are going to send to me and this way I will be able to 00:07:29
know if you have already 00:07:33
if you have really done the exercise, ok? 00:07:37
so good luck with your exercise 00:07:40
Autor/es:
David Gonzalez Arroyo
Subido por:
David G.
Licencia:
Reconocimiento - No comercial - Compartir igual
Visualizaciones:
217
Fecha:
10 de enero de 2021 - 17:11
Visibilidad:
Público
Centro:
IES MARIE CURIE Loeches
Duración:
07′ 44″
Relación de aspecto:
1.78:1
Resolución:
1920x1080 píxeles
Tamaño:
22.12 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid