I just finished testing a haptic device at university, and when I took it home I got the joy of finding the device not working. Here's what I can trace the problem to: when multiple pins are set to output (pin 2~11), pin 3 writes constantly to high and there is nothing I can do to make it stop.
Using a blinker program one pin at a time produces no problems, however when I run a blinker program that cycles through all pins, pin 3 is set to constant high. My actual code is similar in function but more complex. This program below though gets the same error.
void setup()
{
for (int c =2; c<12; c++){
pinMode(c, OUTPUT);
}
}
void loop()
{
for (int c =2; c<12 ; c++){
digitalWrite(c, HIGH);
delay(100);
digitalWrite(c, LOW);
delay(100);
}
}
Is this a sign my arduino died? My device had been working for weeks on my prior code with no problem (and no updates).