1 00:00:00,690 --> 00:00:02,530 Hello and welcome to this annual lesson. 2 00:00:03,630 --> 00:00:12,960 As usual, the first thing that we do when we start exploring a new hardware is to blank led or to write 3 00:00:12,960 --> 00:00:20,880 a programming sentence, which is hello, worst case for our hardware, which is SB 32, the example 4 00:00:20,880 --> 00:00:22,940 will be led blinking. 5 00:00:23,550 --> 00:00:35,420 So let's go to the examples menu and the Arduino idea and open up the sketch example or plunk example 6 00:00:36,300 --> 00:00:36,840 now. 7 00:00:38,080 --> 00:00:44,590 As you can see, we have a lot of examples here, you can go to the basics and click blink. 8 00:00:46,100 --> 00:00:47,560 Now, let's close this window. 9 00:00:48,570 --> 00:00:51,500 Let's open up this one now. 10 00:00:52,970 --> 00:00:58,490 As you can see in this lesson on this code, let me zoom. 11 00:01:00,550 --> 00:01:10,150 We have the lid set to default, which is led number 13 on Arduino, so we need to change this number. 12 00:01:10,660 --> 00:01:17,240 As you know, the SB 32 has a built in lid that is connected to its Gilberto's input output. 13 00:01:17,260 --> 00:01:24,070 Number two, it is important to check if Lyd pollution is automatically recognized by IDC. 14 00:01:24,370 --> 00:01:28,270 If not, you must add to called a line like this. 15 00:01:28,790 --> 00:01:29,290 Right. 16 00:01:29,290 --> 00:01:29,740 And. 17 00:01:33,210 --> 00:01:45,060 And right lead letters copied and pasted here and now you have to write to to make sure that the code 18 00:01:45,810 --> 00:01:55,320 will be saved to PIN number two, which is the internal lid pin inside the sport. 19 00:01:56,130 --> 00:01:57,810 Now let's save our code. 20 00:02:04,490 --> 00:02:05,990 Let's leave the name blank. 21 00:02:07,130 --> 00:02:08,570 And let's roll this. 22 00:02:10,740 --> 00:02:17,940 Now, as you can see, it's the very same court that we use and you we have two methods, the voice 23 00:02:17,940 --> 00:02:20,520 setup method and the voice method. 24 00:02:21,430 --> 00:02:30,690 The voice method is basically where you set up things like up in here we have PIN number two, which 25 00:02:30,690 --> 00:02:35,390 is the variable, and we can replace it with number two here. 26 00:02:35,760 --> 00:02:40,470 But since we are using a variable, we can apply the variable name here and here. 27 00:02:40,470 --> 00:02:45,960 We can assign it as input or output since we are dealing with a it's an output. 28 00:02:45,960 --> 00:02:54,570 So we write output and we use Benmore function to make sure that we set number two as output in the 29 00:02:54,570 --> 00:02:56,070 setup loop. 30 00:02:56,430 --> 00:03:03,030 Now the loop function from its name, it will keep repeating itself. 31 00:03:03,030 --> 00:03:05,810 The loop function runs over and over again forever. 32 00:03:06,990 --> 00:03:11,860 Once you stop the program or stop turn off the power, it will stop running. 33 00:03:12,420 --> 00:03:15,330 Now the digital right will write a digital value. 34 00:03:15,810 --> 00:03:23,740 High means one logic or turn on to the spin, which has been number two that has internal. 35 00:03:23,760 --> 00:03:31,200 And then the delay sentence will wait for a second and we will write the same sentence are right. 36 00:03:31,320 --> 00:03:38,180 We will write additional value, which is low or zero or off, and we will wait for another second. 37 00:03:38,190 --> 00:03:39,870 So we will turn on the. 38 00:03:40,890 --> 00:03:41,690 Wait a second. 39 00:03:41,700 --> 00:03:45,810 Turn it off and wait another second now before. 40 00:03:46,930 --> 00:03:54,100 Applauding this court, we need to go and make sure that we have that do it SB 32 different version, 41 00:03:54,100 --> 00:03:58,480 one selected, and we need to make sure that we have the right Gombauld. 42 00:03:59,320 --> 00:04:02,050 After that, we can simply click upload. 43 00:04:07,770 --> 00:04:09,030 It will take some time. 44 00:04:09,460 --> 00:04:17,580 OK, as you can see, you now have an error because this is a system variable, we can't change it with 45 00:04:17,580 --> 00:04:18,990 another name led to. 46 00:04:22,770 --> 00:04:23,840 Let's try it again. 47 00:04:41,890 --> 00:04:46,060 As you can see now, it's writing the code, done uploading. 48 00:04:47,560 --> 00:04:55,630 Now, if you have the board, you can see that there is a blue light blinking on and off. 49 00:05:00,770 --> 00:05:01,320 That's it. 50 00:05:01,340 --> 00:05:10,160 This is how simple it is to turn on or off alland you can use any other pin or connect an external lid 51 00:05:10,160 --> 00:05:11,030 if you have one. 52 00:05:11,600 --> 00:05:13,000 But that's it for this lesson. 53 00:05:13,010 --> 00:05:16,540 As you can see, it's the very same code that we use and Arduino. 54 00:05:17,330 --> 00:05:18,830 So it's really simple. 55 00:05:19,820 --> 00:05:22,270 It's really easy to get started with this board. 56 00:05:22,580 --> 00:05:27,710 You don't have a lot of knowledge, just basic knowledge encoding and an arduino. 57 00:05:28,130 --> 00:05:33,680 And if you don't have a basic knowledge, I already explained each line of code inside this sketch. 58 00:05:34,070 --> 00:05:38,030 If you have any question about anything, please ask in the Q&A board. 59 00:05:40,350 --> 00:05:41,220 Thanks for watching. 60 00:05:45,540 --> 00:05:47,940 This is Usrah from educational engineering team.