i may have committed a crime among the arduino veterans, but i powered a 5v, 2 relay board directly from an arduino r3. while no problems originally became evident, the arduino began to reset about once every second. this reset cycle happens at random points during the code. thinking this problem may be due to overdrawing power, i isolated the arduino from the relay switches via external power supply, but the problem persists. my hypothesis is that the relay potentially damaged something on the arduino, or my other components are drawing too much power.
such extra components include: ultrasonic sensor, active buzzer, limit switch running on Vout and checked by analog input. most of which run on the Vout, but rarely do they run simultaneously. very few variables are used in the program. software sketch is attached if neccesary.
is my arduino potentially damaged, or does this sound more like a coding/ noise error? forgive my ignorance, this is my first three months of this hobby.
final_project_software.ino (4.47 KB)