rpiggott

Arduino With 4 Fan Relay - 10 Minute Cycles

May 14th, 2021 (edited)
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup(){
  2. pinMode(1, OUTPUT);
  3. pinMode(2, OUTPUT);
  4. pinMode(3, OUTPUT);
  5. pinMode(4, OUTPUT);
  6. }
  7. void loop(){
  8.  
  9. // Fan 1
  10. digitalWrite(1, HIGH);
  11. delay(600000);
  12. digitalWrite(1, LOW);
  13.  
  14. // 5 Second Pause Before Next Fan Turns on
  15. delay(5000);
  16.  
  17. // Fan 2
  18. digitalWrite(2, HIGH);
  19. delay(600000);
  20. digitalWrite(2, LOW);
  21.  
  22. // 5 Second Pause Before Next Fan Turns on
  23. delay(5000);
  24.  
  25. // Fan 3
  26. digitalWrite(3, HIGH);
  27. delay(600000);
  28. digitalWrite(3, LOW);
  29.  
  30. // 5 Second Pause Before Next Fan Turns on
  31. delay(5000);
  32.  
  33. // Fan 4
  34. digitalWrite(4, HIGH);
  35. delay(600000);
  36. digitalWrite(4, LOW);
  37.  
  38. // 5 Second Pause Before Next Fan Turns on
  39. delay(5000);
  40. }
Add Comment
Please, Sign In to add comment