so I'm guessing it should not be a hardware problem.
I don't expect it to be a power supply problem. I expect it to be a code problem. Which you also already suspected:But please post code according to forum rules next time.I suspect the math in the code is just taking to long.PS goto is like the death sin in higher level programming. And I stopped looking at the code after seeing that because it makes code just plain unreadable.