WEBVTT

00:00.270 --> 00:05.790
And now if you don't want to buy your natural abode or use any hardware component, here is how you

00:05.790 --> 00:09.270
can complete this course with just a simulation.

00:09.300 --> 00:16.500
Note that even if you have no board and components for the course, I still advise you to watch this

00:16.500 --> 00:19.350
lesson and get familiar with Tinker CAD.

00:19.530 --> 00:25.230
During the course I will sometimes use the Tinker CAD interface for explanations.

00:25.230 --> 00:33.150
And also it is nice for you to always have the possibility to test a programme on a simulation before

00:33.150 --> 00:35.400
doing it in real life.

00:35.490 --> 00:37.500
So what is Tinker CAD?

00:37.740 --> 00:46.500
Well, Tinker Cat is a free online tool already used by Autodesk, and you don't need to do any installation.

00:46.530 --> 00:55.020
Everything is happening in your web browser, so you can simply open a web browser and type tinker CAD

00:55.050 --> 01:01.530
on Google and click on the first link, which should be Tinker CAD dot com.

01:03.270 --> 01:03.690
All right.

01:03.690 --> 01:06.780
And this is the home page from Chincoteague.

01:06.870 --> 01:09.760
And you can go directly here.

01:09.780 --> 01:20.310
Join now and you can create a personal account so you can choose to sign in with Google, Apple, Microsoft,

01:20.310 --> 01:22.040
Facebook or email.

01:22.050 --> 01:25.710
So just sign up using whatever method you prefer.

01:26.400 --> 01:32.430
And once you have created your accounts, you can directly sign in and you will get to this interface,

01:32.430 --> 01:34.560
the Tinker Card dashboard.

01:34.560 --> 01:40.140
And on the left here, you will make sure to click on designs and then you can click on circuits.

01:40.320 --> 01:41.680
You can choose circuits here.

01:41.700 --> 01:43.260
So for you, it's going to be empty.

01:43.260 --> 01:47.680
But as you go and create new circuits, you will see all your circuits here.

01:47.700 --> 01:51.840
And so you can click on new and create a new circuit.

01:53.360 --> 01:56.380
And this will open a new page.

01:57.320 --> 02:02.940
This is kind of a workspace where you can build any secret you want.

02:02.960 --> 02:07.410
So the name here will be automatically generated.

02:07.430 --> 02:11.040
You can just change the name as you want.

02:11.060 --> 02:13.310
So here this will be, for example, test.

02:15.100 --> 02:22.720
And then so I'm going to zoom in a little bit then to build a circuit where you have all of the components

02:22.720 --> 02:28.420
you want here on the right so you can directly search for components.

02:28.420 --> 02:33.790
So for example, Arduino, you select Arduino, Arduino UNO three.

02:33.790 --> 02:35.980
So this is the board we want to use.

02:35.980 --> 02:40.540
So you can click on this board and put it here on the dashboard.

02:40.570 --> 02:43.780
You can click here to automatically Zoom.

02:43.780 --> 02:48.580
And if you use the scroll from the mouse, well, you can zoom in and zoom out.

02:48.790 --> 02:49.540
So great.

02:49.540 --> 02:52.870
Now you have your original world, which is a simulation.

02:52.870 --> 02:57.740
And now what we need is to actually be able to write some code for this board.

02:57.760 --> 03:05.590
So you have a here, you can click on this code button, this will open the code interface.

03:05.590 --> 03:10.780
And actually this is not text code, This is a block interface.

03:11.200 --> 03:15.160
And you are going to select here just text.

03:15.160 --> 03:15.360
Okay?

03:15.400 --> 03:17.530
We are going to write code directly.

03:18.040 --> 03:19.450
You have a warning.

03:19.450 --> 03:20.080
Are you sure?

03:20.080 --> 03:20.590
Yes.

03:20.590 --> 03:28.270
You click on continue and you have so you have an already existing program that we are going to see

03:28.270 --> 03:29.350
later, of course.

03:29.350 --> 03:36.400
And well, this is the same as writing code on the Arduino ID, so you can click on here code to toggle

03:36.400 --> 03:45.040
the code editor and here you can add any other component at any time if you want to, and if you want

03:45.040 --> 03:46.180
to start the simulation.

03:46.180 --> 03:53.800
So basically, if you want to transfer this code into this fake ball, you click on start simulation

03:54.310 --> 03:57.820
and now the program is inside the adeno board.

03:58.090 --> 03:59.740
So you don't need to set up anything.

03:59.740 --> 04:01.180
This is done automatically.

04:01.450 --> 04:06.220
And if you want to actually change the code here, I'll change the circuit.

04:06.220 --> 04:11.950
Well, you have to first stop the simulation so you can start the simulation.

04:12.190 --> 04:13.140
Stop this action.

04:13.180 --> 04:20.080
This is one difference with the Arduino ID is that once the code is running on your board in the original

04:20.110 --> 04:26.050
ID, you can always write some new code, but not on the simulation.

04:26.050 --> 04:29.770
You need to first stop the simulation and then change the code.

04:30.160 --> 04:30.580
All right.

04:30.580 --> 04:33.190
And as you can see, all change is saved.

04:33.190 --> 04:35.350
So this will be saved automatically.

04:35.350 --> 04:40.450
You can click on this Tinker Code button here to come back to your menu.

04:40.450 --> 04:44.950
And here you have your circuit so you can create a new one if you want.

04:44.950 --> 04:51.160
And you can just click here to go back to the previous circuit.

04:55.310 --> 04:55.790
All right.

04:55.790 --> 05:02.660
And now you are ready to create your first Arduino program, whether you use a physical Arduino board

05:02.660 --> 05:07.250
with a hardware component or the Tinker CAD simulation.
