1 00:00:01,580 --> 00:00:10,519 Good morning. So you've already registered in the www.tinkercad.com website. So you'll be able to 2 00:00:10,519 --> 00:00:16,579 log in and you'll see something like this. In tinkercad.com, there are different possibilities. 3 00:00:17,179 --> 00:00:23,739 We could create 3D designs, for example, but now we're going to create a circuit. So we click on 4 00:00:23,739 --> 00:00:28,879 this label, circuits, and here it shows that there have already been some designs made, but 5 00:00:28,879 --> 00:00:36,299 you will not have any yet. So you're going to click on create new circuit. If you click on it, 6 00:00:36,399 --> 00:00:43,380 the screen will change and something like this will appear. Here on the right, we have our 7 00:00:43,380 --> 00:00:49,320 library of components that we will click and drag to use. But the first thing we need for this 8 00:00:49,320 --> 00:00:56,679 exercise is here in the basic components library. So we will scroll down a little bit and find the 9 00:00:56,679 --> 00:01:02,920 protoboard. Click and drag it and now it will appear on the screen. The protoboard 10 00:01:02,920 --> 00:01:06,920 is a way to connect things, we'll learn more about it in a minute. The next 11 00:01:06,920 --> 00:01:12,459 component we need is the Arduino board, so click and drag. We will also need an 12 00:01:12,459 --> 00:01:18,719 LED. An LED is a tiny bulb, a really really small one, and we will need a 13 00:01:18,719 --> 00:01:23,200 resistor. So now we've clicked and dragged and we have everything we need 14 00:01:23,200 --> 00:01:28,180 on the screen. But the first thing we need to change is the value of the resistance. 15 00:01:30,879 --> 00:01:41,140 This one by default is in kilo ohms, but we need to change it to 220 ohms. And we have to be sure 16 00:01:41,140 --> 00:01:49,760 that instead of having kilo ohms, we have ohms. So now we have the resistor and the resistor has 17 00:01:49,760 --> 00:01:56,120 to be connected to the LED because the Arduino board will provide a lot of energy and the LED 18 00:01:56,120 --> 00:02:01,700 doesn't support all of the energy that will be provided, so the resistor will take part of that 19 00:02:01,700 --> 00:02:08,259 energy, and that's why it's called a protection resistor. Now the resistor is connected to the LED. 20 00:02:09,259 --> 00:02:16,780 Why is it connected? Well, you can see that there are five green slots, and it means that these five 21 00:02:16,780 --> 00:02:22,740 slots are all connected. Everything that is connected to one of these five slots is connected 22 00:02:22,740 --> 00:02:30,099 because there is a metal stripe under the plastic so every one of the five is connected 23 00:02:31,620 --> 00:02:38,020 but you can see that all of these are vertical but there are also four long horizontal lines 24 00:02:38,819 --> 00:02:50,259 there's one here there's one here down here and down here and the rest of them are vertical so 25 00:02:50,259 --> 00:02:57,780 now the resistor and the led are connected through these five vertical slots another thing we want is 26 00:02:57,780 --> 00:03:06,340 to connect the arduino board to the led so we're going to connect them using wires using wires is 27 00:03:06,340 --> 00:03:14,419 really easy the only thing you need to do is click in here and we are going to connect it to the 28 00:03:14,419 --> 00:03:22,979 ground, tierra. First, the color of the wire will choose, it'll be black because that is the usual 29 00:03:22,979 --> 00:03:29,280 color for ground connection. And ground connection in this context means the negative terminal of the 30 00:03:29,280 --> 00:03:35,620 battery. The Arduino board will work as a battery, a battery that can be programmed, and we will 31 00:03:35,620 --> 00:03:42,080 change its behavior according to what we want, but it's still a kind of battery. So now the ground is 32 00:03:42,080 --> 00:03:47,900 connected to the straight part of the LED. There are two parts. One is straight, the other one is 33 00:03:47,900 --> 00:03:55,280 not. The one that is straight is called the cathode in English, and the bent one is the anode. 34 00:03:56,319 --> 00:04:01,879 The wire is always connected to the ground, or the one that is usually black has to be connected 35 00:04:01,879 --> 00:04:09,759 here, and the other one will be connected to connector number 13. Why 13? Because we want to. 36 00:04:10,639 --> 00:04:18,639 So now we have a closed circuit. This is the negative terminal and the negative terminal 37 00:04:18,639 --> 00:04:26,720 is connected to the LED and to the resistors using these five green slots. So we have a 38 00:04:26,720 --> 00:04:37,069 closed circuit, everything will work, but now we need to program the Arduino board. 39 00:04:37,069 --> 00:04:42,990 So in order to program it we click on code and something appears here with the 40 00:04:42,990 --> 00:04:46,350 programming window. There are already some blocks here and 41 00:04:46,350 --> 00:04:50,910 we don't want those so we're going to click and drag them to 42 00:04:50,910 --> 00:04:56,269 the left and they will disappear. Our first program will be the blinking 43 00:04:56,269 --> 00:04:58,990 program. It's the first program everyone learns 44 00:04:58,990 --> 00:05:01,230 when you're starting to learn programming. 45 00:05:01,230 --> 00:05:05,550 We want the LED to shine for one second and then be off for one second. 46 00:05:07,389 --> 00:05:16,540 So how can we program it? We are going to use two blocks Definir Pasador 47 00:05:17,579 --> 00:05:24,779 and Alta. The translation is not the best but Pasador means connector. So there are 13 48 00:05:24,779 --> 00:05:31,259 connectors here and because we're using number 13 we are going to program by selecting 13 49 00:05:31,259 --> 00:05:42,769 and then the same for this one. And this block will be useful to turn it on and then the second 50 00:05:42,769 --> 00:05:51,730 one will be useful to turn it off or low. That's why we're changing it to baja. If we connect these 51 00:05:51,730 --> 00:06:00,329 two blocks, the high and the low, the program will not work. Well why? Because we want it to be high 52 00:06:00,329 --> 00:06:07,129 for one second and then low for one second so we are going to need to make it wait so we need the 53 00:06:07,129 --> 00:06:17,850 delay block the delay block is up here in control so we're going to select it and attach and now the 54 00:06:17,850 --> 00:06:26,250 program will work 13 will be high for one second and then delayed for one second and then it will 55 00:06:26,250 --> 00:06:34,009 be low for one second and then it'll wait another second. So now we have everything. We have the LED 56 00:06:34,009 --> 00:06:39,610 connected to the protection resistor. The two components have been connected to the Arduino 57 00:06:39,610 --> 00:06:44,970 board using the wires and now we can simulate it by clicking in this initiate simulation. 58 00:06:45,769 --> 00:06:52,089 So we click on it and everything is working. Now you can see the LED is on for one second, 59 00:06:52,089 --> 00:06:58,029 off for one second and it's repeated again and again and again so we can stop 60 00:06:58,029 --> 00:07:02,709 the simulation as soon as we are sure that it works and now we're going to 61 00:07:02,709 --> 00:07:06,910 share it with your teacher so there's a share button up here you click on it and 62 00:07:06,910 --> 00:07:13,689 then invite other people and this is the link you're going to share you can copy 63 00:07:13,689 --> 00:07:20,569 it and send it by email for example if I paste it up in a new tab you can see 64 00:07:20,569 --> 00:07:28,509 that I will be able to open the same exact circuit again. Here it is. So this is the link you have to 65 00:07:28,509 --> 00:07:33,250 copy and paste that you're going to send and this way the teacher will be able to know if you've 66 00:07:33,250 --> 00:07:36,230 already done the exercise. So good luck!