hydroponic-controller/platformio.ini

159 lines
4.1 KiB
INI
Raw Normal View History

2023-03-30 17:55:45 +02:00
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
2025-06-29 09:39:15 +02:00
[env:esp32doit-devkit-v1_reservoir]
2023-03-30 17:55:45 +02:00
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
2023-04-04 07:53:20 +02:00
monitor_speed = 115200
2024-06-25 21:10:12 +02:00
monitor_port = /dev/ttyUSB0
build_flags=
2025-06-29 09:39:15 +02:00
'-D CLIENT_ID="waterreservoir"'
2024-06-25 21:10:12 +02:00
-D PIN_LED=13
2025-04-15 22:23:10 +02:00
2025-07-04 19:31:59 +02:00
-D UPTIMEINTERVAL=1000*60
2024-06-25 21:10:12 +02:00
-D ONE_WIRE_BUS_PIN=18
-D THERMOMETER_ADDR_CASE={0x10,0x7E,0x22,0x99,0x01,0x08,0x00,0xA4}
-D PIN_SDA=21
-D PIN_SCL=22
2025-06-29 10:18:04 +02:00
-D WATERLEVEL_OFFSET=-490.0
2024-07-30 13:41:41 +02:00
-D WATERLEVEL_FACTOR=-1.0
2025-06-30 18:03:36 +02:00
-D RES_AREA=77*56.8
2025-06-29 09:39:15 +02:00
-D WATERLEVELSENSOR_VL53L1X
2025-04-15 22:23:10 +02:00
2025-07-12 13:26:12 +02:00
-D FLOW_PIN=17
-D READINTERVAL_FLOW=5*1000
-D TIMING_FLOW_MINCHANGE=0.0
-D TIMING_FLOW_MAXCHANGE=0.3
-D TIMING_FLOW_MINTIME=5*1000
-D TIMING_FLOW_MAXTIME=60*60*1000
2025-06-29 19:25:17 +02:00
-D VALVECOUNT=8
-D PIN_SERIAL_DATA=25
-D PIN_SERIAL_LATCH=33
-D PIN_SERIAL_CLOCK=32
-D RELAISCOUNT=4
-D PIN_RELAIS={12,14,27,26}
2023-04-04 07:53:20 +02:00
lib_deps =
2023-04-05 09:22:57 +02:00
https://github.com/milesburton/Arduino-Temperature-Control-Library/
https://github.com/emilv/ArduinoSort/
2023-05-10 17:44:21 +02:00
robtillaart/ADS1X15@^0.3.9
2024-05-11 09:20:37 +02:00
256dpi/MQTT@^2.5.1
2025-06-29 09:39:15 +02:00
pololu/VL53L1X@^1.3.1
2024-06-25 21:10:12 +02:00
[env:esp32-s3-devkitm-1_DB]
platform = platformio/espressif32@^6.7
board = esp32-s3-devkitm-1
2024-07-13 17:29:03 +02:00
;Devboard is ESP32-S3-DevKitC-1 (N16R8). board=esp32-s3-devkitm-1 works fine
2024-06-25 21:10:12 +02:00
framework = arduino
2025-04-15 22:23:10 +02:00
monitor_port = /dev/ttyACM0
2024-06-25 21:10:12 +02:00
monitor_speed = 115200
build_flags=
2024-07-30 13:41:41 +02:00
'-D CLIENT_ID="hydroponic-DB"'
2024-06-27 20:38:59 +02:00
-D PIN_BUTTON=12
2024-06-25 21:10:12 +02:00
2024-07-28 21:32:22 +02:00
-D EC_PIN_RELAY_PROBE=35
-D EC_PIN_FREQ=38
2024-06-25 21:10:12 +02:00
2025-04-15 22:23:10 +02:00
-D EC_CALIBRATION_POLYNOM={66.39669240599893,-0.09954956470655674,5.934040501689804e-05,-8.587883382454424e-09,4.448631030971983e-13}
-D EC_CALIBRATION_LINEARIZE_BELOW_ADC=3600
-D EC_CALIBRATION_LINEAR_LOWADC=465.97
2024-06-25 21:10:12 +02:00
-D EC_CALIBRATION_LINEAR_LOWEC=0
2025-04-15 22:23:10 +02:00
-D EC_REFERENCE_ADC=5908
2024-06-25 21:10:12 +02:00
2024-07-28 21:32:22 +02:00
-D FLOW_PIN=17
2024-06-27 20:38:59 +02:00
-D ONE_WIRE_BUS_PIN=18
2024-06-25 21:10:12 +02:00
-D THERMOMETER_ADDR_RESERVOIR={0x28,0xFF,0x30,0xBA,0x85,0x16,0x03,0xB5}
2024-07-28 21:32:22 +02:00
-D THERMOMETER_ADDR_CASE={0x28,0xFF,0x64,0x0E,0x75,0x83,0x09,0x6F}
2024-06-25 21:10:12 +02:00
2024-06-27 20:38:59 +02:00
-D PIN_SDA=1
-D PIN_SCL=2
2024-06-25 21:10:12 +02:00
2025-06-29 10:18:04 +02:00
-D WATERLEVEL_OFFSET=-252.0
2024-07-30 13:41:41 +02:00
-D WATERLEVEL_FACTOR=-1.0
-D RES_AREA=37*56
2025-04-15 22:23:10 +02:00
-D WATERLEVELSENSOR_VL53L1X
-D ROISIZE_WIDTH=8
-D ROISIZE_HEIGHT=8
2024-07-30 13:41:41 +02:00
lib_deps =
https://github.com/milesburton/Arduino-Temperature-Control-Library/
https://github.com/emilv/ArduinoSort/
robtillaart/ADS1X15@^0.3.9
256dpi/MQTT@^2.5.2
2025-04-15 22:23:10 +02:00
pololu/VL53L1X@^1.3.1
adafruit/Adafruit NeoPixel
[env:esp32-s3-devkitm-1_NFT]
platform = platformio/espressif32@^6.7
board = esp32-s3-devkitm-1
;Devboard is ESP32-S3-DevKitC-1 (N16R8). board=esp32-s3-devkitm-1 works fine
framework = arduino
monitor_speed = 115200
monitor_port = /dev/ttyACM0
build_flags=
'-D CLIENT_ID="hydroponic-NFT"'
-D PIN_BUTTON=12
-D EC_PIN_RELAY_PROBE=35
-D EC_PIN_FREQ=38
2025-04-15 22:23:10 +02:00
-D EC_CALIBRATION_POLYNOM={93.96528045244023,-0.1442265098262804,8.016698711210758e-05,-1.1609651235703859e-08,5.945632995842434e-13}
-D EC_CALIBRATION_LINEARIZE_BELOW_ADC=3600
-D EC_CALIBRATION_LINEAR_LOWADC=452.71
-D EC_CALIBRATION_LINEAR_LOWEC=0
2025-04-15 22:23:10 +02:00
-D EC_REFERENCE_ADC=5782.9
-D FLOW_PIN=17
-D ONE_WIRE_BUS_PIN=18
-D THERMOMETER_ADDR_RESERVOIR={0x28,0xFF,0x6F,0x19,0x72,0x16,0x05,0x44}
-D THERMOMETER_ADDR_CASE={0x28,0xFF,0x64,0x0E,0x75,0x90,0xDE,0x02}
-D PIN_SDA=1
-D PIN_SCL=2
2025-06-29 10:18:04 +02:00
-D WATERLEVEL_OFFSET=-470.0
-D WATERLEVEL_FACTOR=-1.0
-D RES_AREA=20*20*3.1416
2025-04-15 22:23:10 +02:00
-D WATERLEVELSENSOR_VL53L1X
-D ROISIZE_WIDTH=8
-D ROISIZE_HEIGHT=8
2025-06-21 19:51:56 +02:00
-D TIMING_WATERLEVEL_MINCHANGE=0.0
-D TIMING_WATERLEVEL_MAXCHANGE=20.0
-D TIMING_WATERLEVEL_MINTIME=60*1000
-D TIMING_WATERLEVEL_MAXTIME=6*60*60*1000
2024-06-25 21:10:12 +02:00
lib_deps =
https://github.com/milesburton/Arduino-Temperature-Control-Library/
https://github.com/emilv/ArduinoSort/
robtillaart/ADS1X15@^0.3.9
256dpi/MQTT@^2.5.2
2025-04-15 22:23:10 +02:00
pololu/VL53L1X@^1.3.1
2024-06-27 20:38:59 +02:00
adafruit/Adafruit NeoPixel