I'm not sure how accurate they are for the Mega, but I used the tutorials here:
http://www.ladyada.net/learn/arduino/