Electromagnetic nail on a battery