Goes unresponsive intermittently

Post the code and a schematic. That could expose some potential issues.