Entradas

QUAD MOTOR - OPEN SMART

Imagen
  #include <Adafruit_PCF8574.h> /* Example for 1 output LED that is connected from power to the GPIO expander pin #7  * Note the LEDs must be connected with the CATHODES to the expander, to SINK current!  * The PCF8574 cannot SOURCE current!  P0 = AIN1  P1 = AIN2  P2 = BIN1  P3 = BIN2  P4 = CIN1  P5 = CIN2  P6 = DIN1  P7 = DIN2  MOTOR DELANT IZQUIER  = MOTOR A  MOTOR DELANT DERECHO  = MOTOR B  MOTOR TRASERO IZQUIER = MOTOR C  MOTOR TRASERO DERECHO = MOTOR D  MOTOR A          MOTOR B  MOTOR C          MOTOR D  */ Adafruit_PCF8574 pcf; #define PIN_PWMA 3 #define PIN_PWMB 5 #define PIN_PWMC 6 #define PIN_PWMD 11 uint8_t speed0 = 150 ; void setup () {   while ( !Serial ) { delay ( 10 ) ; }   Serial . begin ( 9600 ) ;   Serial . println ( "Adafruit PCF8574 LED blink test" ) ;   if ( ! pcf . begin ( 0x 2...

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...

Alarma IOT con ESP32 y Rainmaker

Imagen
  CODIGO ARDUINO - PLACA ESP32 - 38 PINES /**********************************************************************************  *  Preferences--> Aditional boards Manager URLs :  *  http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json  *    *  Download Board ESP32 (2.0.3):   **********************************************************************************/ #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 ) ;   #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" } ; #include "RMaker.h" #include "WiFi.h" #include ...