Skip to content

Instantly share code, notes, and snippets.

View chepecarlos's full-sized avatar

Jose Carlos Garcia Diaz chepecarlos

View GitHub Profile
#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() {
@chepecarlos
chepecarlos / .ino
Last active August 27, 2018 00:16 — forked from RodrigoSolorzano/.ino
RED MOST
#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.
@chepecarlos
chepecarlos / 3servos.ino
Last active May 3, 2017 00:39 — forked from ale140/3servos.ino
control de 3 servos con pulsadores, el tercero debe de girar sólo mientras se active el pulsador y cambiar de sentido cuando se presione el otro
#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
#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
@chepecarlos
chepecarlos / Dance_Dance_Arduino.ino
Created September 2, 2012 23:25 — forked from joksan/Alfombra_Pro_Micro.ino
Codigo para la alfombra de baile de Grupo Linux
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);