Pushbutton Power Switch

I am using a pololu pushbutton switch with an arduino and a 12 volt wall adapter. Whenever I attempt to turn the arduino on with the switch and a wire connected from the off pin to pin 13 on the arduino, all of the lights flash and then turn off. If, however, I disconnect from pin 13, turn it on, reconnect 13, everything works like a charm.

There is nothing in my code that references pin 13. I have tried to make pin 13 low in the first line but it doesn’t get that far before turning off.

Any ideas?

Thanks

Hello.

Have you tried using any of the other pins? When the Arduino Uno powers on, pin 13 briefly goes HIGH flashing the LED. You might try connecting the OFF pin to another pin and see if that fixes the issue.

- Jeremy