Saltar navegación

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

HAY QUE RESPETAR LAS IMAGENES - 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 febrero de 2021 por Isabel L.

89 visualizaciones

Descargar la transcripción

Well, today we are going to talk about how to use OpenSCAD. 00:00:00
OpenSCAD is an open source application that lets us create different figures to be printed within the printer, for example. 00:00:06
Nowadays it is a very interesting one because we are developing different things in this case. 00:00:21
As always you must download it and then when you have uploaded the folder and zip it and inside the folder 00:00:29
you can have different options to open the OpenSCAP in your computer 00:00:42
The environment for OpenSCAP is quite easy. It has two parts. You can change if you want the environment. You can change if you want to change the environment. You can change the environment. 00:00:56
But in any case, you have in this part the result of the things that you write in this other part. 00:01:21
You use command. 00:01:29
You have three main figures. 00:01:31
One is a sphere, the other is a cube, and the other is a cylinder. 00:01:34
What are the parameters of one sphere? 00:01:41
One sphere just only has one parameter, which is its radio. 00:01:44
so just only type the radio for this one, semicolon, and click in the 5 key 00:01:47
so I can see the result of this command 00:02:03
this is the result, it's an sphere 00:02:10
Instead of an sphere, I can create also a cylinder 00:02:14
Cylinders have two bases and a weight 00:02:20
So, for example, weight 10 and two bases must be one 10 and the other 10 00:02:27
And the result is this cylinder 00:02:38
If you change any parameter, for example the width, the result is different 00:02:42
Well, cylinder let us also change the parameter, create another figure, for example if one of the base is O 00:02:52
instead of cylinder what you have is a cone 00:03:03
this is a cone, because one of the base is O 00:03:10
later we are going also to know how to create for example different types of pyramids 00:03:15
because we can add it another parameter which you can change with $fn and then the number of faces 00:03:24
for example you can add it 6 faces and what you have instead of cone is a pyramid 00:03:34
something similar happens with cube 00:03:47
cube have indeed three main parameters, which are the width, the height, and the length. 00:03:59
So if you, for example, type in this way, the result is this. 00:04:27
So apart of these main figures, that are the base of the 3D design, you can also move something, 00:04:40
for example, there are two main movements, which is translation and rotation, for example, 00:04:50
If I want to translate inside, I need to write the translation. 00:04:59
For example, I'm going to translate 0010. 00:05:14
If I do it this way, no, sorry, because it's this one, if I do the translation, I change. 00:05:20
So maybe if you want, you can center this figure. 00:05:34
Apart from the translation, you can do rotation 00:05:40
with this one. 00:05:52
So this is the rotation, if you want you can, 00:05:55
for example, rotate 30, that is the result. 00:05:58
So we have, the main idea is that you have 00:06:03
You have the simple things, the simple elements, as a putlet you can join different elements in order to have the figures that you want 00:06:08
So finally we can also use one interaction between two figures, for example 00:06:18
I have a cube and I want to do a hole in this one, so to do a hole I need a cylinder 00:06:30
A cylinder will have a very large, very light weight and very short diameter 00:06:42
so this is the cylinder if i sorry but because semicolon this is the result well in this case 00:07:02
we have two main figures we can use this this figure we can join which is the one operation 00:07:12
the the union of these and have just only a one one figure if we want 00:07:19
So another thing that I can do is to draw a hole, if I do the join, I can join for example with this command, union 00:07:26
So now this is just only one figure, that's the main idea 00:07:41
If you want to translate this or do something with it, you can do it 00:08:06
Or instead of union you can do a differences. But I think it's better if this is smaller. So I'm going to translate in the middle of this one. That can be used, can be used, can be, do it. 00:08:13
for example, center the cube. 00:08:44
And obviously what happened now 00:08:58
is that the cylinder must be bigger 00:09:00
and we must translate in order to pass through this one. 00:09:16
So if I want to translate, 00:09:25
the translation is the translation in z-axis, so it must be something like this 00:09:27
so now the drill is through it 00:09:57
so if now I do the differences, the difference 00:10:10
if now I do the difference 00:10:15
the result is that you have you have a hole in the other so so now we have you 00:10:25
can do also the interjection so now before doing more things you should 00:10:51
think about how you can create that, how you can create your own figures 00:11:00
I'm going to do one figure and I give you the tutorial of this figure 00:11:10
this is just only to know how to use OpenSCAD as a simple way 00:11:15
So, this is the first part of it. Second part, we are going to begin with a cube, a cube is not so big, just about a cube, for example, 10, 10, and 10 00:11:27
and it is centered in the middle of the axis 00:11:52
don't forget the semicolon 00:11:56
so I have the first figure 00:12:04
I want that the corner, instead of being so injured, must be smoother 00:12:08
so to do this I'm going also to do an sphere 00:12:18
so I know I have the cube and I have the sphere smaller it is so so big even 00:12:24
though I think I think a little well can be but maybe you know this is too small 00:12:59
this is can be enough because between 7 and I think is it is enough so what I 00:13:09
What I want to do is, in a cube, just only the interjection between the cube and the 00:13:17
sphere, the part of the cube and the sphere that both things, both objects, have in common. 00:13:30
Intersection. So now what we have is a cube 00:14:06
but the corners of the cube are smoother because it's what the sphere and the cube have in common 00:14:10
So now, in this cube I'm going to do numbers, you can do it in any way 00:14:24
There is an application that you can add it in your library and you can write numbers, for example 1, 2, 3, 4 00:14:32
and another application that I recommend is do the difference between the cube and the different spheres 00:14:41
So we are going to do the face in which you have the number 1, that is only just one hole 00:14:52
So to do this I must create an sphere with diameter must be for example 1 00:15:03
Now you can see it because this sphere is inside the cube, so you can see because the cube is opaque 00:15:13
You can change the opacity of the group if you want, but I think in this case it's better if you do the translation. 00:15:22
Where you want to translate, obviously, this sphere is in the middle, so the distance to one of the faces must be 5. 00:15:30
So if I say 5 0 0, maybe I can't see yet, but we are going to try. So here it is, our sphere. Can you see it? Here it is, the S-sphere. It's one point. The S-sphere is here. 00:15:53
you have the sphere, this sphere in the middle of the face you have in number 1, in number 3, in number 5, and in number 5 00:16:29
because you already have 6 faces, so you have this one in number 1, number 3, number 5 00:16:42
My advice is if you are organized enough, for example for number 1 you have this one 00:16:54
You can copy and paste for number 3, that you also have in the middle, but instead of C in this, obviously must be in another face 00:17:14
So must be in this other face 00:17:47
number 1, 3 and 5 00:17:50
but instead of this 00:17:57
must be 5 00:18:11
you also can use a 4 00:18:15
but you are in 4th of SO and I think it's better 00:18:17
so now if I 00:18:21
What I have is 1, 4, 1, 3, and 5. I have this one. 00:18:24
What happened with number 2? Well, for number 2 you can use the same. 00:18:34
I'm going to begin with this one, yes. 00:18:49
But what happened is the translation must be 5 00:18:57
and apart from this you also must have another 5 00:19:03
because they must be in the diagonal 00:19:10
must be 5 and what more? you are here 00:19:19
so now you are going to translate in the face in this angle 00:19:26
so must be 5 in this one 00:19:32
And now 3, 3, 3. So we have this one. So number 1 can be, if you use this type of things, number 3. 00:19:36
So what you want? Now you want that is in minus 5. In order to be in another face. In the face which is in the other side. 00:20:07
and we have this and 3 and here you have minus minus so if you rent every size 00:20:21
we have 2 1 2 so with this 2 you can you can create the 3 because 3 must be here 00:20:44
minus three here is five here is three and in the other is this is three minus 00:21:06
three this is five and this is mean you see it so if you're doing this way 00:21:24
if you're doing this way something happened because I have here and I want 00:21:39
this face so in three it must be five this so now we have one two and three 00:21:50
What happens with 4? 4 is 2, for 4, to create the 4 number 00:22:02
4 is double 2, so is 2, double, in which way it must be double? 00:22:11
Well, firstly, you must create in this phase, this phase is the opposite of 3 00:22:36
So it's the opposite of 3, it must be minus 5 00:22:43
And then you must do the different opposites 00:22:50
One is 3, 3 00:23:09
The other is minus 3, minus 3 00:23:19
The other is minus 3, 3 00:23:28
Oh, oh, oh, I'm going to get to you again 00:23:36
Sorry, I have said something 00:23:48
2, 2 is not good, it's opposite to 1, 1 is 5, so 2 minus 3, and this must be 3, 3, we 00:24:04
have opposite to 1 which is minus 5 I think is the opposite which is this this 00:24:49
is 4 so I'm going to delete 4 and then repeat 4 yes so now the opposite of 1 no 00:25:24
it's not the opposite of one one one one is the opposite of three so is two is minus yeah so now 00:25:40
now so this is two and using two we can create four so i'm going to copy this one 00:26:11
but 4 must be in which phase? 00:26:33
in the phase which is opposite to 1 00:26:45
so opposite to 1 means that 00:26:48
is this 1? 00:26:51
no, 1 is this 1 00:27:07
the opposite of 1 is this 00:27:12
no, the opposite of 1 is this 00:27:16
well, we have 2 in the opposite of 1 00:27:32
yeah, but it is not the opposite of 1 00:27:40
It's the opposite of 5 00:27:48
That's the problem 00:27:51
It's the opposite of 5 00:27:53
So the minus 5 is here 00:27:56
So we have these two 00:27:59
So we have 4 00:28:19
So we have 1, 2, 3, 4, and 5 00:28:51
5 is this one, but in this face, so we have 5, yes, and finally 6 is opposite to 1, no, but this one, 1, 2, 3, 4, 5, so 6 is opposite to 1, 00:29:02
and you can get 6 the same as 4 00:29:58
copied it 4, copied it 4 00:30:27
but where? 00:30:41
you must copied it 4 in where? 00:30:43
you must copied it 4 in the face which opposite to 1 00:30:45
this is 1 and this is the face opposite 00:30:50
so 1 is this, 1 is 5, so it's minus 5 00:30:56
but this is 4, and I want 6 00:31:10
so I need to add 2 more spheres 00:32:08
I need to add 2 more spheres 00:32:12
and the spher must be 00:32:22
one of these must be, what is this? 00:32:26
in I must be 3 and minus 3 00:32:30
must be 3 and minus 3 00:32:37
O is 3 00:32:46
and finally 00:33:16
you must be very meticulous 00:33:27
because if you aren't 00:33:35
you can't have you don't you don't do well so here you have one and we need to 00:33:37
repeat so we have all the numbers one two three four five and six well what 00:34:12
happen is not a whole so you want to create holes you must using the the 00:34:36
common difference so a you must wait we're going to do the union of the first 00:34:50
part of the of the figure and now we are going to do the differences I know if I 00:34:59
can do in just only one step I think it's better step by step our difference 00:35:35
and we're going to do the union here one union for one for two and for three so I 00:35:48
So I do the differences between each number, this one and this other one. 00:36:20
What we have now, instead of this, I have a whole. 00:36:41
So it's due to the union. 00:36:46
You can do the difference with the difference unions, I think. 00:36:49
So now it's the difference, till this one, and you have the result. 00:37:15
And the same for the rest of the numbers. 00:37:27
Number 5, we're going to do the union. 00:37:31
Number 2, we're going to do the union. 00:37:54
Number 4, another union. 00:38:13
And number 6, another union. 00:38:26
And then, you can do the differences, and instead of having this one, what you have 00:38:42
are holes. 00:38:50
So you have your figure, this is your figure, finally if you want to export to STL code 00:38:52
you can do it but you must render it firstly, to export this you must press 56, do a renderation 00:39:01
and that you can have the STL file 00:39:16
let's take some time 00:39:21
with this STL file you can transform from STL file to 00:39:23
I'm going to export 00:39:35
we want save as stl format so we have we can it is safe you can do better the 00:39:44
holes if you want so well so now the last part so the last part is using 00:40:18
repetir host, we can transform the figure to gcode, and the gcode is what you must use 00:40:58
to print. 00:41:18
So now I'm going to get, I haven't, so we will finish it in class. 00:41:19
So this is the first part of the activity. 00:41:40
Idioma/s:
en
Autor/es:
ISABEL
Subido por:
Isabel L.
Licencia:
Reconocimiento - Compartir igual
Visualizaciones:
89
Fecha:
16 de febrero de 2021 - 18:03
Visibilidad:
Público
Centro:
CP INF-PRI-SEC EL CANTIZAL
Duración:
41′ 46″
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:
1440x900 píxeles
Tamaño:
139.16 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid