1 00:00:00,000 --> 00:00:13,820 Good morning, you have already registered in the www.tinkercad.com webpage, so you will be able to log in and you will be able to see something like that. 2 00:00:14,339 --> 00:00:21,940 Ok, in Tinkercad.com there are different possibilities, we can create 3D designs, but now we are going to create circuits. 3 00:00:21,940 --> 00:00:29,440 So we click on this label, circuits, and now, I have already done a lot of designs, but you will have no one. 4 00:00:29,440 --> 00:00:34,439 So, anyway, you have to click on Crear nuevo circuito, create new circuit. 5 00:00:34,439 --> 00:00:38,439 Click on it and the screen will change. 6 00:00:38,439 --> 00:00:40,439 Something like that will appear, ok? 7 00:00:40,439 --> 00:00:42,439 Something like this, I mean. 8 00:00:42,439 --> 00:00:45,439 Here, on the right, you have the library of components. 9 00:00:45,439 --> 00:00:47,439 We will click and drag them to use them. 10 00:00:47,439 --> 00:00:52,439 Well, the first thing we need, well, for this exercise the basic library is enough. 11 00:00:52,439 --> 00:00:56,439 So we will move a little bit down and now we have the protoboard. 12 00:00:56,439 --> 00:01:01,240 a protoboard. Click and drag and now we will have the protoboard. The protoboard is a way 13 00:01:01,240 --> 00:01:07,760 to connect things. We will study it in one minute. The next component we need is the 14 00:01:07,760 --> 00:01:15,760 Arduino board, so we click it here. We will also need an LED. An LED is a tiny bulb, a 15 00:01:15,760 --> 00:01:23,900 really small one. And we will also need a resistor. The first thing we have already 16 00:01:23,900 --> 00:01:27,680 clicking and dragging and we click and drag and we have everything we need on 17 00:01:27,680 --> 00:01:33,319 the screen. The first thing we need is change the value of the 18 00:01:33,319 --> 00:01:41,579 resistance. This one by default is one kilo ohms, one. So but we need 220 ohms so 19 00:01:41,579 --> 00:01:46,159 we change the number 220 ohms and we are sure that instead of having kilo ohms we 20 00:01:46,159 --> 00:01:51,200 have ohms. So now we have the resistor we want. The resistor has to be connected to 21 00:01:51,200 --> 00:02:01,200 Because the Arduino board will provide a lot of energy and the LED doesn't support all the energy that will be provided. 22 00:02:01,200 --> 00:02:08,199 So the resistor will take part of the energy and that's why it's called protection resistor. 23 00:02:08,199 --> 00:02:11,199 Now the resistor is connected to the LED. Why is it connected? 24 00:02:11,199 --> 00:02:16,199 Because can you see that there are five green slots? Yes, there are five. 25 00:02:16,199 --> 00:02:20,819 five, and it means that these five slots are connected. Everything that is 26 00:02:20,819 --> 00:02:25,259 connected to one of these five slots is connected because there is a kind 27 00:02:25,259 --> 00:02:31,379 of metal stripe under the plastic. Every five green slots 28 00:02:31,379 --> 00:02:37,800 are connected here, here, here, here, but all of them are vertical as you can 29 00:02:37,800 --> 00:02:43,300 see, but there are four long horizontal resistors, stripes, lines I mean. 30 00:02:43,300 --> 00:02:48,699 This one, this one, this one and this one, but the rest of them are vertical. 31 00:02:48,699 --> 00:02:55,979 So now the resistor and the LED are connected, are connected through these five vertical 32 00:02:55,979 --> 00:02:56,979 slots. 33 00:02:56,979 --> 00:02:57,979 Okay. 34 00:02:57,979 --> 00:03:04,000 Another thing we want is connecting the Arduino board to the LED. 35 00:03:04,000 --> 00:03:06,520 So we are going to connect using wires. 36 00:03:06,520 --> 00:03:08,439 To use wires is really really easy. 37 00:03:08,439 --> 00:03:09,439 Using wires is really really easy. 38 00:03:09,439 --> 00:03:14,919 The only thing you need to do is click in here, for instance, and we are going to connect it to the ground, tierra. 39 00:03:15,379 --> 00:03:19,900 Ground, well, first of all, the color of the wire will be black. 40 00:03:20,120 --> 00:03:21,120 Why? Just because. 41 00:03:21,419 --> 00:03:24,620 Well, because it's the usual color for the ground connection. 42 00:03:25,039 --> 00:03:29,659 Ground connection, in this context, means the negative terminal of a battery. 43 00:03:29,759 --> 00:03:34,180 The Arduino board will work as a battery, a battery that can be programmed, 44 00:03:34,740 --> 00:03:38,520 that we will change its behavior according to the thing we want. 45 00:03:38,520 --> 00:03:42,620 but it's a kind of battery. So the ground now is connected to 46 00:03:42,620 --> 00:03:46,759 the straight part of the LED 47 00:03:46,759 --> 00:03:50,680 and you see that there are two parts. This one is straight, the other one is not. The straight part is 48 00:03:50,680 --> 00:03:54,780 called cathode in English and this is the one that is not straight. 49 00:03:55,840 --> 00:03:58,879 Usually, always, the wire connected to ground 50 00:03:58,879 --> 00:04:02,900 the one that usually is black has to be connected here. And the one 51 00:04:02,900 --> 00:04:06,699 the other one will be connected to connector number 52 00:04:06,699 --> 00:04:14,699 13. Why 13? Just because we want to. We can use for instance red, I don't know, just because. 53 00:04:15,259 --> 00:04:21,980 So now we have a closed circuit. This is the negative terminal and the negative terminal 54 00:04:21,980 --> 00:04:29,980 is connected to the LED and to the resistors using these two green, five green slots. Okay, 55 00:04:29,980 --> 00:04:35,819 so we have a closed circuit. Everything will work but we need to program the Arduino board, 56 00:04:35,819 --> 00:04:42,779 is the only thing we need. So how can we program it? We click here on code and something appears. 57 00:04:43,500 --> 00:04:49,980 Something is the programming window. There is already a block here, some blocks here, 58 00:04:49,980 --> 00:04:53,660 we don't want them, so click and drag them to the left and they will disappear. 59 00:04:55,180 --> 00:04:59,259 Well, our first program will be the blinking program. It's the first 60 00:04:59,259 --> 00:05:09,079 program everyone learns when you are starting programming. The LED will be shining for one 61 00:05:09,079 --> 00:05:14,540 second and then it will be off for one second. How can we program it? Okay, we are going 62 00:05:14,540 --> 00:05:21,220 to use two blocks. Definir pasador en alta y definir pasador en alta. Pasador, I don't 63 00:05:21,220 --> 00:05:27,879 like the translation. Pasador means a connector. There are 13 connectors here and because we 64 00:05:27,879 --> 00:05:38,199 We are using number 13, we are going to take 13 and the same with this one, 13 here. 65 00:05:38,199 --> 00:05:47,060 And this block will be useful to put it on and the second one will be useful to put it 66 00:05:47,060 --> 00:05:53,560 off or low, that's why this one is baja. 67 00:05:53,560 --> 00:05:59,800 If we connect this to block alta and then baja, the code, the program won't work. 68 00:05:59,800 --> 00:06:00,800 Why? 69 00:06:00,800 --> 00:06:07,040 Because we want it to be high for one second and then low for one second. 70 00:06:07,040 --> 00:06:08,740 So we need to make it wait. 71 00:06:08,740 --> 00:06:10,399 We need a wait block. 72 00:06:10,399 --> 00:06:12,939 The wait block is here in control. 73 00:06:12,939 --> 00:06:20,139 So we are going to use esperar un segundo, esperar un segundo, and now the program will 74 00:06:20,139 --> 00:06:21,139 work. 75 00:06:21,139 --> 00:06:26,000 mean 13 will be high for one second because it will be waiting for one 76 00:06:26,000 --> 00:06:30,199 second then it will be low for one second because it will be way it will be 77 00:06:30,199 --> 00:06:34,259 low for one second so now we have everything we have the LED connected to 78 00:06:34,259 --> 00:06:38,019 the protection resistor the two components has been connected to the 79 00:06:38,019 --> 00:06:42,860 Arduino board using the wires and now we can simulate it how can we simulate it 80 00:06:42,860 --> 00:06:47,939 clicking on initial simulation start simulation we click on it and everything 81 00:06:47,939 --> 00:06:53,160 is working and you can see the LED is on for one second, off for one second, and it's repeated 82 00:06:53,160 --> 00:06:55,120 again and again and again, okay? 83 00:06:55,500 --> 00:07:00,139 Now we can stop the simulation the moment we are sure it works, and now you will share 84 00:07:00,139 --> 00:07:00,639 it with me. 85 00:07:00,879 --> 00:07:02,040 How can you share it with me? 86 00:07:02,540 --> 00:07:03,819 There's a share button here. 87 00:07:04,180 --> 00:07:08,500 You click on compartir, share, and then on invitar a personas. 88 00:07:09,879 --> 00:07:12,240 This is the link you are going to share it with me. 89 00:07:12,560 --> 00:07:17,600 You can copy it, copy out, and then it's the one we are going to send to me by email. 90 00:07:17,600 --> 00:07:20,279 for instance, but anyway, if I paste here 91 00:07:20,279 --> 00:07:25,579 you can see that I will be able to open the same circuit again 92 00:07:25,579 --> 00:07:29,639 so this is the link, this one is the one you have to copy and paste 93 00:07:29,639 --> 00:07:33,360 to the email you are going to send to me and this way I will be able to 94 00:07:33,360 --> 00:07:37,100 know if you have already 95 00:07:37,100 --> 00:07:39,379 if you have really done the exercise, ok? 96 00:07:40,019 --> 00:07:42,620 so good luck with your exercise