Sounds like you may be correct, bad ground or battery connection. Also check the tightness of the alternator wire. You may be out there a while checking all the connections, there are quite a few to double check.