This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| #include <RTClib.h> | |
| #include <SD.h> | |
| #include <SPI.h> | |
| #define SD_CS_PIN 10 | |
| #define BUTTON_PIN 2 | |
| RTC_DS3231 rtc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <AFMotor.h> // Librería Adafruit Motor Shield | |
| #include <SoftwareSerial.h> // Librería Software Serial | |
| // Definir los motores conectados a los puertos M1 y M2 | |
| AF_DCMotor motor_izquierdo(1); // Motor en M1 | |
| AF_DCMotor motor_derecho(2); // Motor en M2 | |
| // Configurar Software Serial en pines A0 (RX) y A1 (TX) | |
| SoftwareSerial bluetooth(A0, A1); // RX, TX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import pygame | |
| import sys | |
| import pyttsx3 | |
| # Inicializar Pygame | |
| pygame.init() | |
| # Inicializar pyttsx3 | |
| engine = pyttsx3.init() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define salida1 5 | |
| #define salida2 4 | |
| #define pwm 7 | |
| #define distanciaPorPulso 0.72 //mm | |
| float distanciaEnMM = 0; | |
| const int channelPinA = 2; | |
| int PPR = 20; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @file Read_Battery_Level.ino | |
| * @author Bernd Giesecke (bernd.giesecke@rakwireless.com) | |
| * @brief Read charging level from a battery connected to the RAK5005-O base board | |
| * Setup and main loop | |
| * @version 0.1 | |
| * @date 2020-08-21 | |
| * | |
| * @copyright Copyright (c) 2020 | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager | |
| #include <PubSubClient.h> // https://github.com/knolleary/pubsubclient/ | |
| #define BUILTIN_LED 2 | |
| #define CONNECTION_TOPIC "/F-litter/connection/status" | |
| #define MQTT_RECONNECTIO_MS_TIME 5000 | |
| WiFiClient espClient; | |
| PubSubClient mqttClient(espClient); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{"id":"a241677a.9d4738","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"179753f7.20760c","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"4a78ebf0.d15904","type":"tab","label":"Parqueo numero 1","disabled":false,"info":""},{"id":"99d0814b.e11998","type":"tab","label":"Parqueo numero 2","disabled":false,"info":""},{"id":"804cbfdd.656098","type":"tab","label":"Parqueo 4","disabled":false,"info":""},{"id":"7b263e23.89435","type":"tab","label":"Parqueo numero 5","disabled":false,"info":""},{"id":"86c345a4.6cf3","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"2d8659eb.6e387e","type":"mqtt-broker","z":"","name":"","broker":"broker.mqttdashboard.com","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"3170f1cb.a82eb6","type":"ui_tab","z":"","name":"Klappit 01","icon":"da |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * RFID wemos | |
| * | |
| * feb 2020 | |
| * Yeffrimic,Xibalba Hackerspace. | |
| * | |
| */ | |
| #include <SPI.h> | |
| #include <MFRC522.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Sensor de gas | |
| Este sketch tiene conectado a un pin digital | |
| un sensor mq2 que puede detectar el humo en el ambiente | |
| */ | |
| #include <ESP8266WiFi.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": "443a255c.e61854", | |
| "type": "tab", | |
| "label": "Flow 3", | |
| "disabled": false, | |
| "info": "" | |
| }, | |
| { | |
| "id": "f3a59ec7.9dc1d", |
NewerOlder