Ok, it’s a good time to start learning!
A schematic is an important part of your skill set - just like soldering will be.
Avoid lines that cross at angles, and try to have the flow of process from left to right.
As jremington said, it sounds like your problem is power supply - BUT, it could still be something in your code.
Good idea to read the posting guidelines, and get your code up here within </> code tags.