Pages: [1]   Go Down
Author Topic: Testing Arduino Boards, I/O Pins etc.. Test Shield - Test Software  (Read 8536 times)
0 Members and 1 Guest are viewing this topic.
Red Sea, Saudi Arabia
Offline Offline
God Member
*****
Karma: 11
Posts: 579
..On The Red Sea
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe this shoulda been here:

http://arduino.cc/forum/index.php?topic=50203.0

More stuff at: http://terryking.us/arduino-testing.htm
Logged

Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com

UK
Offline Offline
Full Member
***
Karma: 2
Posts: 110
Kittens eat Arduinos
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi - I like the idea smiley that I can test the arduino board easily.
To eliminate the nagging thought that I damaged it by mistake, and so the software does not work!!

I rarely solder - mainly just to put pins on for use in a solderless breadboard, so although I have a mega, am mostly using my mini...

I think that I could set up a breadboard with the resistors as you describe, and have a test location for the mini - does that make sense?



Logged

USA
Offline Offline
Full Member
***
Karma: 2
Posts: 213
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Terry

Your test methods look very good and the way you did the board makes a lot of sense.

I helped develop the official test suite for Arduino, if you could re-write your test using the standardized testing library, we could incorporate it into the full test suite.  Your test would stay the same, the only thing that would change would be the format of the output.

http://code.google.com/p/arduino/wiki/ArduinoTestSuite

Mark
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16540
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I helped develop the official test suite for Arduino,

Of course that would leave mega based boards not tested on all their avalible pins.

Lefty
Logged

Red Sea, Saudi Arabia
Offline Offline
God Member
*****
Karma: 11
Posts: 579
..On The Red Sea
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I helped develop the official test suite for Arduino,

Of course that would leave mega based boards not tested on all their avalible pins.

Lefty


@LEFTy you're RIGHT, which happens pretty often  smiley  I will be making a MEGA Test Shield soon.  IF this seems like a good approach a real Shield with SM resistors etc. could be made. 

@MARK, please get in touch about this: terry@yourduino.com

I have a long background in chip testing at IBM and I've been thinking of writing some more detailed self-test code for Arduino internals, memory etc. With the idea that Arduino users could run some kind of confidence tests long after their Arduino left the factory.  There must be code from ATMEL??

Of course there's a lot of guts that can't be tested in a self-test mode.. But I think we can assume that ATMEL did OK at Chip Test and now we are mostly looking for Board Connectivity and I/O pin damage issues.

What's your opinion about this stuff?? Should we start a new thread??

Logged

Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Terry AWESOME stuff.

I have the Mega 2560 and ran into an issue loading the sketch. It seems that more then two !! in a row causes an error. Found by this posting
http://forum.arduino.cc/index.php?action=profile;u%3D77604;sa%3DshowPosts

Just thought I would give a heads up . Also If you read this post can you tell me where the Ten errors are I count 7 but i am missing 3 somewhere.. And why in Test5 did PIN 5 fail when the rest returned OK. Thanks again for a great tool.

--- TEST START ---
TEST 001 - Any stuck pins?
VoltsRead = 2.51  -- OK

TEST 002 - Digital Pins Source Current
PIN-3  PIN-4  PIN-5  PIN-6  PIN-7  PIN-8  PIN-9  PIN-10  PIN-11  PIN-12 
2.49   2.48   2.49   2.48   2.48   2.48   2.48   2.49   2.49   2.48   
-OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   
TEST 003 - Digital Pins Sink Current
PIN-3  PIN-4  PIN-5  PIN-6  PIN-7  PIN-8  PIN-9  PIN-10  PIN-11  PIN-12 
2.48   2.48   2.48   2.48   2.48   2.49   2.49   2.48   2.48   2.48   
-OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   -OK-   

TEST 004 - Analog Pins Source Current
PIN-1  PIN-2  PIN-3  PIN-4  PIN-5 
0.00   0.00   0.00   0.00   0.00   
-OK-   -OK-   -OK-   -OK-   -OK-   
TEST 005 - Analog Pins Sink Current
PIN-1  PIN-2  PIN-3  PIN-4  PIN-5 
4.99   4.99   4.99   4.99   4.99   
-OK-   -OK-   -OK-   -OK-   FAIL   

TEST 006 - Analog Pins A0 to A5: A to D (About 2.50 V)
PIN-0  PIN-1  PIN-2  PIN-3  PIN-4  PIN-5 
2.10   2.26   2.47   2.48   2.47   2.48   

TEST 007 - Analog Pins A0 to A5: A to D (About 3.33 V)
PIN-0  PIN-1  PIN-2  PIN-3  PIN-4  PIN-5 
2.41   2.39   3.31   3.31   3.31   3.31   

TEST 008 - Analog Pins A0 to A5: A to D (About 1.66 V)
PIN-0  PIN-1  PIN-2  PIN-3  PIN-4  PIN-5 
2.08   2.17   1.64   1.64   1.64   1.64   
TEST COMPLETE
THERE WERE 10 FAILURES

 
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 441
Posts: 23834
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I wrote test vectors for complex chips at Teradyne one summer, that was kinda fun, working in Boston and walking around the corner to Chinatown for lunch.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: