I got on amazon, so everything applies to both of these, and basically the very first thing you need to know here is that, on this side of the arduino youve got a usb type b port, as well as a power supply port for us to actually load Code onto this thing to make it do stuff, like turn on lights or change voltages, we will need to be uploading our logic through this usb type b port. So you will need a usb type b, cable and hopefully your arduino came with one um. If not, you can buy these on amazon for a couple bucks, but basically, by the end of this video, we are going to install the software for the arduino ide onto our windows machine and then load some logic onto this. That will control the rate at which it will turn on a built in led on this thing uh, so that we can start playing around with it and changing some parameters in our software to see how we can do some cool stuff, so stay tuned and well Get started we are now going to walk through installing the arduino ide. The integrated development environment on our local computer were going to be doing the one for windows, but you can also follow the guide for mac as well, so basically were at. The google page were just going to type in arduino right here and were going to click on the arduino homepage right here and were going to click on software and its going to take us to this download section.

And we will just download the appropriate installer. For our computer, which in this case would be a windows, 7 thing and in my case im going to just download this the guy and you can make a donation as well. If you would like so well, let this download complete and give it just a second. Its cool, so our download is completed and also make note that i have not yet inserted the arduino. So ive got my usb cable and then the other end of that guys go into my computer, but ive not yet plugged this guy in so im. Gon na wait just on that part and im going to open up this executable file and give it a moment and basically the whole reason why we are needing to do this is that we need to provide the software to our computer to understand how to interact With the arduino were about to plug into it, so get this little security thing and click run and im also going to click. Yes just to allow it to install click on. I agree were going to be creating everything here so leave all these boxes checked as defaults and were just not changing anything here and were going to give this thing another second to proceed with doing the installation, okay and im, getting a little message here asking if I want to install the driver im going to click, install and install again and install again cool, and so there we go weve just successfully installed our arduino ide, so im going to click on the start menu here and we should see some new icons.

So weve got this new arduino app on our system. So when i click on that guy its going to open this thing up its going to ask me if i trust this software or i want to allow access to it, im going to click, allow access and so right now, weve got our little software right here. Running for arduino, but i still have not yet connected my arduino. So what im going to do next now that weve actually installed the drivers for this guy is im going to again click on my little start menu here, im going to type in device manager and im going to open this guy up, and so the important thing To make note of is that were basically using a com port, a co import on our machine right now and note how its detecting all these things uh and when i connect this guy, like that, the lights come on and we can see that our arduino uno Is now being recognized by our windows computer just like that so um, that is pretty cool and um. So now what were going to do next is actually proceed with writing a little bit of software to make these make some lights turn on and off. Just to do like a hello world example with this thing, so stay tuned all right, so we are now going to walk through the process of actually running the code to get a led built into our little arduino to blink, and we can change logic on this Thing to see what we can do, uh so well get started with that.

So, basically right now. What i have is my arduino ide and im going to make this full screen and im going to hold down the control button and scroll up on my mouse and thats just to make the text bigger here. So we can read it um and now im going to go to file and im going to go to sorry examples and basics, and these are built ins, which is pretty cool im going to click on blank, and hopefully this name is pretty intuitive. What it does. So im going to maximize this window and so basically uh. If you read these comments, it is basically what its about to do. So basically, there is a built in little led on these arduino boards themselves, and so what this does is it basically will make this led blink at a set rate uh on this thing, because its theres uh integrated little resistor on this board as well. As you know, the led itself um so its gon na be pretty cool and thank you to the authors and so basically uh delay. 1000 is basically a thousand milliseconds, so the units here are milliseconds and its telling it. You know to set the voltage to you, know five volts or 3.2 volts, whatever it is set at for one second and then wait a second and then change the voltage back to you, know zero or low and then wait another one second and then basically continue Doing this indefinitely so um, what were going to do now is on this button.

It says upload here and theres also verifying verifies pretty cool, so its like before you actually upload this and overwrite the you know existing uh set of instructions that are on your arduino. You can click on verify and its just going to confirm that. Basically, everything here looks good and if it didnt, you would see an error message and you can google that error message or see what is wrong with your code. But basically, in our case, what were going to do is were just going to click on upload im, not changing anything in this example, and what uploads doing is its literally sending these instructions over this cable to my arduino itself now and note how its saying serial Port not selected uh. This is because we havent yet told the arduino ide where to put this, and you know i could have many arduinos hooked up to my same computer, which is reason why we need to actually tell it exactly where to do it. And if we remember in our device manager window right here, we under our ports section its telling us it can see this arduino uno and its on com3. So basically, what we need to do is we need to set this to com3, and you can see its also smart enough to know that that is our arduino uno right here. So if you had other arduino types too, those would hopefully show up as their respective type and click on ok and so now its actually going to put this thing onto our chip just like this, and you can see the light that is now blinking every one.

Second and its turning off, and so you know if you want to start playing around a little bit with this, like you can say, i want my led to be on for two seconds and i want it to be off for half a second. You would change this value to 2000 milliseconds for waiting, while its just turned the led on and then setting this to be 500, which means you know, half a second after its turned it off so now were going to do is were going to before we upload It good practice to verify that our code changes have not broken anything so its going to verify this and havent seen any errors, and we can still see that this thing is blinking on and off at that set. One second interval now im going to do is im just going to re upload this modified code now to our arduino, and we should see this led uh take on these different properties, and so hopefully i can see it here yeah. So now you can see this things being on for two seconds off for half a second on for two seconds for half a second and so on, and if you want to get crazy, you know you can just come in here and start copying these lines and You know pasting it in to add in some other funky stuff too, so you can do that and you know have it on for uh two seconds and then ill have it on for another half.

Second, and just you know just start playing around with it, uh its like dancing, you just kind of move and do stuff and see what works and what doesnt, and hopefully you dont embarrass yourself, too badly um, but yeah well see what this one looks like. So im gon na just verify it again were not getting any blood in our console, as we say, were gon na upload. This guy and now were gon na see what this thing looks like so itll be two seconds: half second half second two seconds and now its like a little beat to a song or something you know, got an upbeat and downbeat um but yeah. So that is how were going to get started with arduino and weve just successfully installed it and run through a little example on our computer without having to really write any code. We are now up and running. So, thank you all for watching more videos to come on this stuff.

https://www.youtube.com/watch?v=beeHNtSt0rQ