1 00:00:00,060 --> 00:00:02,520 good morning today we are going to 2 00:00:02,520 --> 00:00:03,930 create a new circuit 3 00:00:05,250 --> 00:00:08,340 okay I have already logged into tinkercad and 4 00:00:08,340 --> 00:00:10,020 now I am going to click on 5 00:00:10,020 --> 00:00:11,640 create new circuit 6 00:00:14,940 --> 00:00:17,250 so now I'm in and as always 7 00:00:17,250 --> 00:00:18,570 the first thing I need is the 8 00:00:18,570 --> 00:00:21,960 protoboard and the arduino board so 9 00:00:21,960 --> 00:00:24,090 I'm going to now click and drag 10 00:00:24,660 --> 00:00:25,860 the LED 11 00:00:26,970 --> 00:00:29,520 because in this exercise instead of controlling 12 00:00:29,520 --> 00:00:31,950 one single LED we're going to control 13 00:00:31,950 --> 00:00:33,450 four of them so it will be 14 00:00:33,450 --> 00:00:35,160 a sequence of LED ds 15 00:00:37,110 --> 00:00:38,580 so i'm going to click and drag 16 00:00:38,610 --> 00:00:39,330 one of them 17 00:00:40,770 --> 00:00:43,080 and this one is connected here and 18 00:00:43,080 --> 00:00:45,780 here and remember that the vertical lines 19 00:00:45,780 --> 00:00:47,460 are all connected together the set of 20 00:00:47,460 --> 00:00:49,350 five of them so i have one 21 00:00:49,350 --> 00:00:51,090 LED I will have a second one 22 00:00:51,780 --> 00:00:53,970 and a third one and a fourth 23 00:00:53,970 --> 00:00:54,270 one 24 00:00:56,640 --> 00:00:57,960 now the first one is going to 25 00:00:57,960 --> 00:01:02,190 be controlled with pin number thirteen so 26 00:01:02,190 --> 00:01:03,510 we can click and drag 27 00:01:05,129 --> 00:01:06,960 and remember we want to connect it 28 00:01:06,960 --> 00:01:08,460 to the anode the one that is 29 00:01:08,460 --> 00:01:09,360 not straight 30 00:01:11,640 --> 00:01:13,890 with this one the second one we 31 00:01:13,890 --> 00:01:15,720 can connect it to number twelve 32 00:01:19,350 --> 00:01:21,360 and the third one to number eleven 33 00:01:22,830 --> 00:01:24,300 and the fourth one to ten 34 00:01:26,280 --> 00:01:28,170 but remember now we need to close 35 00:01:28,170 --> 00:01:30,360 the circuit so all of them are 36 00:01:30,360 --> 00:01:32,040 going to be connected to the ground 37 00:01:32,100 --> 00:01:34,230 to this connector but I'm going to 38 00:01:34,230 --> 00:01:35,400 use it in a different way 39 00:01:37,020 --> 00:01:38,550 this one will be the ground so 40 00:01:38,550 --> 00:01:41,400 I'm going to connect it here and 41 00:01:41,850 --> 00:01:43,320 remember to change it to black 42 00:01:45,300 --> 00:01:46,440 and the same for this one 43 00:01:52,050 --> 00:01:53,190 I need more room so i'm just 44 00:01:53,190 --> 00:01:54,300 going to shift them over 45 00:01:57,330 --> 00:01:59,940 also change it to black and then 46 00:01:59,940 --> 00:02:01,290 we'll do it again for the third 47 00:02:06,360 --> 00:02:07,260 another last one 48 00:02:11,490 --> 00:02:15,060 okay so now I need the resistor 49 00:02:16,260 --> 00:02:18,240 and remember that every time we send 50 00:02:18,300 --> 00:02:20,580 current to an LED we need a 51 00:02:20,610 --> 00:02:21,870 protection resistor 52 00:02:23,610 --> 00:02:24,840 and we also want to make sure 53 00:02:24,840 --> 00:02:26,730 that it's two hundred and twenty ohms 54 00:02:26,760 --> 00:02:28,590 so I will click on the resistor 55 00:02:29,400 --> 00:02:30,930 and I can type two hundred and 56 00:02:30,930 --> 00:02:32,940 twenty but instead of kilo ohms 57 00:02:32,940 --> 00:02:35,310 I want ohms so now I have my 58 00:02:35,310 --> 00:02:37,410 resistor and I'm going to connect it 59 00:02:37,440 --> 00:02:37,830 here 60 00:02:39,660 --> 00:02:41,430 now is the resistor connected to the 61 00:02:41,430 --> 00:02:44,520 four LED because along this 62 00:02:44,520 --> 00:02:47,010 horizontal line everything is connected to each 63 00:02:47,010 --> 00:02:49,470 other so the resistor is connected to 64 00:02:49,470 --> 00:02:51,990 the LED ds using this horizontal strip 65 00:02:52,680 --> 00:02:54,150 now i'm going to use the ground 66 00:02:54,150 --> 00:02:56,340 connector and I'm going to connect it 67 00:02:56,340 --> 00:02:57,330 to the resistor 68 00:03:03,540 --> 00:03:05,280 if I shifted over you can probably 69 00:03:05,280 --> 00:03:06,420 see it more clearly 70 00:03:08,400 --> 00:03:10,350 okay so this is the ground connector 71 00:03:10,350 --> 00:03:12,540 and through the resistor is connected to 72 00:03:12,540 --> 00:03:14,100 all four LED 73 00:03:15,150 --> 00:03:16,740 so now i have all of the 74 00:03:16,740 --> 00:03:19,020 connections and now it's time to program 75 00:03:19,020 --> 00:03:21,330 the arduino board because it's the one 76 00:03:21,330 --> 00:03:23,130 that will control the four bulbs 77 00:03:26,220 --> 00:03:28,110 so I click on code up at 78 00:03:28,110 --> 00:03:30,150 the top and I'm going to get 79 00:03:30,150 --> 00:03:31,500 rid of the one already there 80 00:03:32,910 --> 00:03:34,710 so I'm going to program the arduino 81 00:03:34,710 --> 00:03:36,900 board this way so we want number 82 00:03:36,900 --> 00:03:39,870 thirteen to be on for one second 83 00:03:40,320 --> 00:03:42,540 and then it will be off and 84 00:03:42,540 --> 00:03:43,950 the moment it turns off the next 85 00:03:43,950 --> 00:03:45,360 one will start shining and then the 86 00:03:45,360 --> 00:03:47,610 next and the next so the first 87 00:03:47,610 --> 00:03:49,470 thing we're going to do is define 88 00:03:49,470 --> 00:03:50,490 number thirteen 89 00:03:52,530 --> 00:03:55,470 to choose thirteen on high or on 90 00:03:56,520 --> 00:03:58,230 then we want it to wait or 91 00:03:59,640 --> 00:04:01,080 be shining for one second 92 00:04:02,220 --> 00:04:04,320 and then off for one second so 93 00:04:04,320 --> 00:04:05,970 thirteen and low or off 94 00:04:08,160 --> 00:04:09,870 then we want the same to happen 95 00:04:09,870 --> 00:04:12,660 with twelve and eleven and ten so 96 00:04:12,660 --> 00:04:14,730 we can either click on that and 97 00:04:14,730 --> 00:04:15,930 drag it again 98 00:04:17,790 --> 00:04:18,360 or 99 00:04:19,440 --> 00:04:22,740 we can right click and click duplicate 100 00:04:23,520 --> 00:04:24,570 which is much faster 101 00:04:26,130 --> 00:04:28,140 then we have the same plucks so 102 00:04:28,140 --> 00:04:29,070 now all we have to do is 103 00:04:29,070 --> 00:04:30,780 change the numbers so we're going to 104 00:04:30,780 --> 00:04:32,190 do the same for number twelve 105 00:04:35,880 --> 00:04:37,590 duplicate one more time 106 00:04:39,000 --> 00:04:41,160 so that it is for number eleven 107 00:04:45,750 --> 00:04:47,760 and one more time for the last 108 00:04:47,760 --> 00:04:49,080 one of number ten 109 00:04:54,090 --> 00:04:54,810 so ten 110 00:05:02,190 --> 00:05:02,880 and ten 111 00:05:04,890 --> 00:05:07,080 so now we have these four separate 112 00:05:07,080 --> 00:05:08,760 parts of the program but we want 113 00:05:08,760 --> 00:05:10,920 to connect all of them together so 114 00:05:10,920 --> 00:05:12,990 if we click and drag they're all 115 00:05:12,990 --> 00:05:15,510 connected to make one sequence and it's 116 00:05:15,510 --> 00:05:17,010 the same idea for all of them 117 00:05:17,160 --> 00:05:19,230 on for one second waiting for one 118 00:05:19,230 --> 00:05:21,510 second and then off and as soon 119 00:05:21,510 --> 00:05:23,580 as the first one turns off the 120 00:05:23,580 --> 00:05:24,240 second one 121 00:05:24,240 --> 00:05:27,750 we'll begin and if I click initiate 122 00:05:27,751 --> 00:05:32,220 simulation we can see just that can 123 00:05:32,220 --> 00:05:34,260 you see the sequence okay so now 124 00:05:34,260 --> 00:05:36,030 it's your turn to try this exercise