Arduino only works when connected to USB

I've reproduced the circuit on a breadboard and it works. Maybe I wired something wrong or short circuited somewhere?