Entradas

Mostrando entradas de abril, 2024

ALARMA ESP32 IOT CON SINRIC PRO

Imagen
 CODIGO ARDUINO #include <Wire.h> #include <LiquidCrystal_I2C.h>   //Downlaod the library: http://www.electronoobs.com/eng_arduino_liq_crystal.php LiquidCrystal_I2C lcd (0x 27 , 16 , 2 );  //SCL = D1     SDA = D2 #include <RTClib.h> // for the RTC RTC_DS3231 rtc;     // crea objeto del tipo RTC_DS3231 char daysOfTheWeek [ 7 ][ 12 ] = { "Domin" , "Lunes" , "Mart" , "Mierc" , "Juev" , "Viern" , "Sabad" }; #ifdef ENABLE_DEBUG   #define DEBUG_ESP_PORT Serial   #define NODEBUG_WEBSOCKETS   #define NDEBUG #endif #include <Arduino.h> #if defined ( ESP8266 )   #include <ESP8266WiFi.h> #elif defined (ESP32) || defined (ARDUINO_ARCH_RP2040)   #include <WiFi.h> #endif #include "SinricPro.h" #include "SinricProSwitch.h" #define WIFI_SSID         "FLIA ROYERO HOYOS.EXT"     #define WIFI_PASS         "32852065" #define APP_KEY ...

TIMBRE COLEGIO IOT CON PLACA D1 MINI Y TRIAC

Imagen
             CIRCUITO CODIGO ARDUINO /* //Downlaod the library: http://www.electronoobs.com/eng_arduino_liq_crystal.php */ #include "SinricPro.h" #include "SinricProSwitch.h" #include <RTClib.h> // for the RTC #include <LiquidCrystal_I2C.h>   LiquidCrystal_I2C lcd (0x 27 , 16 , 2 );   #ifdef ENABLE_DEBUG   #define DEBUG_ESP_PORT Serial   #define NODEBUG_WEBSOCKETS   #define NDEBUG #endif #include <Arduino.h> #if defined ( ESP8266 )   #include <ESP8266WiFi.h> #elif defined (ESP32) || defined (ARDUINO_ARCH_RP2040)   #include <WiFi.h> #endif #define WIFI_SSID         "Jroyero"     #define WIFI_PASS         "76110902502" #define APP_KEY           "d5dc9adc-91d7-4e49-a3b0-9f5a17e19e45"       #define APP_SECRET         "cf5f0225-2825-48f5-a442-6bb90a99929a-e85...