Newest version with API
parent
b1f15935d5
commit
2de263f3a8
|
|
@ -8,7 +8,7 @@ const char wifiSSID[] = "FreeWifi";
|
||||||
const char wifiPASS[] = "temppassword";
|
const char wifiPASS[] = "temppassword";
|
||||||
|
|
||||||
// ESP8266 (Wifi module, AT firmware)
|
// ESP8266 (Wifi module, AT firmware)
|
||||||
SoftwareSerial wifiSerial(2, 3); // RX = 2, TX = 3
|
SoftwareSerial wifiSerial(0, 1); // RX = 15, TX = 14
|
||||||
WiFiEspClient client;
|
WiFiEspClient client;
|
||||||
|
|
||||||
// LCD Display
|
// 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
|
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // RS, EN, D4, D5, D6, D7
|
||||||
|
|
||||||
// Light sensor and LEDs
|
// Light sensor and LEDs
|
||||||
int lightPin = A0; // LDR
|
int lightPin = A7; // LDR
|
||||||
int dataPin = 4; // DS
|
int dataPin = 4; // DS
|
||||||
int latchPin = 5; // ST_CP
|
int latchPin = 5; // ST_CP
|
||||||
int clockPin = 6; // SH_CP
|
int clockPin = 6; // SH_CP
|
||||||
|
|
@ -37,8 +37,8 @@ float outdoorTemp = NO_TEMP;
|
||||||
const int mosfetPin = 13;
|
const int mosfetPin = 13;
|
||||||
unsigned long previousMosfetMillis = 0;
|
unsigned long previousMosfetMillis = 0;
|
||||||
bool mosfetState = true;
|
bool mosfetState = true;
|
||||||
const unsigned long mosfetOnTime = 60000UL; // 60 seconds ON
|
const unsigned long mosfetOnTime = 60000UL/*60000UL*/; // 60 seconds ON
|
||||||
const unsigned long mosfetOffTime = 60000UL; // 60 seconds OFF
|
const unsigned long mosfetOffTime = 5000UL; // 60 seconds OFF
|
||||||
|
|
||||||
// Store the indoor temp
|
// Store the indoor temp
|
||||||
float lastIndoorTemp = NO_TEMP;
|
float lastIndoorTemp = NO_TEMP;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue