UNO won't stay connected to Com3 for long

at a first guess it sounds like your drawing too much current from the chip and its resetting