Christian
Published © GPL3+

Professional Hydroponics Water/Nutrient Control

Automatically add Water and Nutrients to your Hydroponics Growbed.

IntermediateFull instructions provided4 hours1,090

Things used in this project

Hardware components

IO Expander
×1
Relay Expander
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Hydroponics Water/Nutrient Control

Automatically add Water and Nutrient to your Growbed.

Code

Professional Hydroponics Water/Nutrient Control

C/C++
Automatically add Water and Nutrient to your Growbed.
          // Check dosing pumps.  Allow for a one minute mixing cycle between nutrient pumps.
          if (!grow_bed->active || grow_bed->water_level || grow_bed->nutrient_pump) {
            grow_bed->water_pump = false;
            grow_bed->nutrient_pump = false;
          }
          else {
            bool nutrient_pump = (grow_bed->water_tds < grow_bed->nutrient_level) ? true : false;
            grow_bed->water_pump = !nutrient_pump;
            grow_bed->nutrient_pump = nutrient_pump;
          }
          sprintf(cmd, "e%d%c;e%d%c", grow_bed->water_relay, (grow_bed->water_pump) ? 'o' : 'f', grow_bed->nutrient_relay, (grow_bed->nutrient_pump) ? 'o' : 'f');
          SerialCmdDone(cmd);
          if (grow_bed->water_pump) AddPower(DOSING_PUMP_POWER);
          if (grow_bed->nutrient_pump) AddPower(DOSING_PUMP_POWER);
 

Credits

Christian
24 projects • 135 followers
Senior Embedded Engineer
Contact

Comments

Please log in or sign up to comment.