Entradas

Mostrando entradas de marzo, 2023

Estación de control domótico con BLYNK 2.0

Imagen
  LINK VIDEO TUTORIAL: https://www.youtube.com/watch?v=ivau7HK7P-g #include <Adafruit_AHT10.h> Adafruit_AHT10 aht; #define BLYNK_TEMPLATE_ID "TMPLqj02Xu1t" #define BLYNK_TEMPLATE_NAME "ESTACION DE CONTROL DOMOTICO" const byte led1 = D4; const byte led2 = D5; const byte led3 = D6; #define boton1 D3   //D3 int estado1 = HIGH;   int estado2 = 0 ;   int estado3 = 0 ;     int buttonState = 0 ; int lastButtonState = HIGH;   // la lectura anterior del pin de entrada unsigned long lastDebounceTime = 0 ;  // la última vez que se activó el pin de salida unsigned long debounceDelay = 50 ; long previousMillis = 0 ;         long tmedicion = 2000 ; int contador = 1 ; #define BLYNK_FIRMWARE_VERSION         "0.1.0" #define BLYNK_PRINT Serial //#define BLYNK_DEBUG #define APP_DEBUG // Uncomment your board, or configure a custom board in Settings.h //#define USE_SPARKFUN_BLYNK_BOARD //#defi...

ASSISTECH - ASISTENTE PARA PERSONAS CON DISCAPACIDADES VARIAS

Imagen
  CODIGO PARA PLACA #1 (ESP32S) //CODIGO PARA PLACA D1 MINI EN PROYECTO "ASISTENTE PARA PERSONAS //CON MOVILIDAD REDUCIDA" PLACA V 2.0 #include <GyverOLED.h> GyverOLED<SSH1106_128x64> oled; #ifdef ENABLE_DEBUG         #define DEBUG_ESP_PORT Serial         #define NODEBUG_WEBSOCKETS         #define NDEBUG #endif #include <Arduino.h> #ifdef ESP8266         #include <ESP8266WiFi.h> #endif #ifdef ESP32           #include <WiFi.h> #endif #include "SinricPro.h" #include "SinricProSwitch.h" #define WIFI_SSID         "Oficina_Royero"     #define WIFI_PASS         "@*Jerv*Jroyero*1209@" #define APP_KEY           "d5dc9adc-91d7-4e49-a3b0-9f5a17e19e45"      // Should look like "de0bxxxx-1x3x-4x3x-ax2x-5dabxxxxxxxx" #define APP_SECRET   ...