Christian
Published © GPL3+

Professional Hydroponics Germination Control

Build a temperature controlled Germination System

IntermediateFull instructions provided2 hours730
Professional Hydroponics Germination Control

Things used in this project

Hardware components

IO Expander
×1
IO Expander Bundle
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Germination Wiring Diagram

Wiring Diagram to Control you Germination Heat Mat

Code

Professional Hydroponics Germination Control

C/C++
Control the temperature of your germination heat mat.
#define HEATER_PAD_ON           "e6o"
#define HEATER_PAD_OFF          "e6f"
 
...
 
const char GERMINATION_SENSOR[] = "t2re0";   // Germination Sensor 1-Wire Junction DS18B20
 
...
 
        // Check for germination sensor
        germination_temp = 0;
        if (SerialCmd(GERMINATION_SENSOR)) {
          if (SerialReadFloat(&germination_temp)) {
            if (heater_pad) {
              if (C2F(germination_temp) > GERMINATION_OFF_TEMP) heater_pad = false;
            }
            else {
              if (C2F(germination_temp) < GERMINATION_ON_TEMP) heater_pad = true;
            }
          }
          else heater_pad = false;
          SerialReadUntilDone();
        }
        else heater_pad = false;
 
...
 
        SerialCmdDone((heater_pad) ? HEATER_PAD_ON : HEATER_PAD_OFF);
 
...
 
            if (germination_temp && clk.tm_min & 1 == 1) {
              Serial.print("sf1;sa0;sd0,30,248,\"F\";sa1;sd70,30,\"");
              Serial.print(C2F(germination_temp),1);
              Serial.print("\"");
            }
 

Credits

Christian
24 projects • 136 followers
Senior Embedded Engineer

Comments