Controlling two ventilators

I want to control two ventilators alternately, for example: ventilator 1 for 60 seconds and then when 1 switches off I want ventilator 2 to switch on and then I want to start the proces again.
Can it be done with a Arduino Uno and a two-relais board such as these:

And what program could I use to feed the Arduino?

I would suggest a code that switches on ventilator 1 for 60 seconds and then when 1 switches off ventilator 2 to switch on and then start the proces again.

1 Like

Link requires a login.

For how long? What are the ventilators' voltage and current requirements?
Which Arduino?

This is a 2-seconds simulation of a 2-minutes relay switching two power lines...
relay

Here is the WOKWI.COM simulator code:

sketch.ino
unsigned long minutes     = 2UL; // two minutes literal Unsigned Long
unsigned long msPerMinute = 60UL * 1000UL; // 60,000 ms per minute
unsigned long switchTime = minutes * msPerMinute;
byte relayPin = 5;

void setup() {
  pinMode(relayPin, OUTPUT);
  digitalWrite(relayPin, LOW); // ensure N.O. remains OPEN
}

void loop() {
  delay(switchTime); // wait
  digitalWrite(relayPin, !digitalRead(relayPin)); // toggle relay
}
diagram.json
{
  "version": 1,
  "author": "Anonymous maker",
  "editor": "wokwi",
  "parts": [
    {
      "type": "wokwi-arduino-nano",
      "id": "nano",
      "top": -14.2,
      "left": -207.9,
      "rotate": 180,
      "attrs": {}
    },
    { "type": "wokwi-relay-module", "id": "relay1", "top": -9.4, "left": -9.6, "attrs": {} },
    {
      "type": "wokwi-led-bar-graph",
      "id": "bargraph1",
      "top": -81.6,
      "left": 52.8,
      "rotate": 270,
      "attrs": { "color": "white" }
    },
    {
      "type": "wokwi-led-bar-graph",
      "id": "bargraph2",
      "top": 24,
      "left": 52.8,
      "rotate": 90,
      "attrs": { "color": "white" }
    },
    { "type": "wokwi-vcc", "id": "vcc1", "top": -85.64, "left": 134.4, "attrs": {} },
    { "type": "wokwi-gnd", "id": "gnd1", "top": 96, "left": 124.2, "attrs": {} }
  ],
  "connections": [
    [ "relay1:VCC", "nano:5V", "red", [ "h-9.6", "v-28.8", "h-126.8" ] ],
    [ "relay1:GND", "nano:GND.1", "black", [ "h-19.2", "v-48.4", "h-144" ] ],
    [ "relay1:IN", "nano:5", "gold", [ "v28.6", "h-115.2" ] ],
    [ "bargraph1:C10", "bargraph1:C9", "green", [ "h0" ] ],
    [ "bargraph1:C9", "bargraph1:C8", "green", [ "h0" ] ],
    [ "bargraph1:C8", "bargraph1:C7", "green", [ "h0" ] ],
    [ "bargraph1:C7", "bargraph1:C6", "green", [ "h0" ] ],
    [ "bargraph1:C6", "bargraph1:C5", "green", [ "h0" ] ],
    [ "bargraph1:C5", "bargraph1:C4", "green", [ "h0" ] ],
    [ "bargraph1:C4", "bargraph1:C3", "green", [ "h0" ] ],
    [ "bargraph1:C3", "bargraph1:C2", "green", [ "h0" ] ],
    [ "bargraph1:C2", "bargraph1:C1", "green", [ "h0" ] ],
    [ "bargraph1:A1", "bargraph1:A2", "green", [ "h0" ] ],
    [ "bargraph1:A2", "bargraph1:A3", "green", [ "h0" ] ],
    [ "bargraph1:A3", "bargraph1:A4", "green", [ "h0" ] ],
    [ "bargraph1:A4", "bargraph1:A5", "green", [ "h0" ] ],
    [ "bargraph1:A5", "bargraph1:A6", "green", [ "h0" ] ],
    [ "bargraph1:A6", "bargraph1:A7", "green", [ "h0" ] ],
    [ "bargraph1:A7", "bargraph1:A8", "green", [ "h0" ] ],
    [ "bargraph1:A9", "bargraph1:A8", "green", [ "h0" ] ],
    [ "bargraph1:A9", "bargraph1:A10", "green", [ "h0" ] ],
    [ "bargraph1:A10", "relay1:NC", "orange", [ "h9.79", "v29", "h-20.4" ] ],
    [ "bargraph2:C10", "bargraph2:C9", "green", [ "h0" ] ],
    [ "bargraph2:C9", "bargraph2:C8", "green", [ "h0" ] ],
    [ "bargraph2:C8", "bargraph2:C7", "green", [ "h0" ] ],
    [ "bargraph2:C7", "bargraph2:C6", "green", [ "h0" ] ],
    [ "bargraph2:C6", "bargraph2:C5", "green", [ "h0" ] ],
    [ "bargraph2:C5", "bargraph2:C4", "green", [ "h0" ] ],
    [ "bargraph2:C4", "bargraph2:C3", "green", [ "h0" ] ],
    [ "bargraph2:C3", "bargraph2:C2", "green", [ "h0" ] ],
    [ "bargraph2:C2", "bargraph2:C1", "green", [ "h0" ] ],
    [ "bargraph2:A1", "bargraph2:A2", "green", [ "h0" ] ],
    [ "bargraph2:A2", "bargraph2:A3", "green", [ "h0" ] ],
    [ "bargraph2:A3", "bargraph2:A4", "green", [ "h0" ] ],
    [ "bargraph2:A4", "bargraph2:A5", "green", [ "h0" ] ],
    [ "bargraph2:A5", "bargraph2:A6", "green", [ "h0" ] ],
    [ "bargraph2:A6", "bargraph2:A7", "green", [ "h0" ] ],
    [ "bargraph2:A7", "bargraph2:A8", "green", [ "h0" ] ],
    [ "bargraph2:A9", "bargraph2:A8", "green", [ "h0" ] ],
    [ "bargraph2:A9", "bargraph2:A10", "green", [ "h0" ] ],
    [ "relay1:NO", "bargraph2:A1", "orange", [ "h20.4", "v27.2" ] ],
    [ "vcc1:VCC", "relay1:COM", "red", [ "v0" ] ],
    [ "gnd1:GND", "bargraph2:C10", "black", [ "v0" ] ],
    [ "bargraph2:C1", "bargraph1:C10", "black", [ "h19.4", "v-134.36" ] ]
  ],
  "dependencies": {}
}

No code: This relay has a 555 timer and 0.1s to 2min timeout. Connect one to each ventilator.

https://www.amazon.com/gp/aw/d/B07XT84CNX/

This will put a strain on the ventilator motors, are they rated for this duty cycle. Also the mechanical section may limit duty cycling, you need to check into this or you could be purchasing some expensive parts.

On Conrad.NL, "ventilator" brings up "D.C. axial (P.C. box) fans"... and about a million trackers and popups.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.