Loading...
Pages: [1]   Go Down
Author Topic: Newby Arduino UNO Blinking LED Issue  (Read 186 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-sad 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);
}
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Grand Blanc, MI, USA
Online Online
Faraday Member
**
Karma: 47
Posts: 2565
"We're a proud service of the Lost Electricity Reclamation Agency"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Get the infamous "One Million Ohms" board at tINDIE.com: http://tinyurl.com/BuyMohms

Pages: [1]   Go Up
Print
 
Jump to: