Activa JavaScript para disfrutar de los vídeos de la Mediateca.
Proyectos con Bitbloq - 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:
Persiana automática con sensor de luz y barrera de paso con sensor de proximidad
Oh, oh, oh, oh, oh, oh, oh Shadows come and go
00:00:00
Let the daylight show Hold me close, don't let go
00:00:09
In this moment glow Heartbeat like a drum
00:00:17
This is one of the end-of-course projects that we have, there is another one that we will see next
00:00:24
and this is something as simple as seeing how a plate, an electronic circuit with its connections
00:00:44
and provides current to an engine that will lift a little person if a little person is simulated
00:00:53
and will do it automatically depending on the light it receives in such a way that if we cover the light
00:01:01
the blind will open and if we uncover the light the blind closes for this we have used a
00:01:08
bit block board that has the light sensor connected to the sensor there and then here a
00:01:17
motor we are going to test it as the board is already programmed we do not even need to connect it
00:01:28
to a computer so that with some batteries that give current to the board and this to the
00:01:34
motor with all that the installation already works we are going to do a small test we cover the light
00:01:39
and see what it does, it reaches the end, now at the moment we uncover it should go down and that is
00:01:44
all, then we will see how the program has been designed, this has a program that is the one that
00:02:01
indicates in what direction the motor has to move, the axis of the motor and both to open and
00:02:06
to close and we are also indicating to it, we are going to indicate in what conditions it should do it and
00:02:14
and how long the motor should be rotating in one direction or in another.
00:02:20
As for the conditions, it is clear.
00:02:24
When it receives light, it rotates in one direction and when it does not receive it, it must rotate in another direction.
00:02:26
And then the plate also checks the state in which the ring is.
00:02:31
If the ring is already raised, logically, although we cover here,
00:02:36
the motor should not rotate further up.
00:02:42
And when it is lowered, it should not go down further.
00:02:46
That is this little project at the end of the course.
00:02:49
This is the program that manages the movement of the motor.
00:02:54
This program is made with blocks and within a generic application that is BitBlock.
00:02:59
BitBlock allows us to place the board with which we are working
00:03:07
and the elements that are going to intervene.
00:03:13
Here is the motor that will allow us to turn it in one direction or another and at the bottom we have the light sensor.
00:03:17
How is it programmed? It has been programmed in such a way that initially for this program we declare some variables
00:03:25
some variables that will be called state, it will indicate if the pressure is already up or down
00:03:37
and the sensor, initially we give it value 0 and throughout the program we will give each one its value
00:03:43
we start by saying that the value that makes a reading of the sensor
00:03:52
and for that we say that the sensor variable is going to be worth the result of that reading
00:03:57
that reading is in a range of values that we are going to use to compare
00:04:03
next we send it to wait 500 milliseconds, that is, half a second, so that it does not do a
00:04:11
reading immediately afterwards, if not, it may be that it does too many readings at
00:04:19
the same time and then the program can give us errors here we establish a loop if a
00:04:24
comparativa y aquí abajo otro vamos a ver qué hace dentro de ese bucle dentro de ese bucle le
00:04:29
decimos que si la variable sensor es la que acaba de leer aquí arriba es mayor o igual que 75 y
00:04:36
además la variable estado es exactamente igual a 1 entonces ejecutamos que el motor gire en
00:04:45
clockwise. For how long is that motor going to rotate that will raise the pressure?
00:04:56
Around here, 4 seconds. And then the motor stops. And the variable state, since it has changed and
00:05:01
now the pressure would already be up, the variable would go to zero. Here we are with the
00:05:08
same loop, exactly the same, only the parameters change. If you look here we have a
00:05:15
value of 75 and here one of 25 and here the state variable was in 1 and here it is in 0 everything else
00:05:22
is almost almost the same here for example the engine what it does is turn in the opposite direction to the previous one
00:05:31
here it was clockwise and here counterclockwise its waiting time which is the same in both cases the
00:05:37
of the motor and we change the variable state again that already here it started at 0 the variable
00:05:44
we put it at 1 for the rest that is all this is the project that we have done for the end of the course
00:05:51
which is a project for a barrier that works through a distance sensor at the
00:06:20
moment when an object is placed in front of the barrier, it opens, changes the light,
00:06:26
passes through the green light and then after a few seconds the barrier will close
00:06:33
if we want to see it in operation only by interrupting it, it is more while the vehicle
00:06:40
is here the barrier will not go down because the sensor is detecting that there is something in front and it will not go down
00:06:47
but when it finishes passing the barrier goes down this project has been a matter of three phases
00:06:54
we said that one is the design of the pieces that make up the barrier the supports for
00:07:03
the different elements that has been designed using pinker cat which is a design program
00:07:11
and then it has been printed with a three-dimensional printer that is a little
00:07:18
slow but it has taken it out, it has taken it out well, then our partner Carlos has assembled everything
00:07:27
and he has placed the different elements inside, he has a plate that is a circuit that
00:07:33
plate has a programming that plate is called bit block and that plate allows us as we see
00:07:39
here in a different way we have the plate in the center and the motor the distance sensor
00:07:47
one light and another light and how is all this programmed because in a quite simple way
00:07:55
this is simply a program in which some variables are declared in this case the
00:08:02
distance variable then we also give some initial instructions so that the red light is turned on,
00:08:08
put the green one and move the motor to a certain position and finally we have
00:08:15
what would be the loop of the program itself that loop what it does is to see here now
00:08:22
if there is a line that is not right what it does is establish the initial variables and make a
00:08:33
series of checks if the distance variable is less or equal to a given reading what it will do
00:08:40
will be to turn on the led and turn off the other led move the servo to another position and wait five
00:08:48
seconds and in case the distance is greater because the vehicle has already passed because it has
00:08:56
nothing in front just do the opposite place the servo in another position turn on the red light and
00:09:02
turn off the green light that is the plan that is quite simple and that sometimes gives a
00:09:08
little war
00:09:14
from the audience
00:09:25
- Valoración:
- Eres el primero. Inicia sesión para valorar el vídeo.
- 1
- 2
- 3
- 4
- 5
- Idioma/s:
- Materias:
- Dibujo Técnico, Informática, Tecnología, Diseño de objetos, Programación
- Etiquetas:
- Robótica, Tecnología, TIC, 3d, Arduino
- Niveles educativos:
- ▼ Mostrar / ocultar niveles
- Educación de personas adultas
- Enseñanzas para el desarrollo personal y la participación
- Subido por:
- Arturo M.
- Licencia:
- Reconocimiento
- Visualizaciones:
- 40
- Fecha:
- 24 de junio de 2025 - 14:11
- Visibilidad:
- Público
- Centro:
- CEPAPUB SIERRA NORTE
- Duración:
- 09′ 34″
- Relación de aspecto:
- 1.78:1
- Resolución:
- 1280x720 píxeles
- Tamaño:
- 355.73 MBytes
Para publicar comentarios debes entrar con tu nombre de usuario de EducaMadrid.
Comentarios
Este vídeo todavía no tiene comentarios. Sé el primero en comentar.