Hi. Would anyone know of a way to test all the outputs on an Arduino Board?
Is there a sketch written somewhere that can be ran to show if the outputs are all working (perhaps by connecting LED's, etc).
I'm having problems with my board (or my sketch, or the components that I use) and want to be able to test it and see if the outputs and functions are working properly.
I usually use the Blink sketch for something like that. Just blink the pin you want to test, and put an LED and resistor to ground on that pin. Change 13, in 3 places in the sketch, to whatever pin you want to test. You can also test the analog pins that way, using pin numbers such as A2. Blink sketch is on the menu at File, Examples, 01.Basics, Blink
If you want to blink all the pins you can just move the wire which has an LED (and resistor to ground) from one pin to another as the sketch is running, and check all of them. Blink all of the pins by adding a for loop to blink them all, like this:
Make sure you don't have things such as sensors or buttons connected to the Arduino when you load this sketch, because you are going to be output voltages on all pins. Pins 14 through 19 are the digital pin numbers for A0 through A5.