Introduction: Arduino Starter Kit Basics (LEDS)

In this instructable, I will teach you some of the basics of coding with arduino! Hopefully you will learn a lot about it and make your own projects! Share them with the made it tag below! Ok, so let's get going...

Step 1: Parts & Pieces

Picture of Parts & Pieces

Since this is a starter kit instructable, all you need is the stuff that is already in the starter kit, but here is a list of all the parts you need for this instructable:

- Arduino UNO

- Breadboard

- Arduino connecter cable

- Set of jumper wires

- An LED

- A Button

- A Gold-Brown-Red-Red or 220 Ohm reststor

- A computer

Step 2: Test Your Arduino

Picture of Test Your Arduino

Ok, so you have all the pieces, so lets test the board:

1. Get out your board

2. Plus it into your computer with the cable

3. Two lights should come on. If not, check your power and try again.

4. Open up your Computer

Step 3: Download the IDE

Picture of Download the IDE

On your computer, go to arduino.cc/download and download the latest version of the IDE. Open it up and lets start coding.

Step 4: Blink an LED

Picture of Blink an LED

Load up the software and it should open a new "Sketch" If not, do CMD-N to open one.

When you open it up, you see two pre-put in code lines. void setup and void loop. Void setup is the code that only runs once, when you upload to the board, plug the board in, or reset the board. We will need this code, so keep it in the sketch.

Type in this code:

void setup() {
// put your setup code here, to run once:

pinMode(2, OUTPUT);

}

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(2, HIGH);

delay(1000);

digitalWrite(2, LOW);

delay(1000);

}

Then press the arrow that faces right on the top of the sketch and it should upload to the board. If you get an error, follow these steps:

1. On the top of your screen, go to tools, then board, and make sure it's on Arduino/Genuino Uno

2. Go to tools again, but then go to port instead. Then choose the board that says Arduino/Genuino Uno on it.

If you get another error, I will help you in the comments, click copy error message so I can see what happened.

Step 5: Wiring! the Hard Part

Picture of Wiring! the Hard Part

Here is what you have to do to make the led blink:

Put in an led on the breadboard. For this example, put the long end (Positive) into the board on 18, and the short end (Negative) in 16. Then wire a resistor from another spot on 18 to the Plus Line on the side of the breadboard. Then wire the plus line to the Digital Pin #2. Wire line 16 to GND (Ground) on the breadboard.

Step 6: Its Blinking!

Picture of Its Blinking!

Your LED should now blink as if it it is on an automatic switch. If it isn't, check the connection of the wires, and if it still isn't, show me a picture below in the comments. If you made it, show it to me in the comments as well! I recommend playing with the delays and the code to customize it how you would like.

Keep it Up!

The End

Step 7:

Comments

About This Instructable

35views

0favorites

License:

Bio: Hello World! Our goal is to teach kids to code, build and tinker with many cool things! Join us on our new youtube channel!
More by Codingpro Industries:Hidden IPhone Box Storage Case DIY!DIY Simple Gold Necklace (no Gold Needed)Arduino Starter Kit Basics (LEDS)
Add instructable to: