Arduino Sketch Not Running While Battery Powered

Hello,

I’m actually not sure what is going on, but it seems like the uploaded Arduino sketch doesn’t run because the power LED on the Seed board is lit and my color sensor LED is getting power.

When I power the Seed board from my computer, it runs and I can hear sound. Everything works and sounds as expected.

When I unplug the USB cord from my computer and plug it into a power bank or a wall adapter, the board gets power but I don’t hear anything.

This is a project in the making so the code is a bit of a mess along with not having the proper attributes yet (I modded a Synthux sketch that is amazing!). You can find the code here.

Thanks in advance for your help!

This is just a guess, as I didn’t test it… but maybe it’s getting stuck here?

while (!Serial);

EDIT: verified. The program is waiting for the USB serial port to be connected.