I wrote a program for a driveway gate alarm that runs flawlessly by repeatedly unplugging and plugging the USB cable back in and then activating and deactivating a switch which sounds an alarm and sends an SMS message while the IDE is active on the PC but the program won't work correctly if I close the IDE. I have the same problem using external power instead of USB power.
Has anyone had a similar issue? Does anyone have any suggestions?