I followed a pretty simple tutorial which didn't have many details, to make a simple blinking LED on your UNO using the simple example built in the UNO IDE called "Blink." I compiled it once and connected my UNO to the computer and it started working, but I decided to change some timings. I changed the amount of Mili for LOW and HIGH and compiled it once more. No effect. It still went at the same timings. So I pressed the RESET a bit and now the LED doesn't do anything. Help please. :~
and compiled it once more
"Compile" (aka "Verify") doesn't load the code onto your Uno, you have to use "Upload".
I have also uploaded it many times, but still nothing occurs.
I have also uploaded it many times
But you haven't shown us this particular "it".
huh?
reload the example, the small led will blink does it not?
Ramzeez100:
I changed the amount of Mili for LOW and HIGH and compiled it once more. No effect. It still went at the same timings.
Show us what you changed? which part of the Mili for LOW and HIGH?
Sorry I'm new at this, the original code is this:
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
and my attempt to change it:
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(2000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(5000); // wait for a second
}
But the thing is now when I try to compile and upload the original onto my Uno, even that doesn't work. The only thing that happens is that the "ON" and "L" Light go on and the TX and RX flash for a second.
Fixed it the Tutorial I was following was incorrect with their images. The - pin of my LED was supposed to go in a slot called GND. Sorry for the trouble