Go Down

Topic: test mega (Read 337 times) previous topic - next topic

good vibs

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.

retrolefty

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy