Activa JavaScript para disfrutar de los vídeos de la Mediateca.
robotica1 - 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:
Well, we are going to explain how to create and how to do the practice of Arduino.
00:00:00
We use Tinkercad, so you must go to the page of Tinkercad and wait a minute because I want
00:00:09
to show how to enter.
00:00:23
The first, in this page you have different ways to enter. One of these is join to a class,
00:00:26
so clicking join to the class and now type the code that you have in your class,
00:00:39
that is this, so now click and the nickname is not whatever you want,
00:00:47
It must be an ordenador and a number from 1 to 15.
00:00:55
So I have to choose 6 and here we are in Tinkercad.
00:01:09
Now here on the left you have different things that you can do.
00:01:22
You can use Tinkercad to create your own designs for the 3D printer and it's very easy and
00:01:32
quite nice.
00:01:41
But we also use it to create circuits and to do the simulation of circuits.
00:01:42
And in this case we are going to use it to create circuits and then you are going to
00:01:53
download the program to the Arduino.
00:01:58
So first of all, click in circuits.
00:02:04
And here you have different options.
00:02:07
So click a new circuit and think about the circuit that you want to create.
00:02:11
Obviously the easier one is with just only one LED.
00:02:20
And it's very easy.
00:02:26
First of all, take the board.
00:02:27
You know this board because we are using the board with the polimeter.
00:02:32
Then take a LED.
00:02:39
You know that the LED just only can work if you connect with the right polarity.
00:02:43
Then take a resistor.
00:02:52
My advice is that change the position of the resistor.
00:02:56
The value for this resistor and the Arduino and the work condition in the Arduino, the
00:03:02
best is 220 ohms. So take the resistor in the right place and now connect the
00:03:08
circuit to the Arduino. LF is an output, it's a digital output, so
00:03:24
you must connect in digital pin. One goes to ground and the other is in the pin
00:03:35
whatever you want. For example we are going to connect to the pin 7. So now we
00:03:47
have the connection, this is the right connection, but we must do the simulation
00:03:56
and to do the simulation we must create our code. So click in code and now we
00:04:01
have something here it is similar very similar that you have in in scratch
00:04:08
because they are blocks also so they take care because although you have here
00:04:19
this code in this way it doesn't work so if we do this simulation it doesn't work
00:04:28
Can you see? Well, it doesn't work because this code is just only if you connect the LED in the pin 13.
00:04:37
This is a very special pin. But if you connect the LED in another pin, you must change the code.
00:04:50
And instead of this, you must use this one, this block.
00:04:59
and here you must indicate the pin in where you have it, so in this case 7, so
00:05:07
you have it. Now that the code is this. It's a very simple program that makes
00:05:29
blink the left. So now if you do the simulation now you have a good result in
00:05:43
the simulation. Well the problem is that it's not blinking because it's always in
00:05:51
So, if you want to blink, you must change it to low.
00:06:04
Now it's blinking.
00:06:11
Well, this is the first part.
00:06:20
The simulation that is nothing that you make.
00:06:22
But now we are going to transform this in something real.
00:06:28
So, you need to download the code and to download the code you must click here, in the arrow.
00:06:34
Then you have downloaded the code here, you have the code here, can you see it?
00:06:46
So, what you must do, do the connection, the real connection, LED, resistor and Arduino,
00:06:53
arduino the three elements and then open the arduino idle and now
00:07:02
well take take care that you have the right connection of the arduino and the port
00:07:20
and now just load the program that you have downloaded from the tinkercad and here you
00:07:27
have the code that the code is very easy to understand because it's more or less the same
00:07:57
that the code you have in the blinking the only thing that you have changed is the pin mode
00:08:02
that now is 7 instead of 13 um and nothing more because the other thing are the same
00:08:08
so when you have the program the the rest of the process is the same uh take care
00:08:17
that the right port etc and then clicking in in the arrow you must you you can download the program
00:08:24
to the board you are doing a word and you have the real result of this
00:08:34
uh that is all for today and i think and i hope you can do it without problem
00:08:42
be patient because sometimes the problem can be just a cable or something that is wrong
00:08:50
so make it possible that you can a good result at the first time
00:08:58
but it's the way you must repeat if you need and don't worry about the time because i give you
00:09:04
the time that you need and it's all for today i hope you you can enjoy it
00:09:12
- Autor/es:
- Isabel Lafuente
- Subido por:
- Isabel L.
- Licencia:
- Reconocimiento - No comercial
- Visualizaciones:
- 82
- Fecha:
- 16 de mayo de 2022 - 15:12
- Visibilidad:
- Público
- Centro:
- IES JOSÉ SARAMAGO
- Duración:
- 09′ 20″
- Relación de aspecto:
- 1.78:1
- Resolución:
- 1920x1080 píxeles
- Tamaño:
- 26.49 MBytes