Pages: [1]   Go Down
Author Topic: test mega  (Read 256 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How can I test a mega before I try to use it?  It's not new and if I have to troubleshoot, I'd be miles ahead to know it was my work and not a bad board.  Thanks.
Logged

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

Quote
How can I test a mega before I try to use it?

Well I would think the if you can upload a sketch first that would tell you that the board is pretty much functional. That would leave only testing for bad I/O pins.

Write a sketch that blinks a output at one second to all pins and then attach a simple led>1k ohm resistor> cathode end of led to ground, anode end of LED moved to each pin, one at a time, to see if it blinks then move on to your next pin. The setup function would have to set-up all the pins to output mode and the loop function would contain the blink code to generate a pulsing output to every output pin.

Lefty
Logged

Pages: [1]   Go Up
Jump to: