[Solved]PWM voltage output is only 0.5v

If you post your code I'll run it on my Uno (I don't have a Mega) and 'scope it for you....