Hotend PID tuning method?

Marlin has a autotune routine, this worked pretty fine on my original.