Arduino Basics: Working One LED

by Analogue-Chick in Circuits > Arduino

4694 Views, 14 Favorites, 0 Comments

Arduino Basics: Working One LED

124_5989.JPG
I've been encountering lots or Arduino projects but generally most are on intermediate and advanced level and only a few basic instructions on how to start with Arduino. This project I made were actually inspired by this example on the Arduino page, but a much in depth step by step instructions.

Assuming that you already have the basic idea on the parts and pin assignments of Arduino, you can now skip reading about them on this page.

What You Need?

124_5975.JPG
124_5981.JPG
124_5967.JPG
124_5985.JPG
1) Arduino - I used the Duemilanove since this is the only model currently available in local stores.
2) USB Printer Cable - Any USB printer cable you have at home.
3) LED - I used RGB LED.
4) PC with USB port - Any PC with USB Port. Preferably, PC with MAC OSX, Windows and Linus Operating System.

Getting Started

124_5992.JPG
124_5993.JPG
124_5996.JPG
1) Connect your USB Printer cable to your Arduino.
2) Connect your Arduino to your PC via the USB port.
3) Connect your LED's Anode (+) longer pin  to PIN 13 (Ideally pin number 13 because of the resistor connected to it) and the Cathode (-) shorter pin to the ground (GND).

Downloading Software

Pic 01.jpg
Pic 02.jpg
Pic 03.jpg
Pic 04.jpg
1) Access Arduino download page.
2) Choose the appropriate download based on your operating system.
3) Extract files on your target folder.

Uploading Codes

Pic 07.jpg
Pic 08.jpg
Pic 09.jpg
Pic 10.jpg
Pic 11.jpg
Pic 12.jpg
Pic 13.jpg
Pic 14.jpg
Pic 15.jpg
Pic 16.jpg
1) Open Arduino application.
2) Copy codes.
3) Paste your codes on Arduino application.
4) Select the model of your Arduino. I chose "Arduino Diecimila or Duemilanove w/ ATmega168.
5) Select appropriate serial port.
6) Upload program.
7) Wait until it prompts that the writing is DONE.
8) Once the writing is done, check on the LED if it works accordingly to your written program.

Output

124_5999.jpg