Saltar navegación

Tarea 3: Video subtitulado - 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 27 de junio de 2023 por M.jose G.

7 visualizaciones

Video en inglés con subtítulos.

Descargar la transcripción

We are going to create our first program. 00:00:02
For this we are going to create a new circuit. 00:00:06
Let's drag and drop the Arduino one board. 00:00:14
A LED. 00:00:21
And a resistor that we will change its value to 330. 00:00:26
Also we can turn it. 00:00:38
And connect one end of the LED. 00:00:43
To ground. 00:00:49
Negative. 00:00:50
And the other end of the LED to the resistor and pin number 7. 00:00:52
The Arduino board has 14 digital pins, that can be configured as outputs or inputs, and 6 analog pins which are inputs. 00:00:57
In addition the digital pins with the symbol of a wave, can also be used as analog. 00:01:18
In addition we have this pin which is an earth pin, together with these 2 and 2 pins at 3, 3V and 5V. 00:01:27
An Arduino program is made up of two distinct parts. 00:01:35
The first is the void setup, where we must configure the pins we will use, whether outgoing or incoming. 00:01:50
We will use the command pin mode the pin number, followed by the word output or input, depending on whether it is outgoing or incoming. 00:02:03
The second part of the programs is known as 00:02:21
Void loop or loop 00:02:25
This is the area where we will write the commands 00:02:29
That we want the components connected to the Arduino to run 00:02:32
Among the most important orders are 00:02:37
Digital write followed by the pin number and the words 00:02:40
High and low 00:02:47
High indicates that the pin is energized 00:02:52
and low means that the current has been cut off another of the most commonly used commands is 00:02:58
delay followed by the number that representing milliseconds and is used to generate a stop in 00:03:06
the program or to delay the execution of the following instructions in the case that we want 00:03:16
use one of the digital pins in an analog way we will have the command analog write 00:03:23
with the number of the digital pin to be used as analog input followed by a number between 0 and 00:03:32
255 once the circuit has been assembled with the electronic components we are going to write the 00:03:39
programming that will enable us to that this led is switched on and off to do so click on the code 00:03:52
button we move on to text and let's take advantage of this code which is the default code to write 00:03:58
our program we are going to write the led flashing program in the void setup structure we will 00:04:04
configure the pin through which current flows which is number seven in our circuit and in the 00:04:24
void loop we are going to indicate to the program how to turn this pin on and off. 00:04:31
In the digital write, we will write the pin number 7, and write high on the back, this causes current 00:04:38
to flow through that pin. Then we will write delay 1000 milliseconds, for a delay to occur or to wait 00:04:45
and keep that led lit. Now write again digita write. We will stop the current going out so 00:04:54
write pin number 7 and low. Finishing write a delay of 1 second. We test the code. There we have it. 00:05:02
I hope you enjoyed the exercise. See you soon. 00:05:20
Idioma/s:
en
Idioma/s subtítulos:
en
Autor/es:
María José González Muñoz
Subido por:
M.jose G.
Licencia:
Reconocimiento - No comercial - Compartir igual
Visualizaciones:
7
Fecha:
27 de junio de 2023 - 11:08
Visibilidad:
Clave
Centro:
IES LAS ENCINAS
Duración:
05′ 26″
Relación de aspecto:
1.78:1
Resolución:
1920x1080 píxeles
Tamaño:
15.74 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid