What is wrong with this?


I am pretty much new to Arduino, and I have a little problem over here.

So, I have a code to put voltage on pin 10 for a short amount of time.

I am using the following:

int ledPin = 10;                 // LED connected to digital pin 10

void setup()
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output

void loop()
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(1000);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(1000);                  // waits for a second

It does not work. I plugged a cable in the place where it says: DIGITAL PWM 10 I also connected a cable from the breadboard back to ground again.

What is wrong with my setup/code?

The code looks good,

1) you could change the number from 10 -> 13 and then the on board LED should blink.

2) How did you connect the LED to pin 10? can you post your schema

I already fixed it.

What I basically tried was this:

I had a $1 step counter, which added 1 step by every time it gets a certain amount of voltage.
So I wanted the arduino to make it a timer instead of a step counter, so I wanted to add 1 number every second.

I tried to clear the eeprom, and then re-uploaded it, and now it seems to work.