1 00:00:02,799 --> 00:00:28,559 We are going to see some testing that you can do with Arduino board to improve your knowledge about robotics and to improve your experience with control board. 2 00:00:28,559 --> 00:00:40,899 We have already described Arduino Bloor, so in this case we are going to study how to use Arduino Bloor. 3 00:00:40,899 --> 00:00:57,270 We are going to use BitBlock2. BitBlock2 is an online application that helps you to program your Arduino Bloor. 4 00:00:57,270 --> 00:01:05,969 and it's very easy to use because it's very similar to Scratch so firstly you should go 5 00:01:05,969 --> 00:01:20,849 to the bitblog.bq.com address and then you can see this screen if you haven't if you have has 6 00:01:20,849 --> 00:01:31,609 haven't if you don't have any account the first thing that you should do is 7 00:01:31,609 --> 00:01:43,459 register in in this application with your username and password you can come 8 00:01:43,459 --> 00:01:56,900 the application this is the first screen so you can click in new project a name 9 00:01:56,900 --> 00:02:09,099 to new project in this case is pin 13 and we are going to do the first 10 00:02:09,099 --> 00:02:20,699 experience which consists in a LED that is switching on and switching off 11 00:02:20,699 --> 00:02:43,039 It's very simple because if you use the digital pin 13 of your Arduino board, you don't need any resistance. 12 00:02:43,039 --> 00:02:56,039 So it's easier than you just only have to do. Connect the LED to the pin, to the correct pin. 13 00:02:56,039 --> 00:03:03,990 So be careful when you connect the pins. 14 00:03:03,990 --> 00:03:26,310 But in BitBlock application the next step is choose the Arduino board and then in this Arduino board let in the pin 13 15 00:03:26,310 --> 00:03:43,080 after that go to the software and right now which is just only switch on wait for this time switch 16 00:03:43,080 --> 00:04:08,169 off and wait again. It's a loop so the LED will be lightened and switch it off forever until you 17 00:04:08,169 --> 00:04:18,779 disconnect the board. This is the board, this is the LED. Be very careful that the largest 18 00:04:20,860 --> 00:04:36,620 bar is in the pin 13 and the smaller one is in the ground connection. 19 00:04:36,620 --> 00:04:55,500 The connection, we are taking this in consideration, just only the led in the pin 13. 20 00:04:55,500 --> 00:05:13,259 So if you download, compile and download the program and download to your board, the result 21 00:05:13,259 --> 00:05:31,519 is like this it's very easy and well yes that is it's very easy as you can see but that is 22 00:05:31,519 --> 00:05:57,939 the way that you have set to the computer that the pin has to work so be careful with when you 23 00:05:57,939 --> 00:06:08,319 connect another in the left in another pin because in this case you should connect lead with a 24 00:06:08,319 --> 00:06:23,319 resistance with a 220 resistance in this case we will have connect the lead to pin 7 so very 25 00:06:23,319 --> 00:06:29,980 careful with the connection and very careful with in your layer that the 26 00:06:29,980 --> 00:06:40,360 polarity is is well connected after that you you have to repeat the process goes 27 00:06:40,360 --> 00:06:51,079 to this block choose your Arduino board choose left and connect it in pin 7 28 00:06:51,079 --> 00:07:03,370 after that write the program and the result in this case is this more or less 29 00:07:03,370 --> 00:07:11,430 the same but now in your board in your protoboard because your circuit is in 30 00:07:11,430 --> 00:07:41,120 your protoboard and finally the last one is the servo motor as you can see this is the 31 00:07:41,120 --> 00:07:49,040 the series so in your servo motor continuous over motor there are three 32 00:07:49,040 --> 00:07:59,000 cables one red which should connect it should be connected to five volts black 33 00:07:59,000 --> 00:08:07,220 one which should be connected to a ground connection and finally white one 34 00:08:07,220 --> 00:08:14,540 which is control and this is the pin that you should connect in a digital 35 00:08:14,540 --> 00:08:26,459 PIL 7 for example and also in your block you should choose the Arduino 36 00:08:26,459 --> 00:08:36,320 board and as components the continuous servo motor and connect the 37 00:08:36,320 --> 00:08:47,559 continuous motor in pin number seven is very easy because it's very similar to 38 00:08:47,559 --> 00:08:52,720 the letter to the program that you have already written to the left but in this 39 00:08:52,720 --> 00:09:06,159 case is without your servo it can be rotated to in time or anti times and 40 00:09:06,159 --> 00:09:18,399 sense and waiting just only 200 milliseconds the result you can see the 41 00:09:18,399 --> 00:09:54,600 result in this slide and it is the medium now you should do this is the 42 00:09:54,600 --> 00:09:59,940 experiences and after that, the report of them.