DIGITAL AND ANALOG PIN TROUBLESHOOTING

Hi everyone,

I just got an ARDUINO UNO R3 on amazon.

I want to check whether all the DIGITAL AND ANALOG PINS are in working condition ASAP as my project submission is nearing the deadline.

I did search in google, but found no threads/posts/articles relating to this.

Any help and assistance is much appreciated.

Thanks in advance!

Cheers :slight_smile:

To test if the digital outputs are working: put an indicator LED on each of the outputs and use digitalWrite() to set them to high and then low.
To see if the analog inputs are working- apply a known voltage to the pin, use analogRead() and see if the value is what you'd expect it to be.
Or do you have some more specific questions about what exactly you should do?

I needed to test the pins were working on some custom Arduino board definitions I made so I wrote this sketch:

You set the pin to test and which function via the Serial Monitor interface.