Most likely alternator. Had the EXACT problem on my miata. I checked all the grounds and what not, finally decided to remove the alternator and bring it in to have it checked at AutoZone. The diodes were bad. It was even putting out 14v so it was something that couldn't be diagnosed with the alternator in the vehicle. Switched it out with a reman and all was good.