change reservoir controller to esp32 s3 devkit-m1

This commit is contained in:
interfisch 2025-07-21 22:19:51 +02:00
parent a01e26ebaf
commit 42b442d209

View file

@ -8,6 +8,52 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32-s3-devkitm-1_reservoir]
platform = platformio/espressif32@^6.7
board = esp32-s3-devkitm-1
framework = arduino
monitor_speed = 115200
build_flags=
'-D CLIENT_ID="waterreservoir"'
-D UPTIMEINTERVAL=1000*60
-D ONE_WIRE_BUS_PIN=16 ;war 18
-D THERMOMETER_ADDR_CASE={0x10,0x7E,0x22,0x99,0x01,0x08,0x00,0xA4}
-D PIN_SDA=1 ;war 21
-D PIN_SCL=2 ;war 22
-D WATERLEVEL_OFFSET=-490.0
-D WATERLEVEL_FACTOR=-1.0
-D RES_AREA=77*56.8
-D WATERLEVELSENSOR_VL53L1X
-D FLOW_PIN=38
-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
-D VALVECOUNT=8
-D PIN_SERIAL_DATA=8 ;war25
-D PIN_SERIAL_LATCH=18 ;war 33
-D PIN_SERIAL_CLOCK=17 ;war 32
-D RELAISCOUNT=4
-D PIN_RELAIS={10,9,46,3} ;war {12,14,27,26}
lib_deps =
https://github.com/milesburton/Arduino-Temperature-Control-Library/
https://github.com/emilv/ArduinoSort/
256dpi/MQTT@^2.5.2
pololu/VL53L1X@^1.3.1
adafruit/Adafruit NeoPixel
[env:esp32doit-devkit-v1_reservoir]
platform = espressif32
board = esp32doit-devkit-v1
@ -45,8 +91,6 @@ build_flags=
-D RELAISCOUNT=4
-D PIN_RELAIS={12,14,27,26}
lib_deps =
https://github.com/milesburton/Arduino-Temperature-Control-Library/
https://github.com/emilv/ArduinoSort/