3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino All-in-One Getting Started Guide

Step 2Wiring the Blinky Lights

Wiring the Blinky Lights
I've broken the circuit down in such a way that we will be wiring up our output (the blinky lights) completely separately from our input (the pushbutton switch). Makes it easier to understand if you're just starting out.

First, a note and word of caution. Newer Arduino boards have an LED right on the board itself or at least a resistor connected to pin 13 so that you can stick an LED right between pin 13 and ground (GND).

This is NOT true for the other pins! If you connect LED's or other circuits on other pins you must be certain to protect your board from excessive currents or full-out short circuits. You can fry your Arduino!

Personally, I recommend that you always use a resistor when experimenting. You don't want to accidentally short to ground, so at least connect a low value resistor to the ground pin. Better safe than sorry.

In this circuit we are using pins 11,12 and 13 as digital outputs (5V) to power the LED's. The negative post of each LED connects across a single shared resistor and then to ground. In my circuit I'm using a 150 ohm resistor (it was just a convenient grab from my parts bin). You can use other values here -- just don't go too extreme so that you don't either (a) keep the LED from lighting or (b) push too much current through your Arduino.

If you run the Arduino "blink" sketch from step one you should now notice that one of your LED's is blinking. If not, you should check back over your wiring and components. A diagram for this very simple circuit is below.
« Previous StepDownload PDFView All StepsNext Step »
1 comment
Feb 11, 2011. 9:48 AMekhurley says:
I just bought The getting started book and a kit, and they keep mentioning using a resistor on some pins but not others, thank you for finally explaining why.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
12
Followers
1
Author:gunnk
One of my first memories is Apollo 11. Guess that set the stage for everything else. I have a degree in physics, researched indoor air pollution for several years, then moved on to IT *before* the d...
more »