Electronic – arduino – ny difference between pin 13 and the rest of the pins

arduinohardwarepins

Pin 13 has a surface mounted LED on it. Aside from the fact that it makes something light up, is there any non-negligible difference between this pin and a general digital pin?

For example, if I analogWrite() on pins 12 and 13, will the output on 13 be significantly less?

Best Answer

From Arduino.cc

NOTE: Digital pin 13 is harder to use as a digital input than the other digital pins because it has an LED and resistor attached to it that's soldered to the board on most boards. If you enable its internal 20k pull-up resistor, it will hang at around 1.7 V instead of the expected 5V because the onboard LED and series resistor pull the voltage level down, meaning it always returns LOW. If you must use pin 13 as a digital input, use an external pull down resistor.