Is there an automatic test shield + test code available for the Arduino Uno?
We have a LOT of Arduino uno's at school. And when I give an Arduino to our students I want to be sure that I'm not giving a fried version with a blown I/O pin for example. Nothing is more frustrating for a student to search for a bug in their code while the Arduino is fried by a previous user.
So I want to do a complete functional test (like a production test) when I get the boards back. Any suggestions? I couldn't find such a thing on the web...
You want to make a possible damaged controller test itself?
A simple shield will connect each pair of digital pins by two antiparallel LEDs (+ resistors): Then make the LEDs flicker slowly so that you can find out which pair has a damage.
For the analog inputs build a daisy chain of resistors with both ends going to a pair of digital pins. This allows to test each input for correct Vcc (1023) and GND (0) connection as well as increasing or decreasing values from A0 to the highest input pin.
You may also want to check the voltage regulators which are vulnerable to abuse.
The 3.3volt regulator could be checked via an analog pin (or a led).
The 5 volt regulator could simply be checked by powering the Uno via the jack instead of the USB connection.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.
There was a similar question not too long ago(maybe in the last three month); you can try a search on the forum.
Did you have real cases that prompted you to seek solution? If so what happened?
Yes there are some fried Arduino's here. You will never know what happened exactly but I can make an estimated guess... They are using motor shields on 12V, breadboards etc... So it is not unthinkable that a student connects a 12V to an I/O pin by accident.
@ bidrohini
Thanks! I see that company had the same sort of problems that I face here... But the code is gone.
@ johnwasser
Yes these steps are necessary to test such a board. Looping back its own outputs to its inputs and vice versa.
Before I started my job on a school I've been designing hardware for years and also test beds for it. One of my smaller products and test bed is shown here below. So I know what it takes to do automatic programming and perform a production test on hardware.
This link to the Arduino Uno R3 has loads of information (in text form, not just charts of numbers) on the available pins and their use.
It is always good to build test jigs to make your work more accurate or easier. My tool kit was full of home-made jigs. I hope you get one done for Arduino.