Garage: new pin for moisture sensor
Doorbell: Vibration motor connected via PC817C optocoupler
This commit is contained in:
Binary file not shown.
@@ -2,6 +2,8 @@
|
||||
Sources:
|
||||
https://randomnerdtutorials.com/esp32-esp8266-web-server-physical-button/
|
||||
https://randomnerdtutorials.com/esp32-pushover-notifications-arduino/
|
||||
|
||||
Note: Usage of wifi blocks the ADC2 analog pins. ADC1 pins can be used. See https://github.com/espressif/arduino-esp32/issues/102#issuecomment-295272351
|
||||
*/
|
||||
|
||||
#include <WiFi.h>
|
||||
@@ -55,7 +57,7 @@ const int PIN_SPRINKLER1 = 25; // relais pin for sprinkler 1
|
||||
const int PIN_SPRINKLER2 = 33; // relais pin for sprinkler 2
|
||||
const int PIN_SPRINKLER3 = 32; // relais pin for sprinkler 3
|
||||
const int PIN_SPRINKLER4 = 26; // relais pin for sprinkler 4
|
||||
const int PIN_MOISTURE_ANALOG = 14; // moisture sensor analog value // XXX currently blocked by WiFi
|
||||
const int PIN_MOISTURE_ANALOG = 35; // moisture sensor analog value
|
||||
const int PIN_MOISTURE_DIGITAL = 27; // moisture sensor digital value
|
||||
|
||||
AsyncWebServer server(80);
|
||||
|
||||
Reference in New Issue
Block a user