From 2de263f3a83ecaf08064e99326018dd14cd830f9 Mon Sep 17 00:00:00 2001 From: koliver2k2 Date: Tue, 17 Nov 2026 11:02:04 +0100 Subject: [PATCH] Newest version with API --- UCPSMain/UCPSMain.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UCPSMain/UCPSMain.ino b/UCPSMain/UCPSMain.ino index 9b0ed8b..76a8f8a 100644 --- a/UCPSMain/UCPSMain.ino +++ b/UCPSMain/UCPSMain.ino @@ -8,7 +8,7 @@ const char wifiSSID[] = "FreeWifi"; const char wifiPASS[] = "temppassword"; // ESP8266 (Wifi module, AT firmware) -SoftwareSerial wifiSerial(2, 3); // RX = 2, TX = 3 +SoftwareSerial wifiSerial(0, 1); // RX = 15, TX = 14 WiFiEspClient client; // LCD Display @@ -19,7 +19,7 @@ DHT_nonblocking dht_sensor(DHT_SENSOR_PIN, DHT_SENSOR_TYPE); LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // RS, EN, D4, D5, D6, D7 // Light sensor and LEDs -int lightPin = A0; // LDR +int lightPin = A7; // LDR int dataPin = 4; // DS int latchPin = 5; // ST_CP int clockPin = 6; // SH_CP @@ -37,8 +37,8 @@ float outdoorTemp = NO_TEMP; const int mosfetPin = 13; unsigned long previousMosfetMillis = 0; bool mosfetState = true; -const unsigned long mosfetOnTime = 60000UL; // 60 seconds ON -const unsigned long mosfetOffTime = 60000UL; // 60 seconds OFF +const unsigned long mosfetOnTime = 60000UL/*60000UL*/; // 60 seconds ON +const unsigned long mosfetOffTime = 5000UL; // 60 seconds OFF // Store the indoor temp float lastIndoorTemp = NO_TEMP;