I was having the same issue; all fine when connected to USB and battery charging, seemingly dead device once USB disconnected.
Turned out to be a software issue. I was waiting for the serial connection, which without USB would never come.
Remove while (!Serial) ;
Calling Serial.whatever()
is fine in my case.
HTH someone