I used an Arduino Nano clone and uploaded fogduino to it last year for Halloween to control a fog machine, but had issues running it due to it resetting randomly.
The goal is to create nearly continuous fog as this allows the fogger to heat while also pumping fog -- something they do not do typically. The basics are the nano will average 10 readings from a Max6675 Module + K Type thermocouple and if in the right temp range, it will control the relays that pass 120v power to the heater and/or 120v to the liquid pump. Info on temps are displayed on an OLED screen and I'm powering the Nano from a 5v 700mA power supply. I reused 3 old momentary buttons for selecting modes/settings.
How do I troubleshoot why the unit restarts--aside from just start replacing components? Is there something obvious based on the components that I should not have used? I do know that this behavior continued after replacing the nano.
I'm a hack -- I don't have a diagram and barely know what I'm doing. This was soldered onto proto board based on a forum post and reading the code to confirm the pinouts. There is no filtering unless in was built into the components purchased (which I doubt, as I bought the cheapest possible things)
I don't have the unit beside me -- I'll try to take and annotate some pictures of the connections tomorrow. I believe the power supply is connected to the 120v coming into the fogger (same power later being switched by the relays) and I believe the 5v is directly connected to the nano Vin.
Here's a rough sketch of the system. Not sure if it'll help -- If anything is totally weird, I've probably just screwed up the diagram as the system functions for a while before the nano glitches and reboots