Arduino randomly resetting itself during operation

spycatcher2k:
Try a 1000uF capacitor across the 5V and GND on the arduino.

Will try on Monday. Thanks!