From cbc20586c4eb9f891d3bd5f56a37bf45ed5b6a8f Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 15 Jun 2024 22:43:46 +0200 Subject: [PATCH] firmware wip - add some notes for watering logic, adjust soilmoisture low value --- Arduino/CanGrow/CanGrow.ino | 12 +++++++++++- Arduino/CanGrow/CanGrow_Init.h | 3 ++- Arduino/CanGrow/CanGrow_Version.h | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index a53da0f..cb55152 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -270,7 +270,17 @@ void loop() { - +/* + * Pump control + * + * Vars: + * - UsePump (bool) + * - PumpOnTime (int) in sec + * - PumpInterval (int) in days + * - SoilmoistureLow (int) in % + * + * + */ diff --git a/Arduino/CanGrow/CanGrow_Init.h b/Arduino/CanGrow/CanGrow_Init.h index 3b142e6..1c04013 100644 --- a/Arduino/CanGrow/CanGrow_Init.h +++ b/Arduino/CanGrow/CanGrow_Init.h @@ -79,10 +79,11 @@ short NtpOffset; // 2: I2C chirp sensor from catnip electronics byte MoistureSensor_Type; // SoilmoistureLow - contains the value , when soil moisture is assumed to be low, -byte SoilmoistureLow = 20; +byte SoilmoistureLow = 75; // UsePump - is the pump used? bool bool UsePump; // UseFan - is the fan used? bool +// PumpOnTime in seconds byte PumpOnTime = 3; bool UseFan; // In case the user uses no 12V LED on the LED output and an relais instead diff --git a/Arduino/CanGrow/CanGrow_Version.h b/Arduino/CanGrow/CanGrow_Version.h index e838b59..e03f9c3 100644 --- a/Arduino/CanGrow/CanGrow_Version.h +++ b/Arduino/CanGrow/CanGrow_Version.h @@ -1,5 +1,5 @@ /* CanGrow_Version.h gets generated from cangrow.sh */ const char* CanGrowVer = "0.1-dev"; -const char* CanGrowBuild = "72bb58c"; +const char* CanGrowBuild = "e524826";