bad connection between ramps and mega?, or bad mega..
I would remove the ramps and inspect (with magnifying glass) all the solder joints on the X pololu socket and the board interconnects (where it plugs into the mega) Any that look dodgy touch up. also look for solder bridges that shouldn't be there.
It could also be that the boards just aren't presses together hard enough
Edited 1 time(s). Last edit at 12/20/2015 09:37PM by Dust.