Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
Settings Struct Reference

#include <Settings.h>

Collaboration diagram for Settings:

Data Structures

struct  ACMotorModuleSettings
 < AeroModule default settings More...
 
struct  AeroModuleSettings
 < AeroModule default settings More...
 
struct  AeroponicsModuleSettings
 
struct  AeroponicsSettings
 < Aeroponics_Tank default settings More...
 
struct  AirPumpSettings
 < AirPump default settings More...
 
struct  DHTSensorSettings
 < DHTSensor default settings More...
 
struct  FanSettings
 < Fan default settings More...
 
struct  HempyBucketSettings
 < HempyBucket default settings More...
 
struct  HempyModuleSettings
 < Hempy default settings More...
 
struct  LightSensorSettings
 < LightSensor default settings More...
 
struct  LightsSettings
 < Lights default settings More...
 
struct  MainModuleSettings
 < MainModule default settings More...
 
struct  PHSensorSettings
 < PHSensor default settings More...
 
struct  PressurePumpSettings
 < PressurePump default settings More...
 
struct  PressureSensorSettings
 < PressureSensor default settings More...
 
struct  ReservoirModuleSettings
 < ReservoirModule default settings More...
 
struct  SoundSettings
 < Sound default settings More...
 
struct  TDSSensorSettings
 < PHSensor default settings More...
 
struct  WaterPumpSettings
 < WaterPump default settings More...
 
struct  WaterTempSensorSettings
 < WaterTempSensor default settings More...
 
struct  WeightSensorSettings
 < WeightSensor default settings More...
 

Data Fields

bool Debug = true
 Logs debug messages to serial and web outputs.
 
bool Metric = true
 Switch between Imperial/Metric units. If changed update the default temp and pressure values below too.
 
struct AeroModuleSettings AeroModule1 = {.PressureTankPresent = false, .Duration = 3.0, .DayInterval = 6, .NightInterval = 10, .PumpSpeed = 100, .PumpTimeOut = 420, .PrimingTime = 10, .MaxPressure = 7.0, .MinPressure = 5.0}
 
struct ACMotorModuleSettings ACMotor1 = {.Speed = 50}
 
struct AirPumpSettings Ap1 = {.Pin = 23, .State = true}
 
struct DHTSensorSettings DHT1 = {.Pin = 3, .Type = 22}
 
struct FanSettings FanI = {.OnOffPin = 25, .SpeedPin = 26, .State = true, .HighSpeed = true}
 
struct FanSettings FanE = {.OnOffPin = 27, .SpeedPin = 28, .State = true, .HighSpeed = true}
 
struct MainModuleSettings Main1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSON = true, .SerialReportJSONFriendly = true, .SerialReportWireless = true, .ReportToGoogleSheets = false, .SheetsReportingFrequency = 30, .ReportToMqtt = true, .MQTTReportFrequency = 5}
 
struct HempyModuleSettings HempyModule1 = {.StartWeight_B1 = 16, .WateringIncrement_B1 = 0.3, .EvaporationTarget_B1 = 2.0, .DrainTargetWeight_B1 = 0.1, .MaxWeight_B1 = 20, .PumpSpeed_B1 = 35, .PumpTimeOut_B1 = 60, .DrainWaitTime_B1 = 300, .StartWeight_B2 = 16, .WateringIncrement_B2 = 0.3, .EvaporationTarget_B2 = 2.0, .DrainTargetWeight_B2 = 0.1, .MaxWeight_B2 = 20.0, .PumpSpeed_B2 = 35, .PumpTimeOut_B2 = 60, .DrainWaitTime_B2 = 300}
 
struct LightSensorSettings Ls1 = {.DigitalPin = 4, .AnalogPin = A0}
 
struct LightsSettings Lt1 = {.Status = false, .RelayPin = 29, .DimmingPin = 11, .DimmingLimit = 16, .DimmingDuration = 10, .Brightness = 75, .TimerEnabled = true, .OnHour = 4, .OnMinute = 20, .OffHour = 16, .OffMinute = 20, .FadingEnabled = false, .FadingInterval = 1, .FadingIncrements = 1}
 Creating a LightSettings instance, passing in the unique parameters.
 
struct LightsSettings Lt2 = {.Status = false, .RelayPin = 24, .DimmingPin = 12, .DimmingLimit = 6, .DimmingDuration = 10, .Brightness = 55, .TimerEnabled = false, .OnHour = 4, .OnMinute = 20, .OffHour = 16, .OffMinute = 20, .FadingEnabled = false, .FadingInterval = 1, .FadingIncrements = 1}
 Creating a LightSettings instance, passing in the unique parameters.
 
struct ReservoirModuleSettings ReservoirMod1 = {}
 
struct SoundSettings Sound1 = {.Pin = 2, .Enabled = true}
 
uint8_t CompatibilityVersion = Version
 Should always be the last value stored.
 
struct HempyModuleSettings Hemp1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSONFriendly = true, .SerialReportJSON = true, .SerialReportWireless = true}
 
struct HempyBucketSettings Bucket1 = {.EvaporationTarget = 2.0, .MaxWeight = 20.0, .StartWeight = 18.0, .WateringIncrement = 0.3, .DrainTargetWeight = 0.1, .DrainWaitTime = 180}
 
struct HempyBucketSettings Bucket2 = {.EvaporationTarget = 2.0, .MaxWeight = 20.0, .StartWeight = 18.0, .WateringIncrement = 0.3, .DrainTargetWeight = 0.1, .DrainWaitTime = 180}
 
struct WaterPumpSettings HempyPump1 = {.PumpPin = 3, .PumpPinNegativeLogic = false, .PumpEnabled = true, .PumpTimeOut = 120, .Speed = 100, .SpeedLimitLow = 30, .SpeedLimitHigh = 100}
 
struct WaterPumpSettings HempyPump2 = {.PumpPin = 5, .PumpPinNegativeLogic = false, .PumpEnabled = true, .PumpTimeOut = 120, .Speed = 100, .SpeedLimitLow = 30, .SpeedLimitHigh = 100}
 
struct WeightSensorSettings WeightB1 = {.DTPin = 4, .SCKPin = 6, .Offset = -176962, .Scale = -22654.00}
 Bucket 1 Weight Sensor - Generate the calibration values using: https://github.com/growboxguy/Gbox420/blob/master/Test_Sketches/Test-WeightSensor_HempyBucketPlatforms/Test-WeightSensor_HempyBucketPlatforms.ino.
 
struct WeightSensorSettings WeightB2 = {.DTPin = 7, .SCKPin = 8, .Offset = 377473, .Scale = -21506.86}
 Bucket 2 Weight Sensor - Generate the calibration values using: https://github.com/growboxguy/Gbox420/blob/master/Test_Sketches/Test-WeightSensor_HempyBucketPlatforms/Test-WeightSensor_HempyBucketPlatforms.ino.
 
struct AeroponicsModuleSettings Aero1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSONFriendly = true, .SerialReportJSON = true, .SerialReportWireless = true}
 
struct AeroponicsSettings AeroT1 = {.SpraySolenoidPin = 5, .SpraySolenoidNegativeLogic = true, .SpraySolenoidClosingDelay = 600, .TankDrainingTimeout = 180, .SprayEnabled = true, .Duration = 1.0, .DayInterval = 6, .NightInterval = 10, .MinPressure = 5.0, .MaxPressure = 7.0}
 
struct PressureSensorSettings Pres1 = {.Pin = A7, .Offset = 0.57, .Ratio = 2.7}
 
struct PressurePumpSettings AeroPump1 = {.PumpPin = 3, .PumpPinNegativeLogic = false, .BypassSolenoidPin = 4, .BypassSolenoidNegativeLogic = true, .BypassSolenoidMaxOpenTime = 180, .BypassSolenoidClosingDelay = 600, .PumpEnabled = true, .Speed = 70, .SpeedLimitLow = 30, .SpeedLimitHigh = 100, .PumpTimeOut = 420, .PrimingTime = 10, .BlowOffTime = 3}
 
struct WeightSensorSettings Weight1 = {.DTPin = A0, .SCKPin = A1, .Offset = -288069, .Scale = -22280.70}
 Waste Reservoir 1 Weight Sensor - Generate the calibration values using: https://github.com/growboxguy/Gbox420/tree/master/Test_Sketches/Test-WeightSensor_Aero.
 
struct AeroponicsSettings AeroNT1 = {.SprayEnabled = true, .Duration = 3.0, .DayInterval = 6, .NightInterval = 10, .MaxPressure = 7.0}
 
struct ReservoirModuleSettings Res1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSONFriendly = true, .SerialReportJSON = true, .SerialReportWireless = true}
 
struct PHSensorSettings PHSen1 = {.Pin = A0, .Slope = -0.031199, .Intercept = 22.557617}
 Update this to your own PH meter calibration values: https://sites.google.com/site/growboxguy/arduino/reservoir-module?authuser=0#h.p_PGMrIJ9iRr0c.
 
struct TDSSensorSettings TDS1 = {.Pin = A1, .PowerPin = A2}
 
struct WaterTempSensorSettings WTemp1 = {.Pin = 4}
 Data(yellow) - DS18B20 waterproof temp sensor.
 
struct WeightSensorSettings WeightWR = {.DTPin = A3, .SCKPin = A4, .Offset = 260682, .Scale = -22084.60}
 Waste Reservoir Weight Sensor - Generate the calibration values using: https://github.com/growboxguy/Gbox420/blob/master/Test_Sketches/Test-WeightSensor_HempyWastePlatforms/Test-WeightSensor_HempyWastePlatforms.ino.
 

Detailed Description

< SAVED TO EEPROM - Settings struct If you change things here, increase the Version variable in line 12

Definition at line 58 of file Settings.h.

Field Documentation

◆ ACMotor1

struct ACMotorModuleSettings Settings::ACMotor1 = {.Speed = 50}

Definition at line 82 of file Settings.h.

◆ Aero1

struct AeroponicsModuleSettings Settings::Aero1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSONFriendly = true, .SerialReportJSON = true, .SerialReportWireless = true}

Definition at line 54 of file Settings.h.

◆ AeroModule1

struct AeroModuleSettings Settings::AeroModule1 = {.PressureTankPresent = false, .Duration = 3.0, .DayInterval = 6, .NightInterval = 10, .PumpSpeed = 100, .PumpTimeOut = 420, .PrimingTime = 10, .MaxPressure = 7.0, .MinPressure = 5.0}

Definition at line 76 of file Settings.h.

◆ AeroNT1

struct AeroponicsSettings Settings::AeroNT1 = {.SprayEnabled = true, .Duration = 3.0, .DayInterval = 6, .NightInterval = 10, .MaxPressure = 7.0}

Definition at line 63 of file Settings.h.

◆ AeroPump1

struct PressurePumpSettings Settings::AeroPump1 = {.PumpPin = 3, .PumpPinNegativeLogic = false, .BypassSolenoidPin = 4, .BypassSolenoidNegativeLogic = true, .BypassSolenoidMaxOpenTime = 180, .BypassSolenoidClosingDelay = 600, .PumpEnabled = true, .Speed = 70, .SpeedLimitLow = 30, .SpeedLimitHigh = 100, .PumpTimeOut = 420, .PrimingTime = 10, .BlowOffTime = 3}

Definition at line 103 of file Settings.h.

◆ AeroT1

struct AeroponicsSettings Settings::AeroT1 = {.SpraySolenoidPin = 5, .SpraySolenoidNegativeLogic = true, .SpraySolenoidClosingDelay = 600, .TankDrainingTimeout = 180, .SprayEnabled = true, .Duration = 1.0, .DayInterval = 6, .NightInterval = 10, .MinPressure = 5.0, .MaxPressure = 7.0}

Definition at line 70 of file Settings.h.

◆ Ap1

struct AirPumpSettings Settings::Ap1 = {.Pin = 23, .State = true}

Definition at line 89 of file Settings.h.

◆ Bucket1

struct HempyBucketSettings Settings::Bucket1 = {.EvaporationTarget = 2.0, .MaxWeight = 20.0, .StartWeight = 18.0, .WateringIncrement = 0.3, .DrainTargetWeight = 0.1, .DrainWaitTime = 180}

Definition at line 63 of file Settings.h.

◆ Bucket2

struct HempyBucketSettings Settings::Bucket2 = {.EvaporationTarget = 2.0, .MaxWeight = 20.0, .StartWeight = 18.0, .WateringIncrement = 0.3, .DrainTargetWeight = 0.1, .DrainWaitTime = 180}

Definition at line 64 of file Settings.h.

◆ CompatibilityVersion

uint8_t Settings::CompatibilityVersion = Version

Should always be the last value stored.

Version should always be the last value stored in the struct.

Definition at line 197 of file Settings.h.

◆ Debug

bool Settings::Debug = true

Logs debug messages to serial and web outputs.

Definition at line 60 of file Settings.h.

◆ DHT1

struct DHTSensorSettings Settings::DHT1 = {.Pin = 3, .Type = 22}

Definition at line 96 of file Settings.h.

◆ FanE

struct FanSettings Settings::FanE = {.OnOffPin = 27, .SpeedPin = 28, .State = true, .HighSpeed = true}

Definition at line 106 of file Settings.h.

◆ FanI

struct FanSettings Settings::FanI = {.OnOffPin = 25, .SpeedPin = 26, .State = true, .HighSpeed = true}

Definition at line 105 of file Settings.h.

◆ Hemp1

struct HempyModuleSettings Settings::Hemp1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSONFriendly = true, .SerialReportJSON = true, .SerialReportWireless = true}

Definition at line 52 of file Settings.h.

◆ HempyModule1

struct HempyModuleSettings Settings::HempyModule1 = {.StartWeight_B1 = 16, .WateringIncrement_B1 = 0.3, .EvaporationTarget_B1 = 2.0, .DrainTargetWeight_B1 = 0.1, .MaxWeight_B1 = 20, .PumpSpeed_B1 = 35, .PumpTimeOut_B1 = 60, .DrainWaitTime_B1 = 300, .StartWeight_B2 = 16, .WateringIncrement_B2 = 0.3, .EvaporationTarget_B2 = 2.0, .DrainTargetWeight_B2 = 0.1, .MaxWeight_B2 = 20.0, .PumpSpeed_B2 = 35, .PumpTimeOut_B2 = 60, .DrainWaitTime_B2 = 300}

Definition at line 155 of file Settings.h.

◆ HempyPump1

struct WaterPumpSettings Settings::HempyPump1 = {.PumpPin = 3, .PumpPinNegativeLogic = false, .PumpEnabled = true, .PumpTimeOut = 120, .Speed = 100, .SpeedLimitLow = 30, .SpeedLimitHigh = 100}

Definition at line 83 of file Settings.h.

◆ HempyPump2

struct WaterPumpSettings Settings::HempyPump2 = {.PumpPin = 5, .PumpPinNegativeLogic = false, .PumpEnabled = true, .PumpTimeOut = 120, .Speed = 100, .SpeedLimitLow = 30, .SpeedLimitHigh = 100}

Definition at line 84 of file Settings.h.

◆ Ls1

struct LightSensorSettings Settings::Ls1 = {.DigitalPin = 4, .AnalogPin = A0}

Definition at line 162 of file Settings.h.

◆ Lt1

struct LightsSettings Settings::Lt1 = {.Status = false, .RelayPin = 29, .DimmingPin = 11, .DimmingLimit = 16, .DimmingDuration = 10, .Brightness = 75, .TimerEnabled = true, .OnHour = 4, .OnMinute = 20, .OffHour = 16, .OffMinute = 20, .FadingEnabled = false, .FadingInterval = 1, .FadingIncrements = 1}

Creating a LightSettings instance, passing in the unique parameters.

Definition at line 181 of file Settings.h.

◆ Lt2

struct LightsSettings Settings::Lt2 = {.Status = false, .RelayPin = 24, .DimmingPin = 12, .DimmingLimit = 6, .DimmingDuration = 10, .Brightness = 55, .TimerEnabled = false, .OnHour = 4, .OnMinute = 20, .OffHour = 16, .OffMinute = 20, .FadingEnabled = false, .FadingInterval = 1, .FadingIncrements = 1}

Creating a LightSettings instance, passing in the unique parameters.

Definition at line 182 of file Settings.h.

◆ Main1

struct MainModuleSettings Settings::Main1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSON = true, .SerialReportJSONFriendly = true, .SerialReportWireless = true, .ReportToGoogleSheets = false, .SheetsReportingFrequency = 30, .ReportToMqtt = true, .MQTTReportFrequency = 5}

Definition at line 134 of file Settings.h.

◆ Metric

bool Settings::Metric = true

Switch between Imperial/Metric units. If changed update the default temp and pressure values below too.

Definition at line 61 of file Settings.h.

◆ PHSen1

struct PHSensorSettings Settings::PHSen1 = {.Pin = A0, .Slope = -0.031199, .Intercept = 22.557617}

Update this to your own PH meter calibration values: https://sites.google.com/site/growboxguy/arduino/reservoir-module?authuser=0#h.p_PGMrIJ9iRr0c.

Definition at line 70 of file Settings.h.

◆ Pres1

struct PressureSensorSettings Settings::Pres1 = {.Pin = A7, .Offset = 0.57, .Ratio = 2.7}

Definition at line 78 of file Settings.h.

◆ Res1

struct ReservoirModuleSettings Settings::Res1 = {.SerialReportDate = true, .SerialReportMemory = true, .SerialReportJSONFriendly = true, .SerialReportJSON = true, .SerialReportWireless = true}

Definition at line 53 of file Settings.h.

◆ ReservoirMod1

struct ReservoirModuleSettings Settings::ReservoirMod1 = {}

Definition at line 188 of file Settings.h.

◆ Sound1

struct SoundSettings Settings::Sound1 = {.Pin = 2, .Enabled = true}

Definition at line 195 of file Settings.h.

◆ TDS1

struct TDSSensorSettings Settings::TDS1 = {.Pin = A1, .PowerPin = A2}

Definition at line 78 of file Settings.h.

◆ Weight1

struct WeightSensorSettings Settings::Weight1 = {.DTPin = A0, .SCKPin = A1, .Offset = -288069, .Scale = -22280.70}

Waste Reservoir 1 Weight Sensor - Generate the calibration values using: https://github.com/growboxguy/Gbox420/tree/master/Test_Sketches/Test-WeightSensor_Aero.

Update the calibration values here for the Weight Sensor.

Generate the calibration values using: https://github.com/growboxguy/Gbox420/blob/master/Test_Sketches/Test-WeightSensor_Aero/Test-WeightSensor_Aero.ino.

Definition at line 112 of file Settings.h.

◆ WeightB1

struct WeightSensorSettings Settings::WeightB1 = {.DTPin = 4, .SCKPin = 6, .Offset = -176962, .Scale = -22654.00}

◆ WeightB2

struct WeightSensorSettings Settings::WeightB2 = {.DTPin = 7, .SCKPin = 8, .Offset = 377473, .Scale = -21506.86}

◆ WeightWR

struct WeightSensorSettings Settings::WeightWR = {.DTPin = A3, .SCKPin = A4, .Offset = 260682, .Scale = -22084.60}

Waste Reservoir Weight Sensor - Generate the calibration values using: https://github.com/growboxguy/Gbox420/blob/master/Test_Sketches/Test-WeightSensor_HempyWastePlatforms/Test-WeightSensor_HempyWastePlatforms.ino.

Definition at line 104 of file Settings.h.

◆ WTemp1

struct WaterTempSensorSettings Settings::WTemp1 = {.Pin = 4}

Data(yellow) - DS18B20 waterproof temp sensor.

Definition at line 93 of file Settings.h.


The documentation for this struct was generated from the following files: