Activa JavaScript para disfrutar de los vídeos de la Mediateca.
Arduino: sequence (native speaker) - Contenido educativo
Ajuste de pantallaEl ajuste de pantalla se aprecia al ver el vídeo en pantalla completa. Elige la presentación que más te guste:
good morning today we are going to
00:00:00
create a new circuit
00:00:02
okay I have already logged into tinkercad and
00:00:05
now I am going to click on
00:00:08
create new circuit
00:00:10
so now I'm in and as always
00:00:14
the first thing I need is the
00:00:17
protoboard and the arduino board so
00:00:18
I'm going to now click and drag
00:00:21
the LED
00:00:24
because in this exercise instead of controlling
00:00:26
one single LED we're going to control
00:00:29
four of them so it will be
00:00:31
a sequence of LED ds
00:00:33
so i'm going to click and drag
00:00:37
one of them
00:00:38
and this one is connected here and
00:00:40
here and remember that the vertical lines
00:00:43
are all connected together the set of
00:00:45
five of them so i have one
00:00:47
LED I will have a second one
00:00:49
and a third one and a fourth
00:00:51
one
00:00:53
now the first one is going to
00:00:56
be controlled with pin number thirteen so
00:00:57
we can click and drag
00:01:02
and remember we want to connect it
00:01:05
to the anode the one that is
00:01:06
not straight
00:01:08
with this one the second one we
00:01:11
can connect it to number twelve
00:01:13
and the third one to number eleven
00:01:19
and the fourth one to ten
00:01:22
but remember now we need to close
00:01:26
the circuit so all of them are
00:01:28
going to be connected to the ground
00:01:30
to this connector but I'm going to
00:01:32
use it in a different way
00:01:34
this one will be the ground so
00:01:37
I'm going to connect it here and
00:01:38
remember to change it to black
00:01:41
and the same for this one
00:01:45
I need more room so i'm just
00:01:52
going to shift them over
00:01:53
also change it to black and then
00:01:57
we'll do it again for the third
00:01:59
another last one
00:02:06
okay so now I need the resistor
00:02:11
and remember that every time we send
00:02:16
current to an LED we need a
00:02:18
protection resistor
00:02:20
and we also want to make sure
00:02:23
that it's two hundred and twenty ohms
00:02:24
so I will click on the resistor
00:02:26
and I can type two hundred and
00:02:29
twenty but instead of kilo ohms
00:02:30
I want ohms so now I have my
00:02:32
resistor and I'm going to connect it
00:02:35
here
00:02:37
now is the resistor connected to the
00:02:39
four LED because along this
00:02:41
horizontal line everything is connected to each
00:02:44
other so the resistor is connected to
00:02:47
the LED ds using this horizontal strip
00:02:49
now i'm going to use the ground
00:02:52
connector and I'm going to connect it
00:02:54
to the resistor
00:02:56
if I shifted over you can probably
00:03:03
see it more clearly
00:03:05
okay so this is the ground connector
00:03:08
and through the resistor is connected to
00:03:10
all four LED
00:03:12
so now i have all of the
00:03:15
connections and now it's time to program
00:03:16
the arduino board because it's the one
00:03:19
that will control the four bulbs
00:03:21
so I click on code up at
00:03:26
the top and I'm going to get
00:03:28
rid of the one already there
00:03:30
so I'm going to program the arduino
00:03:32
board this way so we want number
00:03:34
thirteen to be on for one second
00:03:36
and then it will be off and
00:03:40
the moment it turns off the next
00:03:42
one will start shining and then the
00:03:43
next and the next so the first
00:03:45
thing we're going to do is define
00:03:47
number thirteen
00:03:49
to choose thirteen on high or on
00:03:52
then we want it to wait or
00:03:56
be shining for one second
00:03:59
and then off for one second so
00:04:02
thirteen and low or off
00:04:04
then we want the same to happen
00:04:08
with twelve and eleven and ten so
00:04:09
we can either click on that and
00:04:12
drag it again
00:04:14
or
00:04:17
we can right click and click duplicate
00:04:19
which is much faster
00:04:23
then we have the same plucks so
00:04:26
now all we have to do is
00:04:28
change the numbers so we're going to
00:04:29
do the same for number twelve
00:04:30
duplicate one more time
00:04:35
so that it is for number eleven
00:04:39
and one more time for the last
00:04:45
one of number ten
00:04:47
so ten
00:04:54
and ten
00:05:02
so now we have these four separate
00:05:04
parts of the program but we want
00:05:07
to connect all of them together so
00:05:08
if we click and drag they're all
00:05:10
connected to make one sequence and it's
00:05:12
the same idea for all of them
00:05:15
on for one second waiting for one
00:05:17
second and then off and as soon
00:05:19
as the first one turns off the
00:05:21
second one
00:05:23
we'll begin and if I click initiate
00:05:24
simulation we can see just that can
00:05:27
you see the sequence okay so now
00:05:32
it's your turn to try this exercise
00:05:34
- Idioma/s:
- Autor/es:
- David Gonzalez Arroyo, Alyssa Fantel
- Subido por:
- David G.
- Licencia:
- Reconocimiento - No comercial - Compartir igual
- Visualizaciones:
- 114
- Fecha:
- 10 de enero de 2022 - 22:32
- Visibilidad:
- Público
- Centro:
- IES MARIE CURIE Loeches
- Duración:
- 05′ 39″
- Relación de aspecto:
- 16:10 El estándar usado por los portátiles de 15,4" y algunos otros, es ancho como el 16:9.
- Resolución:
- 1728x1080 píxeles
- Tamaño:
- 15.73 MBytes