.1uf in parallel with 10uf on vss. Vdd.pinsDo you have adequate decoupling capacitors?
Yes.Do you have a diode to dissipate back emf?
The program just test program.it sends a message to serial at the beginning of code then 10 s delay . Then it will toggle the output pin when a button pressedDo you have a bug in your program?
Oh, this is happening even when no motor is connected to the relay? Is the reset happening when the relay CLOSES? or OPENS? What relay are you using?