Tuesday, October 11, 2011

Project 1_LED Blink

Boleh mendapatkan nye dekat http://arduino.cc/en/Main/Software ..terdapat 3 pilihan OS untuk software ni antaranyaWindows,MacOS dan Linux. Cubaan program pertama BLINK LED tapi just kita ambil dari example yang diberi kat software Arduino Alpha v0022..

Procedure :
1. Sediakan alatan :
a) Arduino
b) Breadboad
c) USB cable
d) LED
e) Connector

2. Sambungkan alatan seperti litar schematic.

-anod Led1 > Pin 12 (Digital)
-katod Led1 > Pin GND

3. Sambungkan USB pc-to-arduino
i. Start Menu > Control Panel > Device Manager > Ports (Com&LPT) > "example ; COM1"

4. Buka software Arduino Alpha v0022.

5. Panggil File Blink

a) File > Examples > Basics > Blink
(windows Blink akan muncul bersama coding)

6. Setting pada software sebelum upload
a) Tools > Board > Arduino Duemilanove or Nano w/Atmega328
b) Tools > Board > Serial Port > "Example ; COM1"

*untuk check COM seperti arahan 3 i.

7. Upload coding to arduino


Fig : Layout of Project 1


Vid : Finish of Project 1
http://www.youtube.com/watch?v=Hm_7IssVuxY

2 comments:

  1. nak baca jgak coding arduino camana...
    lepas ni upload skali program ko ;)

    ReplyDelete
  2. /*
    Blink
    Turns on an LED on for one second, then off for one second, repeatedly.

    This example code is in the public domain.
    */

    void setup() {
    // initialize the digital pin as an output.
    // Pin 13 has an LED connected on most Arduino boards:
    pinMode(12, OUTPUT);
    }

    void loop() {
    digitalWrite(12, HIGH); // set the LED on
    delay(1000); // wait for a second
    digitalWrite(12, LOW); // set the LED off
    delay(1000); // wait for a second
    }

    ReplyDelete