So we last time the last video we opened up the box and kind of took a quick look at some of the things inside. So what were going to do this time is were going to make sure youve got the website. Remember it tells you where the website is on this card, its student kit arduino dot cc. So let me bring up that website. So ive already created my account on here and one of the first things youre going to do is youre going to download this logbook so ill. Click on that, and that brings up this log book. So ive ive already printed mine out its going to be handy to print it out because different lessons are going to kind of ask you to record things. So you can kind of monitor your learning and kind of make sure you understand things and kind of go at it at a general slow pace, so it helps to have it printed because you can write on it. You cant write on that website very well. You know as a it comes in as a whats called a pdf file and you can then save it, and maybe you could, if you want just print out the pages that you need each time. But i i just printed the whole thing out and used like binder clips or something to hold it together. Okay, so lets get back here so theres, two main things that are really important in this getting started lessons its really called lesson: zero getting started.

Let me click on that and its going to bring up theres a bunch of stuff to read, but i want to highlight for now the important things theres a part here, talks about all the little components in your kit lets well come back to that. But down here under project board, this is actual video that you can watch im not going to run it now. You can watch it on your own. It kind of shows you how to take. Let me let me show you my my workbench here how to mount your little arduino to this plastic project board, along with this thing, called a breadboard, so on the plastic board, theres going to be some little little shapes and tabs youre going to break out. Some of those are actually parts you want to save to use later. For example, four of them are actually little feet that stick in holes here, theyre stuck in good, but so theres four feet that help this thing set flat on on my table. So youre going to put that together now, where its going to work out youre going to want to mount the arduino board first and then the breadboard reason is this thing sticks down with adhesive and once you stick it down, you cant move it very well and Theyre really close together, so you want to put the board first because it goes where it wants to go with the screws and then youre going to put this to make sure it fits theres, actually a little outline that shows you where, to put it its, not Critical and they recommend putting it this way, so the top is this way, and the letters are across the top of the board over here and then the numbers go down down this way.

One thing i did a little bit different just because the way this mounts with three screws i didnt, like it um, because for one thing, this corner was kind of flapping in the breeze and theres a button. Here is your reset button there once in awhile, youll, put push that to start your program over again and with nothing supporting that corner. You could bend the board a little bit so id. I designed a little frame from mine ill show you in tinkercad. I designed this little frame that that fits in those holes so the same three holes mounted. But what what this gives me is a nice flat surface, because the arduino board by itself has little bumps on the bottom theres little bits of solder and with a wire stick through and it could kind of rock on this project board. And what i was afraid is: if, if you tighten two screws across here and if theres a little little bump of solder in the middle, you could actually flex the board. If you tighten it too tight and i might might damage it so by putting this this little thing, i printed this out on my 3d printer and that goes between the two just helps it sit flat. You dont actually have to have that thats. The way the kit comes but id recommend you dont dont over tighten the screws, so theres a little nut on the back and the screw goes through.

You probably need a little phillips screwdriver to kind of hold the top of the screw. You could probably hold this in your fingers because you dont really want to put it too too tight thats a general lesson in life. You dont want to put tighten screws tighter than they need to be or bad things can happen all right. So lets go back to our website, so thats the thats. The first thing youre going to do is assemble this project board. The second thing thats really important in this scroll down this talks about the board of whats on it. But what i want to show you is this software setup. So what what youre going to install is some software that that actually lets you write code on on your computer that then gets down or uploaded into the arduino board so depending on which computer youve got? Typically, youre going to have a windows or a mac rather than just click on this, because if you click on it, its going to replace the page right here so im going to have you do is right. Click on that and say open this link in a new tab. That way i can, i can quickly get back to where i was dont lose my its like keeping a bookmark on on the place where i was so. This talks about how to install its, not hard youre going to download a file, and then you, when you run it to install just let it install everything, the the drivers and the menu shortcuts and all that stuff.

Just just let it let it do that Music. Now the actual download is on this other page. Let me right click there and say open that in a new tab. This is the arduino page, where you actually get these downloads, whether youre on an old version of windows or the newer version of windows, youre going to click on there to download and then run the thing to download and then install. You know you might want to get a parent to help you do that so by having once i get it installed. That gives me this little thing on my desktop. So if i double click on that, it brings up this little starter flash screen and let me just show you one: it brings up a few windows so they keep it over here. So you can see it so not get too concerned what the code is, but basically just to get started in the arduino theres going to be two important parts of your code: theres a set up the things that you do once and then a loop. This thing is meant for like sensing, the real world and you wanted to have it sent something, do something and then go back and do it so its its meant. So your loop continues forever. So, where youre going to start youre going to go file, examples, basics and theres, this one called blink so im going to bring that up and get that other one out of my way.

So heres lets see heres my my blink program and again lets not worry too much about what it is, but i just want to show you a general practice what youre going to do when you have some code here in in this integrated development environment. You first off you: can you can save and open other its like a file? You know like, like a word document, so theres files, you know, file menu is like let you create a new a new file, but once you get a file here, which called your sketch first thing to do is verify that its okay and you see this little Green bar move what its doing its actually checking all the code to make sure youve got all the semicolons in the right place, upper lowercase right and when its done, if everything is in white, youre good to go so this says it uses only two percent of My available storage space and it worked good, but if you get some orange messages here, dont panic were gon na have to then enter a troubleshooting mode. Itll give you some messages to tell you whats wrong. Well talk about that later. How do we troubleshoot? Because youre always gon na, if you type in code, youre always gon na, have errors, even even when i copy somebodys code from the internet and paste it in here they even have mistakes in it. To begin with, or maybe i didnt paste in the whole thing – you know with the last curly bracket or something you got it, its very finicky, youre going to have to get it exactly right, so expect that youre going to get compile errors so once that works Good then youre going to click this okay.

Well, actually ive got to do something first, im going to have to plug. In my my usb cord heres, my i should have shown you this first when i plug in this usb cord and the light shows that its on yeah two things. I need to show you in this tools: menu theres. It tells you what kind of board youve got and then the other one says what port on your computer computer. Are you using so this port menu doesnt even show up if you dont have something plugged in for me, so so you might have to plug the usb cord in before you. Do these two things so on the windows? It says some com port, like thats, a communication port on your computer, has got a check mark and if its, not the right one you might have to. Depending on your query, you might have to check a different one on a macintosh that says something different like slash, dev, slash, tty or something like that, so thats going to say something a little different and then on the board. Its going to tell you youve got the arduino uno theres many different kinds of of boards and from this student kit is the arduino uno for the the number one board and, if youre not sure, if they click on board, get bored info. And this actually reads my little board and tells me: ive got an arduino uno and it gives me some unique numbers, the serial number that comes off of it.

Okay, so those are two things gon na have to be right. Okay, then we got that already. We verified this code. Weve got it plugged in then im gon na complete click, this right arrow that says upload so im going to upload this code into this arduino. If you notice these two lights are transmitting and receive or flashing, and then this code that that was here on my computer is now uploaded into the arduino board and what it does. If you notice this little light, theres a little led light thats built into the arduino just for testing things, and they see that flashing on and off and what makes it flash on and off. If i look at my code here, if it helps to blow this up a little bit notice inside this loop, its its doing something called a digital right to the built in led and its turning it to the high value that turns the light on, then it Goes digital right to the built in led into the low value, but in between so it doesnt. Do it real real fast, its got a delay of one thousand milliseconds thats, actually one second, so its like, as if you had a thousand millimeters, make one meter. A thousand milliseconds make one second, so we delay for one. Second, we turn the light off delay for a second and then because its a loop. It goes right back to the beginning, so this goes over and over again turning the light on and off and thats thats what its thats, what its doing now flashing.

So to make sure you know that youve actually done this lets change this value to something else. Lets say: lets lets make it blink faster. What if i put a 5 there, so i got 500, so thats like a half a second and for delay. Lets lets maybe lets get rid of one zero say lets make it 100. Milliseconds is like a tenth of a second and then ill ill, just upload that code again, it goes through the little sequence of reading it in and now notice. The light is blinking a lot faster, its barely off for just a tenth of a second. If i did this the other way, what a what if i, what if i make it off for 2000, so its gon na be on for half a second off for two seconds, try that again, so you can play with those numbers just to see. Youve got this working and once the code is uploaded notice, it flashes and then its off for two seconds it flashes quick off for two seconds so thats your first actual youve, actually edited this code and uploaded to arduino youve covered a lot at that point. You know weve installed the integrated development environment. Youve actually put some a sketch its a kind of code. They call it a sketch for the arduino kind of like an artist, makes a quick sketch thats why they call it a sketch, i guess, and then weve made.

I made a change to it uploaded again, so weve weve covered a lot so to shut this off. This is going to just run forever. Let me just unplug this, and that takes the power away from the board. So now its just sitting there again. That program is actually remains in here, so i dont have to upload it again as soon as i plug this in i havent downloaded another program, ive just powered it up notice that the light is flashing the same way i last programmed it so, even though i Unplug it it it. It keeps that program in its memory. So back to this website of your lesson, zero. You, you probably want to take some time to kind of scan through whats the arduino whats in your whats. In your kit, it kind of goes through some whats, the breadboard and whats what these called jumper wires. Your led lights im not going to get too bogged down on that yet because well be using those little compounds, one at a time and youll learn about what they are. Weve weve done this heres the part talks more about the arduino board text. What some of the things are for now, all you really have to know is this is where we plug in the usb, and the next thing youre going to use is, is theres. These things called pins those little sockets here, where you can push a wire in there and connect it to things on your breadboard to make a little circuit, thats now controlled by the microcontroller.

So weve done the blink program thats what they have you do and then you come down the end here: theres theres, a section on electrical safety im not going to go through that all now, but id like you to read through that on your own, its important To understand safety, its not as though things are dangerous here in the arduino were typically working with low voltages, but whenever youre working with electricity theres always a potential that something goes wrong like if the wiring in your house is wrong and your computer shorts out. And you get house voltage coming in your usb and its potentially possible that something could go wrong and you could get house of voltage on the metal parts here so were going to talk about safety in in the next video. So read that on your own and come back and what were going to do if you want to look at this ahead, theres a little quiz well go over this quiz in the next video about safety, its a good place, good place to start before we get In and actually work with, our circuits, okay, so i think thats all were going to cover in this video.