In my smart guitar project, I'm having some power problems with my T4, audio shield, and 0.96'' ST7735. Everything works fine when I supply power through USB, but if I supply power through a 9v battery and a 5v buck converter, the screen goes black and the audio plays a loud and constant tone. This issue seems to take the longest to occur for the first time after an upload. After that, it happens almost immediately after powering on. Sometimes I can't even get the re-upload to work so I have to reach inside the pickguard with a stick to press the button.
I suspect this happens because the peak current of the 9v battery is not enough for all three parts. I guess this makes sense because the issue started to occur once I implemented a delay and allocated a much larger memory. It also happens a lot quicker with longer delay times.
Some ways I thought would fix the problem are using two 9v batteries in parallel or four AA cells in series with a 3.3v buck converter. What are your thoughts? Or is it possible that I was completely wrong about the issue in the first place?
I suspect this happens because the peak current of the 9v battery is not enough for all three parts. I guess this makes sense because the issue started to occur once I implemented a delay and allocated a much larger memory. It also happens a lot quicker with longer delay times.
Some ways I thought would fix the problem are using two 9v batteries in parallel or four AA cells in series with a 3.3v buck converter. What are your thoughts? Or is it possible that I was completely wrong about the issue in the first place?