Page 1 of 1

Small fans (oscillating or not) for inside grow tent

Posted: Mon May 17, 2021 1:57 pm
by Supercazzola
I’ve been looking for some small, inexpensive fans to stick in the grow tent and move around air inside. Just curious if anyone has some they can recommend?

Re: Small fans (oscillating or not) for inside grow tent

Posted: Mon May 17, 2021 2:21 pm
by murrkywaters
I just ordered one for $15. I'll let you know when it comes in how well it works

Sent from my SM-G975U using Tapatalk


Re: Small fans (oscillating or not) for inside grow tent

Posted: Mon May 17, 2021 2:31 pm
by Supercazzola
worst case, I could just get a bunch of 12 volt computer fans and hook them up to some relays and program an arduino to randomize them. but that seems like too much work.

Re: Small fans (oscillating or not) for inside grow tent

Posted: Mon May 17, 2021 2:40 pm
by murrkywaters
I know vivosun makes one to clip on to their tent, and my client uses secret jardin. There are certainly options

Sent from my SM-G975U using Tapatalk


Re: Small fans (oscillating or not) for inside grow tent

Posted: Mon May 17, 2021 9:23 pm
by WONE
I guess it depends on how stuffed the tent is and what kind of circulation you're after, but I've been using a mini tower fan: "Lasko's Platinum Desktop Wind Tower." I have it stuck in the corner of a 4x4, and probably should have gotten another, but now that my tomatoes and peppers are out that purchase is on hold. Downside is that I have to turn it back on every time power is cut.

I also have a Lasko 6 inch clip fan running 24/7 full blast in the basement since December for my sphagnum. Only only negative so far is that it does not oscillate.

Re: Small fans (oscillating or not) for inside grow tent

Posted: Sun May 23, 2021 12:34 am
by Supercazzola
I decided to take an arduino and a 4 relay board and program it so that it would randomly turn on and off up to four 12 v computer fans. Hooked the first two up. I’ll eventually design and 3d print an enclosed case, but for now it works good enough. If anyone is interested, I can post the code I wrote for the arduino uno.
F8C024CE-3D48-4E88-A7A3-948D86410DE3.jpeg
F8C024CE-3D48-4E88-A7A3-948D86410DE3.jpeg (3.92 MiB) Viewed 6880 times
E83729CC-E065-41F4-8135-DEEA728F3DB5.jpeg
E83729CC-E065-41F4-8135-DEEA728F3DB5.jpeg (4.39 MiB) Viewed 6880 times
62E94C31-5408-448F-9B65-9BF6D65BF3F3.jpeg
62E94C31-5408-448F-9B65-9BF6D65BF3F3.jpeg (3.56 MiB) Viewed 6880 times

Re: Small fans (oscillating or not) for inside grow tent

Posted: Tue May 25, 2021 5:39 pm
by Supercazzola
This post is more of a sticky for how I did it, including the code, so that if others want to duplicate, contribute to it, you can feel free to.

First off, here is the sketch for the arduino. I used an Arduino Uno R3.
Code: Select all
//--------------------------------------//
//                                      //
//     Randomly turn on and off         //
//     four relays to control fans      //
//     to simulate wind in grow tent    //
//                                      //
//               05/22/21               //
//               rev 001                //
//               supercazzola           //
//                                      //
//--------------------------------------//


// global scope variables

const long DELAY_MAX = 300000;                                                      // manimum delay in ms (5 mins)
const long DELAY_MIN = 10000;                                                       // minimum delay in ms (10 secs)
const int NUMBER_OF_FANS = 4;                                                       // number of fans (relays)
const int FAN_PINS[NUMBER_OF_FANS] = {8, 9, 10, 11};                                // arduino pin numbers used for relays

unsigned long timer[NUMBER_OF_FANS] = {20000, 20000, 20000, 20000};                 // array to hold timers for each fan
unsigned long lastFanStateChange[NUMBER_OF_FANS] = {0, 0, 0, 0};                    // array to hold when in millis the fan last changed state

int fan_state[NUMBER_OF_FANS] = {LOW, LOW, LOW, LOW};                               // LOW or HIGH state of the relays


//-----------------------------------//

void setup()
{
  randomSeed(analogRead(0));                          // seed the random number generator
  Serial.begin(9600);                                 // serial port 9600 baud

  for (int i = 0; i < NUMBER_OF_FANS; i++)
  {
    pinMode(FAN_PINS[i], OUTPUT);                     // set each pin to OUTPUT type
    digitalWrite(FAN_PINS[i], fan_state[i]);          // read desired state for each fan servo from global array
  }
}


//-----------------------------------//

void loop()
{
  unsigned long now = millis();                                       // time now at start of loop since start of program in ms

  for (int i = 0; i < NUMBER_OF_FANS; i++)
  {
    if ((now - lastFanStateChange[i]) >= timer[i])
    {
      unsigned long randomValue = random(DELAY_MIN, DELAY_MAX + 1);   // variable to store the random number
      fan_state[i] = !fan_state[i];                                   // toggle the state of the fan relay
      digitalWrite(FAN_PINS[i], fan_state[i]);                        // set pin to correct state
      timer[i] =  randomValue;                                        // set fan relay's timer to new random number
      lastFanStateChange[i] = now;                                    // update when the fan relay's state was last changed to now
    }
  }
}

The components you will need include:
In my case, I hooked up to pins 8,9,10,and 11. Let me know if it doesn't make sense or if you need help with the hookup.

As an aside, I decided to 3d print some cases. I didn't design these. They were on thingiverse. They are:
IMG_1499.jpg
IMG_1499.jpg (8.82 MiB) Viewed 6771 times

Re: Small fans (oscillating or not) for inside grow tent

Posted: Tue May 25, 2021 6:54 pm
by MaxVft
Oh nice!What a coincidence,I have a 3d printer and love coding and 3d modeling as a side hobby!