Monday, 3 November 2014

hardware - Is there any difference between pin 13 and the rest of the pins?


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?



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.




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...