Hello people of the world, I am Iki, and today we are going to be looking at Arduino what it is to compile, what it is like to compile and how to configure it so that it can also be compiled. 

If we have various errors in the ports and it does not recognize them, what do I do? Within normal situations. 

Beyond that there may be variations, which will already depend on the operating system, the hardware, a lot of things, even if our Arduino is working well. But hey, in general terms we are going to evaluate this.

What is compiling?

Well, compiling means when I finish my code, and I say well I want to run it and have it played on my Arduino. I want all the code to be put on my Arduino. 

For what I program to start working, I don’t know, suppose I want it to emit a light, or turn a fan, or whatever … I programmed it here and I want it to run.

In this case I have nothing here as you can see. But I can try to test to see what it would be like to try to compile this, to pass everything to the Arduino.

So what does compile mean? We will try to translate well.

Notice that this as I tell you, it is read, the machine language will read from top to bottom, and it will interpret all this. He is going to interpret it, but he needs to go from assembly language to machine, he is going to try to make a conversion so that it ends up being a software, a program that will be able to be interpreted by my Arduino. 

In other words, what am I saying? That this code will have to be converted in order to not be interpreted by me or another programmer, but by the machine itself, in a code language that the machine will be able to interpret.

You are going to tell me, but why doesn’t it have it automatic anymore? Well, for example, the machine has to interpret it, because you could otherwise want to make a program, you are coding something that is going to be exported for Android, and a mobile phone is going to have a different interpretation than a PC machine. Then you are going to have to convert it to that system, to be interpreted by that type of machine as well, in addition to all of this.

So as you can see we are talking about the conversion, the compilation would be something like this. I then to the execute for example, what I’ll be doing is first compiled and then run. That is, it is first compiled, this little program is created and then there if it is executed by our Arduino. 

How do I do this? Look, I have to verify, which would be like fixing me, here it will debug me, what does it mean? It will tell me what errors there are. And then it will be uploaded directly to the Arduino to be already executed. So if you want, you can click this one and it will do both in one.

Suppose I play this one, look. See, look there it begins to compile, as you can see.

And it tells me serial port not selected. As you can see then this already, I have the Arduino connected at the moment. Why is it not selected? Because here it is telling me that I do not have the serial port. 

Now I’m going to show you something, I’m going to for example SERIAL PLOTTER, look at tools, it tells me NULL card not available. This is because I do not have the Arduino configured well, with the control panel for the PC, let’s say.

So how am I going to configure it in this case? I have Windows, well, each one will have different configurations. What I’m going to do is go to control panel.

Remember that I already installed the Arduino program, which is quite important. I’m going to go to what would be a system. In this case I have Windows 7, in Windows 10 it is practically similar. It is 99% the same. 

Device manager, take a look. And notice that here in other devices, I have USB 2.0 SERIAL. Notice that he does not recognize me. 

If you want to see if this is the one you are installing, disconnect your Arduino, you will see that it disappears for a second. In fact I’m going to show you so you can see, to be safe and not make a mess about another device. Look, I disconnect and it disappears. That’s because it was my Arduino. I’m going to connect it again, there it is. Look, there he recognized me, you see? He recognized it to me in the same way. So what now?

I’m going to do is right click and I’m going to update driver software. And I am going to search for the driver manually on the computer. Now I am going to give the path where I have installed my Arduino system in this case. 

How can I find it? Well, we are going to try to find where I have, here Arduino, in the icon this one I am going to put properties, open location.

Notice that in this case, it will tell me up here that I have it in C:\ProgramFiles\Arduino.

Then I will have to go to disk C (this depends on each one where you installed it). Program files, which is program files, and Arduino. Notice that I have the Drivers folder.

Additionally, if you are in the drivers folder, what you can do is also, notice you have ALL ARDUINO DRIVERS, you can unzip this if it does not work for you, this is just in case. And if not we are also going to try to execute one of these.

Look, I have 64 in this case, let’s test there. Notice that I am going to install the drivers.

Well, in my case so you see, to be realistic, it would seem like it is. It can happen to you if it is an imitation of Arduino and others, or it can give you this error as you can see, in some special case. So in GOOGLE we are going to put Arduino UNO CH341 DRIVER Windows 7. Although not necessarily in Windows 7, in this case I have it this way.

Generic Driver Download Link:

Let’s search then, let’s put 341 here. I install the 341 driver.

Let’s look here and the driver is saved directly for me.

Suppose this page does not exist, well you have here, ROBOTICS, another page with drivers. You have a lot of pages. We are going to enter GEEK FACTORY. The links appear at the end. Here it is. Download the driver for WINDOWS.

You have different options and alternatives, different pages. So what I’m going to do is take this with me, you can take it anywhere. 

Suppose I want it in the IKI folder, here. Because I’m going to uninstall it later. I unzip. I will delete this one then. Notice that inside I will have a SETUP directly. This is coming, right click and run as administrator if you prefer. I will install, in this case. 

Look there it was heard … at least on my computer I heard a sound. That’s because something did indeed recognize the hardware.

It would mean, check out SUCCESS. We will automatically try to check here, I will close this. And notice that I detected the USB SERIAL CH340 also called. 341 or 341.

So now I can close, and what I can do directly is go to my Arduino. In any case, when in doubt, we will try to run it back to the Arduino so that it has taken the changes. If you want, restart the computer in some extreme case. 

I’m going to create a new document , so that everything is from scratch. Let’s go to Tools, Port, COM8, perfect.

And we will try to test. Notice that I would not be having any problem.

I’m going to put SERIAL PLOTTER, note that everything is working.

And before anything else too, here I saw a comment that says that if you have aproblem, choose the DUEMILANOVE board.

Look, I can go directly here, and I could choose if I have the DUEMILANOVE plate. You see?. Because it is similar.

It would be another of the alternatives. Well later the error can vary.

You can have one error or another, I can no longer give you a generality because everyone in your house will have a different Arduino board, a different operating system, and life has different problems with different solutions.