<div>void setup() { </div><div> pinMode(2, OUTPUT);// connected to Relay 1 </div><div> pinMode(4, OUTPUT);// connected to Relay 2 </div><div> pinMode(7, OUTPUT);// connected to Relay 3 </div><div> pinMode(8, OUTPUT);// connecteed to relay 4 </div><div>} void loop(){ digitalWrite(2, LOW); digitalWrite(4, LOW);</div><div> digitalWrite(7, LOW);</div><div> digitalWrite(8, LOW); delay(1000); digitalWrite(2, HIGH); digitalWrite(4, HIGH); digitalWrite(7, HIGH); digitalWrite(8, HIGH); <span> delay(1000); </span> } </div>
generally if you also have a noisy power supply an easy solution is to start throwing ferrite beads at unshielded cables, not an elegant solution by any means but generally an easy quick fix in most cases
Submit photos and a description of your PC to our build showcase
See other custom PC builds and get some ideas for what can be done
Services starting at $149.99