Go Down

Topic: Newby Arduino UNO Blinking LED Issue (Read 511 times) previous topic - next topic

mannypac

:( I just purchased an Arduino UNO from Radio Shack. I am reading your book "Getting Started with Arduino". I downloaded the software to my PC Windows 7 Ultimate. I created the sketch as indicated in the book Page 31 but the led does not change on and off rate.  I changed the on and off to 2 on 6 off but it blinks the same.

HELP! Manny from Puerto Rico

//This my first sketch on Arduono
//This sketch will light a LED on and off
//Every eight seconds.

const int LED = 13; // LEDE connected to
                    //digital pin 13
                   
                   
void setup()
{
  pinMode(LED,OUTPUT);
                         
}

void loop()
{
  digitalWrite(LED,HIGH);  //Turns the led on
  delay(2000);           //Waits for 2 seconds
  digitalWrite(LED,LOW);  //Turns the LED OFF
  delay(6000);
}

beetle1131

mannypac,  I ran the code on my Uno and it lit the led for 2 seconds, then turned it off for 6.  Are you sure you uploaded your changes to the board after you made the changes?

Jack Christensen

Welcome to the forum, hope you have fun with Arduino!

For future reference, please see:
http://arduino.cc/forum/index.php/topic,148850.0.html

Item #7 illustrates how to properly post code.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up