This file contains 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 <Servo.h> | |
int PinServo[5] = {A0, A1, A2, A3,}; | |
Servo Dedo[5]; | |
Servo myservo; // create servo object to control a servo | |
// twelve servo objects can be created on most boards | |
int pos = 0; // variable to store the servo position | |
void setup() { |
This file contains 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 BLYNK_PRINT Serial | |
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <BlynkSimpleEsp32.h> | |
// You should get Auth Token in the Blynk App. | |
// Go to the Project Settings (nut icon | |
char auth[] = "49bfe35f825542cdbc4948a73415b585"; | |
// Your WiFi credentials. |
This file contains 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 <Servo.h> | |
Servo myservo[3];//Objeto se los servos | |
int PosServo[3] = {85, 85, 85};//Posicopn acutal de los servos | |
const int Grados[2] = {5, 175}; //Rango maximo de los servos | |
int Movimiento = 1; //Cuanto se mueve el servo a la vez | |
const int PinBoton[3][2] = {{2, 3}, {4, 5}, {6, 7}};//Botones para controlor los sevos | |
int EstadoBoton[3][2] = {{0, 0}, {0, 0}, {0, 0}}; | |
const int PinServo[3] = {8, 9, 10};//Pin de los servos |
This file contains 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 <SPI.h> | |
#include <MFRC522.h> | |
//Librerias del RFID y SPI | |
#define SS_PIN 10 | |
#define RST_PIN 9 | |
//Pines de selecion y resetiar | |
MFRC522 mfrc522(SS_PIN, RST_PIN); | |
//Crear la intancia para habla con RFID |
This file contains 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
int mapa_botones[9] = { 5, 6, 7, 8, 9, 10, 11, 12, 13 }; | |
int BotonesAnt[9] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; | |
int BotonesAct[9] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; | |
void setup() { | |
int i; | |
for (i=0; i<9; i++) { | |
digitalWrite(mapa_botones[i], HIGH); | |
pinMode(mapa_botones[i], INPUT); |