Can EMI just from being near a powerful motor cause even WDT to fail.
Program got stuck don't know why, suspecting EMI from motor that is within 3 inches from the microcontroller (bare atmega328p with 220uF elec cap + 100uf cer cap right near VCC and GND.
Can there be enough EMI to stop program. AND I had WDT set up just for that purpose.. can EMI even stop WDT reset?
Also using an oscilloscope I found that TVS diodes do not have a fast enough reaction time for induced EMI ups and downs (not in line just nearby EMI ex. MOTOR)
I found that ceramic caps as close to the IC as possible do the best job for this purpose. Is this correct? Any suggestions?
Code is too long to post and it has been stable till now. Let's start with the above.