I am using the ATmega328 to run an induction heater. When I am at resonance there can be a lot of high frequency noise on the circuit. It seems the chip gets shut down, and the only way to get it to go again is to reupload my program.
I am using the pwm pin 15 (digital 9). I have LEDs going straight to ground from pins 2 and 4 (digital 0 and 2). I have an input at pin 28 and 23 (analog 5 and 0).
Should I have all input that are not being used grounded? Do I need a resistor from the LEDs to ground? Any other suggestions?