Well, I've got my Arduino mega 2560 a few days now and I think it's not working 100%.
I'm a real Arduino noob, this is my first board but I have some electronics knowledge.
Well here's the problem, I transfered the "blinking led" program to my Arduino and when I use "int led = 13" then there is no problem,
the led on the board is blinking one second and one off.
But if I select another pin and I connect a resistor with a led on that pin then I get some weird blinking.
See my video: - YouTube
Is my board broken or am I doing something wrong ?
/*
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 = 10;
// 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
}
Video playable now ?
Resistor of 220 ohm is connected with pin 10 from there it's connected to the LED with a crocodile clip and the other leg of the led is connected to ground.