Saltar navegación

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

Arduino: the Arduino board (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 16 de enero de 2022 por David G.

112 visualizaciones

Descargar la transcripción

Hello and good morning 00:00:00
today I am going to show you 00:00:06
how a real arduino board works. Until 00:00:07
now you've just been programming using a 00:00:11
simulation 00:00:13
but you can see I now have 00:00:16
a real arduino board on the right 00:00:18
side of your screen 00:00:20
it looks similar to the one in 00:00:24
the simulation 00:00:26
here in the upper part we have 00:00:29
the digital connections the same way you've 00:00:31
been using and here we have a 00:00:33
protoboard with three LED already connected 00:00:36
yellow green and red 00:00:40
each one is connected to its own 00:00:43
wire and down here 00:00:45
I have the ground connector 00:00:48
and they are all connected to the 00:00:56
arduino board 00:00:58
so I can connect these three to 00:01:02
connector numbers thirteen twelve and eleven and 00:01:05
then the ground will close the circuit 00:01:10
and the three other connectors will give 00:01:12
or not energy to the protoboard 00:01:15
so now we have everything we need 00:01:18
for the real one 00:01:20
now for the simulation we can connect 00:01:25
everything the same way and I'm going 00:01:27
to do it like this 00:01:30
now I'm going to connect the three 00:01:34
LED these from the library 00:01:36
so click and drag 00:01:42
and we can change the colors to 00:01:51
yellow 00:01:53
and green 00:01:56
and then read and now we need 00:01:59
the three resistors as well all with 00:02:01
two hundred and twenty ohms 00:02:04
and remember that these just get connected 00:02:09
to the cathode or the straight side 00:02:11
of the LED 00:02:13
so now I'm going to connect the 00:02:26
LED the first two thirteen is 00:02:28
going to be the red one 00:02:31
and the next will be the green 00:02:35
one to twelve 00:02:37
and then this one will be yellow 00:02:39
it doesn't matter if they cross each 00:02:42
other they're still connected with each one 00:02:44
crossing above the previous one 00:02:46
and also we will add the ground 00:02:49
to this horizontal line black as always 00:02:52
and then one here 00:03:00
how about if i connect it in 00:03:06
a different way just to see it 00:03:07
more clearly so yellow is actually going 00:03:10
to move here 00:03:13
and then read here so the colors 00:03:16
will change to correspond as well just 00:03:18
so you can see it better 00:03:21
okay now we have all three resistors 00:03:28
connected to ground and the LED are 00:03:30
connected to the wires 00:03:33
now I have the same exact circuit 00:03:43
on the real bored with the same 00:03:45
connections so now we are going to 00:03:47
program the simulation first and we're going 00:03:49
to do it the same way that 00:03:53
we programmed the LED sequence 00:03:55
so we go up to the code 00:03:59
and first we need a thirteen to 00:04:01
be defined as high or on 00:04:05
and then it will wait or continue 00:04:14
shining for one second 00:04:15
and then off or low 00:04:20
and we will duplicate and repeat this 00:04:25
same sequence with twelve and eleven 00:04:27
so just remember you can right click 00:04:32
to duplicate and then change the numbers 00:04:33
eleven and 00:04:45
eleven 00:04:48
ok everything has been programmed properly 00:04:49
we can close this a code box 00:04:53
just to see it better and check 00:04:55
the simulation and it works perfectly 00:04:58
now the idea of simulations is that 00:05:01
they're really useful to check if everything 00:05:05
has been designed properly because sometimes we 00:05:07
make mistakes when we're designing and doing 00:05:10
the simulation before making the real circuit 00:05:13
is always a good idea 00:05:15
now that we know that the simulation 00:05:18
will work how can we program the 00:05:20
real circuit the one we have here 00:05:23
if we want to program it directly 00:05:26
will you need the code which we 00:05:31
know is over here so if you 00:05:34
pull it back up 00:05:35
we don't want the blocks though we 00:05:37
need something else so if you go 00:05:39
to this drop down and we want 00:05:41
to see the text so this text 00:05:44
is the actual code for the program 00:05:46
and this is what we are going 00:05:49
to upload to the real arduino board 00:05:50
so you right click and copy and 00:05:52
we're going to open a new program 00:05:55
called arduino 00:05:57
IDE this is the 00:05:58
software that we use to program the 00:06:00
real board 00:06:02
now I'm going to just delete the 00:06:04
code that appears by default and I 00:06:07
will paste the code that we generated 00:06:09
from the simulator 00:06:11
okay let me repeat that 00:06:14
so here where we code the blocks 00:06:17
are translated into text and this text 00:06:19
is what I have copied and pasted 00:06:22
over here to the arduino IDE 00:06:25
program 00:06:27
so now that I have this program 00:06:30
this is the code I'm going to 00:06:32
upload directly to the real arduino board 00:06:33
so first we need to connect the 00:06:38
arduino board to the computer with this 00:06:41
usb wire can you see it 00:06:44
now I'm going to connect it directly 00:06:48
to the computer 00:06:50
and now you can see the arduino 00:06:53
board has some shining green lights here 00:06:55
and over here so we know it's 00:06:59
so now the board is connected to 00:07:03
the computer and I've opened the application 00:07:04
arduino IDE and I'm going to 00:07:08
upload the code to the first thing 00:07:10
is to check that the program is 00:07:13
correct so I click this checkmark and 00:07:15
save it and down here it says 00:07:17
there's no mistakes so it will work 00:07:20
and now i can upload using this 00:07:23
arrow 00:07:25
and now the arduino board will have 00:07:27
the code 00:07:29
and if we look at the board 00:07:32
we can see that the allergies are 00:07:34
shining it looks exactly the same way 00:07:35
that the simulation looks 00:07:37
so to repeat I have programmed the 00:07:40
arduino board using this usb connector to 00:07:43
the computer and using the program arduino 00:07:46
IDE 00:07:49
then I pasted the code 00:07:52
that was generated from the blocks 00:07:55
and they are translated into code and 00:07:59
this is what the program needs to 00:08:01
have so now the real arduino board 00:08:03
works the same way that the simulation 00:08:06
does 00:08:08
now maybe some of you are wondering 00:08:11
or thinking that the computer is controlling 00:08:13
the LED that are shining but 00:08:15
it's not now how can I prove 00:08:17
because if we unplug the usb wire 00:08:22
the arduino board would be off because 00:08:30
the computer is providing energy to the 00:08:34
board but what happens if i unplug 00:08:36
this wire 00:08:39
okay so here we can see now 00:08:50
that the board has no energy and 00:08:52
it won't work anymore 00:08:54
but I can provide energy from somewhere 00:08:56
else from a different source 00:08:59
this wire here is coming from a 00:09:02
different source of energy and we can 00:09:03
connect it here and now the arduino 00:09:06
is not connected to the computer any 00:09:08
more but it has it's own source 00:09:10
of energy and again the elegies are 00:09:12
changing so it means that the program 00:09:15
has been uploaded directly to the board 00:09:16
and is stored in its memory okay 00:09:18
so an arduino board is a device 00:09:22
that can be programmed and it can 00:09:25
run any program that you want by 00:09:27
itself the only thing that it needs 00:09:29
is a source of energy now and 00:09:31
you can see that it works and 00:09:33
this is very important because sometimes these 00:09:35
boards are used for robots and they 00:09:37
will control the robot without the help 00:09:39
of any compete 00:09:41
better so I hope this tutorial has 00:09:42
been interesting for you and now you've 00:09:45
seen a real arduino board 00:09:47
Idioma/s:
en
Autor/es:
David Gonzalez Arroyo, Alyssa Fantel
Subido por:
David G.
Licencia:
Reconocimiento - No comercial - Compartir igual
Visualizaciones:
112
Fecha:
16 de enero de 2022 - 23:11
Visibilidad:
Público
Centro:
IES MARIE CURIE Loeches
Duración:
09′ 56″
Relación de aspecto:
1.78:1
Resolución:
1920x1080 píxeles
Tamaño:
147.15 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid