I'm using this circuit to replace the thermostat in a small mini fridge. In the fridge, I took the white and black wires, attached them to the NO and COM ends of the relay, and have the Arduino open the relay based on temperature through pin 7.
I should mention that there is a green ground wire that I have not grounded within the fridge.
Should I ground this wire to the side of the fridge? Should it be attached to the NC port of the relay?
Eventually, the relay no longer opens. I can tell by the sound and by the fact that thr fridge never makes noise, as it does when I replace the relay. The red LED on the relay still shines, indicating that it should be open. I have replaced the relay twice and both stopped working at some point, and today I was able to fix it again with a new relay.
The schematic below shows how I have everything wired to the Arduino, and there is also a schematic on the back of the fridge that I have added
Note that the thermostat is no longer there, and was previously attached to the black and white wire, and the green one was grounded off to the side. I have added a picture of another mini fridge I have, which has the same setup with a blue wire instead of a white wire.
I (clearly) don't have a great base of knowledge on circuitry, so perhaps I need to add a component somewhere? Would the ground wire play into why the relays quit opening?