I am an electrical engineering student at usc and today im going to be showing you a little bit about the arduino, some of the parts behind it and how to set it up with a chromebook so to get us started. Lets get a little bit of a background on the arduino um. There will be slides with more details, but again just to give you a bit of an idea, so the arduino is in basic words its a small computer. So it has a lot of the parts that you would find inside your computer inside your phone and inside most electronic devices that you use in everyday life um. So, for example, it has you know ports, you know, has a usb interface here. Um has a reset button: um has input and output pins, which are all these little black squares. You see here again very similar to your computer, so in your computer, this one might be keyboards or um keyboards that you type those are input and output pins uh. We have our processor here right, sometimes youll, hear people saying i dont have enough processing power. Well, this is what theyre talking about its actually a device um and the and yeah. Those are the big components that you see here. The last thing is this little piece here is a clock on your arduino, which could become. It can be very helpful when working on certain projects, but again were just getting a basic look at arduino and there will be slides with much more details.

Um and as you go through, projects with the arduino um were gon na be very clear about where to hook up pins. The last thing to take note of is that on the arduino on the pins, there is a ground pin and there is also a voltage pin. There is both a 3.3 volt and a 5 volt um and we will be very clear about which ones to use, but you have both because were going to find out some electronic devices. You dont want to use too much voltage. So that is why there are two here: um and theres three groups of pins. This is the a group of input and output. Pins back here is the b and b c and d group back here and again well, be very explicit with which pins were connecting to so. The first thing youre going to want to do is connect your arduino to your chromebook on the port. So now that we have our arduino connected to our chromebook, the next thing were going to do is download a chrome extension for arduino, so were going to have the link available for you guys, so you dont have to search it, but you can always just search This on the chrome web store to find it now, for you guys, i already have it downloaded, so it just says, launch app, but for you guys its probably going to give you a download option so go ahead and just download it, and once you have that Done go ahead and launch the app and its going to open up the arduino editor.

So lets quickly talk about what an editor is so kind of like when you have a writing assignment. You have to open what you usually use, typically use microsoft, word or google docs right to write an essay editors are great because its what we write our code in um, so our that is why were using an arduino editor so that we can communicate with our Arduino and its great because arduino as a company, they have created an editor thats, very really easy for us to use. So now that we have it open. One thing to point out the reason why you want to connect your arduino first before opening the editor is because, if you do, if you do, if you connect your arduino first, when you open the editor, itll automatically find your your arduino uno and, as you can See i already found it so i dont have to go trying to scroll through and see if i can find the exact one so make sure to always plug in your arduino first now. The next thing that were going to do the nice thing about the editor is that within um the app there is a set of example, code that is given to us from arduino and its really great, because we can try certain things out. Maybe if we have an idea, we want to combine different code here. We can do that. We can take some of what theyve written combine it with stuff.

We want to do and we can do that so lets just to go through um some of the code. What is kind of in each one of these files? So here i clicked analog, read serial. We wont be running this one, but just to give an idea heres the code. As you can see, you can see all the code, this dot txt file, tells you what the what the code does, and it can also each file, comes with an image of how to set up your arduino and theres also a schematic. So this is a very technical um image right its not like this one. Where we can see, we can look at the picture and copy it on ours, but this one says the exact same thing. It just is a very technical image, so, as you go along, hopefully you feel more comfortable looking at these and setting it up. But, of course, if you need assistance, this is absolutely here and available, so the one were going to be doing today is actually the blink. So the blink one, this ones really nice because, as you see, theres no schematic image because were going to be using led thats already on our arduino, which is really great, and it tells this tells us this right here. So on the blink heres. The code feel free to read through it, but in order to get the code to run on, our arduino were going to do so.

We have to upload it first, so were going to use this arrow to upload our code from our chromebook and send it to our arduino use through the wire we have connected. So, for with any time you use an electronic like this or you program it youre going to have to send the code to it somehow, which is what were going to be doing right now, so im going to go ahead and click upload and its going to Take a little bit of time, which makes sense right. It has to send information to our arduino, and once i do that, its going to say flash complete, so flash complete flashing to an arduino is a very fancy technical word. It basically just means you uploaded the code so once we do that, we can now verify which starts our code and it runs it on our arduino. So, to get two steps, uploading the code and actually running through the code, so were gon na hit verify and when we do that were gon na see, we should see blinking a little yellow, led blinking on our arduino, as you can see after flashing and verifying Or playing my code and running through it theres a little yellow, led, light blinking, and so, as you see its really simple to just flash your code to to the arduino and then um hit the check mark. So the editor is really great because it makes all the steps really easy in in a convenient location for you to use as you go along, um feel free to try a lot of the code thats already written there, for you were going to be.

Writing our own code, but again just to give you a sense of how to connect our chromebook to the arduino and how to flash code and how to play it.