1 00:00:00,640 --> 00:00:01,780 You. 2 00:00:01,810 --> 00:00:03,300 Good morning. 3 00:00:03,330 --> 00:00:09,140 So you've already registered in the Www.tinkercad.com website. 4 00:00:09,170 --> 00:00:12,260 So you will be able to log in and you'll 5 00:00:12,290 --> 00:00:17,100 see something like this in tinkercad.com. There are different possibilities. 6 00:00:17,130 --> 00:00:20,420 We could create 3D designs, for example. 7 00:00:20,450 --> 00:00:22,900 But now we're going to create a circuit. 8 00:00:22,920 --> 00:00:27,460 So we click on this label circuit and here it shows that there have already 9 00:00:27,490 --> 00:00:30,940 been some designs made, but you will not have any yet. 10 00:00:30,970 --> 00:00:35,260 So you're going to click on Create new Circuit. 11 00:00:35,290 --> 00:00:37,780 If you click on it, the screen will change 12 00:00:37,810 --> 00:00:43,860 and something like this will appear here on the right we have our library 13 00:00:43,890 --> 00:00:47,460 of components that we will click and drag to use. 14 00:00:47,490 --> 00:00:49,380 But the first thing we need for this 15 00:00:49,410 --> 00:00:53,180 exercise is here in the basic components library. 16 00:00:53,210 --> 00:00:58,100 So we will scroll down a little bit and find the proto board. 17 00:00:58,130 --> 00:01:02,020 Click and drag it and now it will appear on the screen. 18 00:01:02,050 --> 00:01:04,180 The proto board is a way to connect things. 19 00:01:04,210 --> 00:01:06,290 We'll learn more about it in a minute. 20 00:01:06,320 --> 00:01:09,130 The next component we need is the arduino board. 21 00:01:09,160 --> 00:01:11,340 So click and drag. 22 00:01:11,370 --> 00:01:13,620 We will also need an Led. 23 00:01:13,650 --> 00:01:17,660 An Led is a tiny bulb, a really, really small one. 24 00:01:17,690 --> 00:01:20,380 And we will need a resistor. 25 00:01:20,410 --> 00:01:25,020 So now we've clicked and dragged and we have everything we need on the screen. 26 00:01:25,050 --> 00:01:30,240 But the first thing we need to change is the value of the resistance. 27 00:01:31,000 --> 00:01:39,620 This one by default is in Kilo Ohms, but we need to change it to 220 ohms. 28 00:01:39,650 --> 00:01:45,400 And we have to be sure that instead of having Kilo Ohms, we have ohms. 29 00:01:46,200 --> 00:01:48,570 So now we have the resistor. 30 00:01:48,600 --> 00:01:50,620 And the resistor has to be connected 31 00:01:50,650 --> 00:01:56,260 to the Led because the arduino board will provide a lot of energy and the Led 32 00:01:56,290 --> 00:01:59,380 doesn't support all of the energy that will be provided. 33 00:01:59,410 --> 00:02:01,440 So the resistor will take part 34 00:02:01,470 --> 00:02:06,060 of that energy and that's why it's called a protection resistor. 35 00:02:06,090 --> 00:02:09,170 Now the resistor is connected to the Led. 36 00:02:09,200 --> 00:02:10,820 Why is it connected? 37 00:02:10,850 --> 00:02:13,580 Well, you can see that there are five 38 00:02:13,610 --> 00:02:19,060 green slots and it means that these five slots are all connected. 39 00:02:19,080 --> 00:02:20,760 Everything that is connected to one 40 00:02:20,790 --> 00:02:26,700 of these five slots is connected because there is a metal stripe under the plastic. 41 00:02:26,730 --> 00:02:31,610 So every one of the five is connected. 42 00:02:31,640 --> 00:02:35,300 But you can see that all of these are vertical. 43 00:02:35,330 --> 00:02:38,780 But there are also four long horizontal lines. 44 00:02:38,810 --> 00:02:47,580 There's one here, there's one here, down here and down here. 45 00:02:47,610 --> 00:02:49,610 And the rest of them are vertical. 46 00:02:49,640 --> 00:02:52,380 So now the resistor and the Led are 47 00:02:52,410 --> 00:02:56,540 connected through these five vertical slots. 48 00:02:56,570 --> 00:03:01,740 Another thing we want is to connect the arduino board to the Led. 49 00:03:01,770 --> 00:03:05,500 So we're going to connect them using wires. 50 00:03:05,530 --> 00:03:07,460 Using wires is really easy. 51 00:03:07,490 --> 00:03:09,940 The only thing you need to do is click 52 00:03:09,970 --> 00:03:17,100 in here and we are going to connect it to the ground tierra first. 53 00:03:17,130 --> 00:03:20,340 The color of the wire will choose it'll be 54 00:03:20,370 --> 00:03:25,300 black because that is the usual color for ground connection. 55 00:03:25,330 --> 00:03:27,540 And ground connection in this context 56 00:03:27,570 --> 00:03:30,060 means the negative terminal of the battery. 57 00:03:30,090 --> 00:03:35,440 The Arduino board will work as a battery, a battery that can be programmed and we 58 00:03:35,440 --> 00:03:37,860 will change its behavior according to what we want. 59 00:03:37,890 --> 00:03:40,660 But it's still a kind of battery. 60 00:03:40,690 --> 00:03:45,020 So now the ground is connected to the straight part of the Led. 61 00:03:45,050 --> 00:03:46,540 There are two parts. 62 00:03:46,570 --> 00:03:49,260 One is straight, the other one is not. 63 00:03:49,290 --> 00:03:52,980 The one that is straight is called the cathode in English. 64 00:03:53,010 --> 00:03:56,380 And the bent one is the anode. 65 00:03:56,410 --> 00:03:58,340 The wire is always connected 66 00:03:58,370 --> 00:04:02,780 to the ground, or the one that is usually black has to be connected here. 67 00:04:02,810 --> 00:04:06,980 And the other one will be connected to connector number 13. 68 00:04:07,010 --> 00:04:08,820 Why 13? 69 00:04:08,850 --> 00:04:10,460 Because we want to. 70 00:04:10,490 --> 00:04:14,660 So now we have a closed circuit. 71 00:04:14,690 --> 00:04:16,980 This is the negative terminal. 72 00:04:17,010 --> 00:04:19,280 And the negative terminal is connected 73 00:04:19,300 --> 00:04:24,860 to the Led and to the resistors using these five green slots. 74 00:04:24,890 --> 00:04:27,780 So we have a closed circuit. 75 00:04:27,800 --> 00:04:30,300 Everything will work. 76 00:04:30,330 --> 00:04:34,720 But now we need to program the Arduino board. 77 00:04:36,960 --> 00:04:39,220 So in order to program it, 78 00:04:39,250 --> 00:04:44,300 we click on code and something appears here with the programming window. 79 00:04:44,330 --> 00:04:47,580 There are already some blocks here and we don't want those. 80 00:04:47,600 --> 00:04:53,860 So we're going to click and drag them to the left and they will disappear. 81 00:04:53,890 --> 00:04:57,020 Our first program will be the blinking program. 82 00:04:57,040 --> 00:05:01,220 It's the first program everyone learns when you're starting to learn programming. 83 00:05:01,250 --> 00:05:07,200 We want the Led to shine for 1 second and then be off for 1 second. 84 00:05:07,320 --> 00:05:11,120 So how can we program it? 85 00:05:11,480 --> 00:05:18,500 We are going to use two blocks, definer basalore and alta. 86 00:05:18,530 --> 00:05:23,580 The translation is not the best, but basalor means connector. 87 00:05:23,600 --> 00:05:26,220 So there are 13 connectors here. 88 00:05:26,250 --> 00:05:28,500 And because we're using number 13, 89 00:05:28,530 --> 00:05:36,280 we are going to program by selecting 13 and then the same for this one. 90 00:05:37,120 --> 00:05:39,460 And this block will be useful to turn it 91 00:05:39,480 --> 00:05:46,660 on and then the second one will be useful to turn it off or low. 92 00:05:46,690 --> 00:05:49,860 That's why we're changing it to bacha. 93 00:05:49,890 --> 00:05:53,100 If we connect these two blocks, 94 00:05:53,130 --> 00:05:57,700 the high and the low, the program will not work well. 95 00:05:57,730 --> 00:05:58,340 Why? 96 00:05:58,360 --> 00:06:03,420 Because we want it to be high for 1 second and then low for 1 second. 97 00:06:03,450 --> 00:06:06,460 So we are going to need to make it wait. 98 00:06:06,480 --> 00:06:09,100 So we need the delay block. 99 00:06:09,130 --> 00:06:12,460 The delay block is up here in control. 100 00:06:12,480 --> 00:06:15,580 So we're going to select it and attach. 101 00:06:15,600 --> 00:06:19,300 And now the program will work. 102 00:06:19,330 --> 00:06:25,500 13 will be high for 1 second and then delayed for 1 second. 103 00:06:25,530 --> 00:06:28,020 And then it will be low for 1 second. 104 00:06:28,040 --> 00:06:30,980 And then it'll wait another second. 105 00:06:31,010 --> 00:06:32,740 So now we have everything. 106 00:06:32,770 --> 00:06:36,580 We have the Led connected to the protection resistor. 107 00:06:36,600 --> 00:06:41,180 The two components have been connected to the Arduino board using the wires. 108 00:06:41,210 --> 00:06:45,700 And now we can simulate it by clicking Initiate simulation. 109 00:06:45,730 --> 00:06:49,620 So we click on it and everything is working. 110 00:06:49,650 --> 00:06:51,860 Now you can see the Led is on for 1 111 00:06:51,890 --> 00:06:57,020 second, off for 1 second, and it's repeated again and again and again. 112 00:06:57,040 --> 00:07:01,340 So we can stop the simulation as soon as we are sure that it works. 113 00:07:01,360 --> 00:07:03,940 And now we're going to share it with your teacher. 114 00:07:03,970 --> 00:07:05,900 So there's a share button up here. 115 00:07:05,920 --> 00:07:09,740 You click on it and then invite other people. 116 00:07:09,770 --> 00:07:12,380 And this is the link you're going to share. 117 00:07:12,410 --> 00:07:15,620 You can copy it and send it by email. 118 00:07:15,650 --> 00:07:19,980 For example, if I paste it up in a new tab, 119 00:07:20,010 --> 00:07:25,260 you can see that I will be able to open the same exact circuit again. 120 00:07:25,290 --> 00:07:26,700 Here it is. 121 00:07:26,720 --> 00:07:30,300 So this is the link you have to copy and paste that you're going to send. 122 00:07:30,330 --> 00:07:34,940 And this way, the teacher will be able to know if you've already done the exercise. 123 00:07:34,970 --> 00:07:36,680 So good luck.