Arduino Nano resets every 30 seconds

If you just want to light a LED, you don't need a microcontroller.
How are you powering this device?