Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: got my arduino!

  1. #1
    Case Wizard blaze15301's Avatar
    Join Date
    May 2010
    Location
    usa
    Posts
    905

    Default got my arduino!

    i got it today and ive had it for 4 hours. i wrote my firs led program. here is it f your intrested
    // blinking led 1
    #define LED 13 //led connected to 13
    #define LED 12
    #define LED 11

    void setup ()
    {
    pinMode(13, OUTPUT); // pin as out put
    pinMode(12, OUTPUT); // pin is output
    pinMode(11, OUTPUT); // pin is output
    pinMode(10, OUTPUT); //pin is output
    pinMode(9, OUTPUT); // pin is output
    pinMode(8, OUTPUT); // tunr led on
    }


    void loop()
    {
    digitalWrite(13, HIGH); // turns led on
    delay(15); // wait a sec
    digitalWrite(12, HIGH); // turns LED on
    delay(25); // wait a sec
    digitalWrite(11, HIGH); // tunr led on
    delay(35); // wait a sec
    digitalWrite(10, HIGH); // turn led on
    delay(45); // wait a sec
    digitalWrite(9, HIGH); // turn led on
    delay(55); // waits for a second
    digitalWrite(8, HIGH);// tunr led on
    delay(65);

    digitalWrite(13, LOW); // turn led off
    delay(55);
    digitalWrite(12, LOW); // tunrs LED off
    delay(45);
    digitalWrite(11, LOW); // turn led off
    delay(35);
    digitalWrite(10, LOW); // led off
    delay(25);
    digitalWrite(9, LOW); // led off
    delay(15); // waits a seocnd
    digitalWrite(8, LOW); // tunrs led off
    delay(10);
    }
    i dont think its to bad considering ive never written anything in my life.
    Quote Originally Posted by AmEv View Post
    Or are you talking about vending machine choice C-4?

    mmmmm... skittles....
    bench mark software.

    video bios flashing guide

  2. #2
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: got my arduino!

    Also check out fritzing (www.fritzing.org). It lets you do up visual drawings to show how everything is hooked up, goes nice with your code

    Enjoy it, if you've got any questions there's plenty of us here with experience, and also go to the Arduino forums (www.arduino.cc), and there's TONS more help there

  3. #3
    Case Wizard blaze15301's Avatar
    Join Date
    May 2010
    Location
    usa
    Posts
    905

    Default Re: got my arduino!

    Quote Originally Posted by SXRguyinMA View Post
    Also check out fritzing (www.fritzing.org). It lets you do up visual drawings to show how everything is hooked up, goes nice with your code

    Enjoy it, if you've got any questions there's plenty of us here with experience, and also go to the Arduino forums (www.arduino.cc), and there's TONS more help there
    thanks sxr you have been a big help. i need to grab a few things before i finish the book you sent me. so far ive learned a good it from it.
    Quote Originally Posted by AmEv View Post
    Or are you talking about vending machine choice C-4?

    mmmmm... skittles....
    bench mark software.

    video bios flashing guide

  4. #4
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: got my arduino!

    good, glad it helped you out!

  5. #5
    Case Wizard blaze15301's Avatar
    Join Date
    May 2010
    Location
    usa
    Posts
    905

    Default Re: got my arduino!

    i broke the board already i think. the led wont stay on not even the onboard one.
    Quote Originally Posted by AmEv View Post
    Or are you talking about vending machine choice C-4?

    mmmmm... skittles....
    bench mark software.

    video bios flashing guide

  6. #6
    Will YOU be ready when the zombies rise? x88x's Avatar
    Join Date
    Oct 2008
    Location
    MD, USA
    Posts
    6,334

    Default Re: got my arduino!

    Is the input power good? If you connect it to your computer and try to program it, does it acknowledge it? .."Did you try turning it off and on again?"
    That we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously.
    --Benjamin Franklin
    TBCS 5TB Club :: coilgun :: bench PSU :: mightyMite :: Zeus :: E15 Magna EV

  7. #7
    Case Wizard blaze15301's Avatar
    Join Date
    May 2010
    Location
    usa
    Posts
    905

    Default Re: got my arduino!

    Quote Originally Posted by x88x View Post
    Is the input power good? If you connect it to your computer and try to program it, does it acknowledge it? .."Did you try turning it off and on again?"
    yes yes and yes.
    Quote Originally Posted by AmEv View Post
    Or are you talking about vending machine choice C-4?

    mmmmm... skittles....
    bench mark software.

    video bios flashing guide

  8. #8
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: got my arduino!

    well if you can program it it's good, otherwise it'd come up with an error of some sort. did you change your coding at all?

  9. #9
    Case Wizard blaze15301's Avatar
    Join Date
    May 2010
    Location
    usa
    Posts
    905

    Default Re: got my arduino!

    Quote Originally Posted by SXRguyinMA View Post
    well if you can program it it's good, otherwise it'd come up with an error of some sort. did you change your coding at all?
    yeah i checked it again i was missing a semicolon after one of my delays.
    Quote Originally Posted by AmEv View Post
    Or are you talking about vending machine choice C-4?

    mmmmm... skittles....
    bench mark software.

    video bios flashing guide

  10. #10
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: got my arduino!

    yea get used to those semicolons...they suck lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •