Arduino resetting itself on USB

I’ve been working on an Arduino project and found that the board would reset itself after being connected by USB after 30 seconds.

Using a 12v battery was fine and it didn’t reboot.

It turns out that if the Arduino receives serial data on the USB it thinks it is a new compiled sketch and goes through its bootloader procedure.

The culprit in my case was Sony Ericsson software trying to identify if the USB device was a mobile phone. Disabling this cured the problem. The moral of the story is don’t run any software which uses the USB whilst you are doing Arduino development. You can disable the reset function after you’ve finished developing if you want.

Published by Robin Elvin

Coder, web architect, sysadmin and collector of old computers. Grew up writing 6502 and 68000 assembly. Loves Linux and Open Source. Codes mostly in Python and C# but does C/C , Perl, PHP and lots of other stuff.

9 thoughts on “Arduino resetting itself on USB

  1. Yes, after exiting Sony Ericsson Companion software, the Arduino doesn’t reset itself anymore.
    I was running a simple program, no Serial.print();

    Thanks a lot!

Leave a comment