1 00:00:00,000 --> 00:00:09,759 In this way, we are going to learn how to use Tinkercad as the simulation of an electronic 2 00:00:09,759 --> 00:00:12,439 circuit. 3 00:00:12,439 --> 00:00:20,839 As you know, Tinkercad can be used online, so the only thing that you must do is go to 4 00:00:20,839 --> 00:00:36,649 the web page thinkercad to this address and log in in your account or in your in your class 5 00:00:37,450 --> 00:00:46,009 you have a class this year and you can log in in your class just using the password 6 00:00:47,210 --> 00:00:51,450 remember is ordenador plus the number of your computer 7 00:00:51,450 --> 00:01:13,329 When you are in your account, the first thing that you can see is the dashboard. 8 00:01:13,329 --> 00:01:21,569 So in your dashboard you have the different designs that you have created with the different 9 00:01:21,569 --> 00:01:27,750 tools of Tinkercad, because at the beginning it was just only for 3D printing, but now 10 00:01:27,750 --> 00:01:29,930 it's more than this. 11 00:01:29,930 --> 00:01:36,989 On the left you have different new apps and one of these is Circuits. 12 00:01:36,989 --> 00:01:44,250 So if you click in Circuits, you can have the dashboard for Circuits. 13 00:01:44,250 --> 00:01:48,510 And in Circuits you can create a new circuit. 14 00:01:48,510 --> 00:01:58,209 Well, it has advantages and disadvantages if you compare, for example, with Cocodrill 15 00:01:58,209 --> 00:02:00,950 or with BitBlock. 16 00:02:00,950 --> 00:02:05,150 We are going to comment these advantages and disadvantages. 17 00:02:05,150 --> 00:02:08,590 So on the right you have all the components. 18 00:02:08,590 --> 00:02:15,530 So for me the main, the first disadvantage is that they are pictograms. 19 00:02:15,530 --> 00:02:17,909 They aren't symbols. 20 00:02:17,909 --> 00:02:23,750 So you can learn the symbols of the different components. 21 00:02:23,750 --> 00:02:32,789 On the other hand, it's also true that it's more real or it's more similar to the real 22 00:02:32,789 --> 00:02:36,629 life I would have in the real life. 23 00:02:36,629 --> 00:02:43,830 But you can learn at the same time the symbols of different elements. 24 00:02:43,830 --> 00:02:47,689 So for me, this is one disadvantage. 25 00:02:47,689 --> 00:02:57,490 Another one could be that you don't have a polymeter. 26 00:02:57,490 --> 00:03:05,909 So you can't do measures, you can't do calculations of different circuits. 27 00:03:05,909 --> 00:03:08,930 For me are the two main disadvantages. 28 00:03:08,930 --> 00:03:24,139 And another one is, as you can see here, you have a direct current motor, a micro servo 29 00:03:24,139 --> 00:03:32,580 motor and this kind of motor, but you haven't a servo motor, a continuous servo motor. 30 00:03:32,580 --> 00:03:41,219 So you can use some application that you use a continuous servo motor. 31 00:03:41,219 --> 00:03:52,780 On the other hand, well, you have several components, well, you can use with these different 32 00:03:52,780 --> 00:03:54,860 several components. 33 00:03:54,860 --> 00:04:05,780 And in our example, the first part of the first step is to create the circuit. 34 00:04:05,780 --> 00:04:11,699 So to create the circuit we need a breadboard. 35 00:04:11,699 --> 00:04:15,780 This is a breadboard we have already studied. 36 00:04:15,780 --> 00:04:26,079 As you know, all the holes that are connected by the same wire are very easy to know because 37 00:04:26,079 --> 00:04:41,699 application shows you the holes that are connected. So it's easy to understand how 38 00:04:41,699 --> 00:04:50,639 this breadboard can be used. Well, we are going to begin with the left. We're going 39 00:04:50,639 --> 00:05:04,639 to create a very easy circuit with just only one LED. So this is a LED, as you know this 40 00:05:04,639 --> 00:05:15,800 LED of this terminal must be connected to the negative of a battery and this is for 41 00:05:15,800 --> 00:05:34,019 the positive of the battery. In our case we are going to connect this to ground and the 42 00:05:34,019 --> 00:05:44,180 other one must be connected to a resistor because you need a resistor if you want to 43 00:05:44,180 --> 00:05:55,759 protect the lead. So we are going to use this resistor. The value of this resistor must be 220 44 00:05:55,759 --> 00:06:16,089 because your Arduino board gives you 5 volts. So if you take into consideration this, you can 45 00:06:16,089 --> 00:06:30,370 calculate the intensity current is about 5 volts less 0.7 and this is the 46 00:06:30,370 --> 00:06:37,149 resistor so is you can you can calculate the intensity current if you want so now 47 00:06:37,149 --> 00:06:54,730 We need 48 00:07:24,490 --> 00:07:41,250 So we need to connect this with this, with the cable. 49 00:07:41,250 --> 00:07:48,149 In this case the color of the cable must be red. 50 00:07:48,149 --> 00:08:00,110 So we have a very simple electronic circuit just only for one lathe. 51 00:08:00,110 --> 00:08:04,829 This must be connected to the positive of the battery. 52 00:08:04,829 --> 00:08:16,569 But instead of a battery we are going to use Arduino One. 53 00:08:16,569 --> 00:08:34,259 So in Arduino One we are going to connect ground and then this is to one digital pin, 54 00:08:34,259 --> 00:08:45,299 for example this one. 55 00:08:45,299 --> 00:08:58,399 You know that in Arduino One the main parts of Arduino One are these are digital pins, 56 00:08:58,399 --> 00:09:09,279 These are for analogical pins, usually are inputs, not outputs, just only inputs, analogical 57 00:09:09,279 --> 00:09:10,279 inputs. 58 00:09:10,279 --> 00:09:16,700 And here have some pins for power, power and ground. 59 00:09:16,700 --> 00:09:24,299 This is microprocessor and you can also have a run and roll memory. 60 00:09:24,299 --> 00:09:28,279 So now we have the connection. 61 00:09:28,279 --> 00:09:34,340 have the connection of the of our electronic circuit our EC electronic 62 00:09:34,340 --> 00:09:41,419 circuit with the board. Next step is do the program so to do the program click 63 00:09:41,419 --> 00:09:49,639 encode and now here you have this program but it's not the 64 00:09:49,639 --> 00:09:59,299 program that you must use because in this case you must know which is the 65 00:09:59,299 --> 00:10:15,720 digital pin that is used as output so here you have outputs and we need 66 00:10:15,720 --> 00:10:28,139 this one that is the output and our output is 11 so clicking 11 it isn't 67 00:10:28,139 --> 00:10:42,120 height means that this is switched on. How much time? For example, three seconds. And then switch 68 00:10:42,120 --> 00:11:09,179 off during just only one second. This is a loop that is repeating forever until you switch off. 69 00:11:09,179 --> 00:11:21,000 So if we begin our simulation, the result is this. 70 00:11:21,000 --> 00:11:28,070 Just only for one leth. 71 00:11:28,070 --> 00:11:33,070 So in our example we have three leths. 72 00:11:33,070 --> 00:11:42,320 So we must repeat this process three times. 73 00:11:42,320 --> 00:12:15,600 one with lead, that in this case is not red, is yellow and another one which is green. 74 00:12:15,600 --> 00:13:15,690 So now we are going to do the connections, this to ground, this to the resistor and this to a digital pin, for example 7. 75 00:13:15,690 --> 00:13:36,309 The same for green, this to ground, this to resistor, and this to a digital DIN. 76 00:13:39,620 --> 00:13:41,620 And now the code. 77 00:13:42,620 --> 00:13:46,620 We are going to repeat this code three times. 78 00:13:46,620 --> 00:14:20,840 One in PIN 7 and another for the PIN 4. 79 00:14:20,840 --> 00:14:39,049 So, yes, we have. We have everything. Now, do the simulation. 80 00:14:39,049 --> 00:15:14,279 Well, another disadvantage is, another drawback, if you compare Tinkercad with BitBlock is, 81 00:15:14,279 --> 00:15:22,279 Well, and now, how can I download to my board, my real board? 82 00:15:22,279 --> 00:15:25,279 It's not possible in this case. 83 00:15:25,279 --> 00:15:44,429 The only thing that you can do is download the code and then upload this code in one Arduino environment. 84 00:15:44,429 --> 00:15:48,429 And from Arduino environment download to your board. 85 00:15:48,429 --> 00:15:59,429 In BitBlock you can't do directly, in this case no, but it has, as you can see, some advantages and some disadvantages. 86 00:15:59,429 --> 00:16:09,350 Well, as you can see, this is the code in Arduino. 87 00:16:09,350 --> 00:16:18,350 Well, try to understand it, I think it's not so complicated, you can understand more or less. 88 00:16:18,350 --> 00:16:35,350 You need to define the pins, and if they are digital, if they are input or output, in this case are output, and then delay is just only weight, it's the same. 89 00:16:35,350 --> 00:16:45,350 Well, I think it's not so complicated, this program is very easy to understand, it's very simple. 90 00:16:45,350 --> 00:17:07,910 So you can begin to understand and to know how to do a program using Arduino. But you can download directly to your board. It's another disadvantage of Tinkercad. 91 00:17:07,910 --> 00:17:34,410 And this is all for today. I hope it can be useful for you and it helps you to understand how to use Tinkercad, not just to 3D printer, as another application. It is growing. So maybe next year we can understand another thing. 92 00:17:34,410 --> 00:17:38,569 Bye and see you next day or in next video.