My LED on the Arduino does not work but everything else works.
Is there a way I can find out what happened.
Plus, that was second day of using the Arduino.
What makes you think the LED doesn't work?
Which Arduino board do you have?
Arduino Mega 2560
bramy:
My LED on the Arduino does not work
What LED ?
And what program are you using when you try to make the LED light?
...R
Blink.
To stop my program running on the Arduino I just upload Blink.
bramy:
To stop my program running on the Arduino I just upload Blink.
I just disconnect my Arduino from the power when I want my program to stop.
...R
bramy:
My LED on the Arduino does not work
Robin2:
What LED ?And what program are you using when you try to make the LED light?
bramy:
Blink.
So are you saying the built in led on pin 13 isn't working?
If you have put that shield thingy from your other thread on top, can you even see the led?
Take a wire from pin 13 and touch it to the silver hole next to one of the leds on the protoboard, see if that lights the external led. (With the board plugged in of course....)
Sorry for not making myself clear in the beginning.
I am referring to the built-in LED on pin 13. I can't turn it on at all.
And yes, PIN 13 works fine. I connected it to an external LED, and I successfully turned this external LED on an off by doing a digitalWrite to pin 13.
I am using an Elegoo board (with Mega 2560). I bought it less than a week ago, and the LED worked for a couple of days before it completely went off. Could it just be a poor quality LED that Elegoo puts in their boards? Or is there any amateur mistake that I could have done that caused this?
Appreciate your help. You are a great community.
I don't think there is anything you could do with program code that could damage the LED.
What happens if you have a simple program with the following code
void setup() {
Serial.begin(115200);
Serial.println("Starting LED13 test");
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
Serial.println("ON")l
delay(2000);
digitalWrite(13, LOW);
Serial.println("OFF");
delay(2000);
}
Make sure to get the messages in the Serial Monitor
...R