1

I recently picked up an Uno clone and noticed that if pin 12 is set to an output and I run the Blink sketch on it, the built in led (supposedly connected to pin 13) blinks. It's not as bright as it is when I run it on pin 13, but nonetheless it blinks. If I run it on any other pin, nothing happens, which is the behavior I expected with pin 12.

Is this a common issue with arduino boards, the microcontrollers, etc. or did I get a bad board?

Overall the board visibly appears to have solid construction and appears as the one on the site that I linked to.

Lastly as a side note, I'm currently living in India and won't have a problem going back to their factory for a replacement, if it is a bad board. They include a 6 month warranty.

int ledPin = 12;
int delayPeriod = 100;

void setup()
{
  pinMode(ledPin, OUTPUT);
}

void loop()
{
  digitalWrite(ledPin, HIGH);
  delay(delayPeriod);
  digitalWrite(ledPin,LOW);
  delay(delayPeriod);
  delayPeriod = delayPeriod + 100;
}
Paul Masek
  • 123
  • 1
  • 5
  • Is there a schematic available anywhere? This behavior is not expected, and certainly not characteristic of an Arduino. – Ignacio Vazquez-Abrams Aug 01 '15 at 18:19
  • Good question. I'm not sure. I've just emailed the company asking them if a schematic is available. I've also let them know about this unexpected behavior. I'm curious if this has happened to anyone else. – Paul Masek Aug 01 '15 at 18:45
  • After some digging I came up with this [pdf](http://www.avmicrotech.com/pdf/ArduinoTraining.pdf) on their website. The second to last page, pg.121, may be it. – Paul Masek Aug 01 '15 at 19:01
  • Those are the reference schematics, for the 2009 and Uno r1. – Ignacio Vazquez-Abrams Aug 01 '15 at 19:07
  • Ok, I thought maybe 2009 was AVMicrotech's internal name for their clone. I didn't realize it was an official board. Hopefully they'll get back with me soon. – Paul Masek Aug 01 '15 at 19:12
  • 1
    Try measuring the resistance between the two pins using a multimeter, if you have one. Could be some flux residue or something between the solder joints on the underside, between pins 12 and 13. This residue is **slightly** conductive. – Gerben Aug 01 '15 at 19:48
  • I checked and yes I was getting a measurement of around 150 ohms checking those two pins. Then again i checked the pairs of 8 and 9, 10 and 11, etc. and most of them read something in the same range. Is that level expected? – Paul Masek Aug 02 '15 at 14:12

1 Answers1

1

See Have I bricked my Arduino Uno? Problems with uploading to board

As I state on that page, if pin 13 is set to input the LED may turn on due to being driven by an op-amp. A nearby pin turning on may be enough to cause that effect. Try adding:

 pinMode(13, OUTPUT);
 digitalWrite (13, LOW);

See if that changes the behaviour.

Nick Gammon
  • 35,792
  • 12
  • 63
  • 121
  • Yes, adding that stopped the blinking. So what should I do next? – Paul Masek Aug 02 '15 at 14:17
  • According to this answer. The onboard led might turn on if you leave the pin floating and in input mode. So you need to leave it in output mode, or make sure it's not floating. A pull-down or pull-up resister may help if you need it in input mode for some reason. – Daniel Aug 02 '15 at 15:25
  • Thanks all for the help. You've given me some insight into the behavior I witnessed as well as more knowledge about this device. Also, Nick, you're page that you linked to is an excellent resource, that I'm sure I'll refer to again in the future. – Paul Masek Aug 03 '15 at 06:30