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 sensorTemperatura A0 | |
#define nSLEEP 8 | |
#define STEP 9 | |
#define DIR 10 | |
#define NENBL 11 | |
#define M1 12 | |
volatile double voltajeSensor = 0; | |
volatile uint16_t paso = 0; | |
volatile long int numeroPasos = 0; |
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 relevador1 7 | |
#define relevador2 8 | |
#define relevador3 9 | |
#define entrada1 A2 | |
#define entrada2 A1 | |
#define entrada3 A0 | |
#define tiempoEspera1 1000 | |
#define tiempoEspera2 100 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE eagle SYSTEM "eagle.dtd"> | |
<eagle version="9.6.2"> | |
<drawing> | |
<settings> | |
<setting alwaysvectorfont="no"/> | |
<setting verticaltext="up"/> | |
</settings> | |
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/> | |
<layers> |
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 <Adafruit_NeoPixel.h> | |
#include <OneWire.h> | |
Adafruit_NeoPixel pixels(1, 21, NEO_GRB + NEO_KHZ800); | |
void setup() { | |
pinMode(46, OUTPUT); | |
pixels.begin(); | |
Serial.begin(115200); | |
} |
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
//Compile with: | |
//g++ example.cpp -o salida `pkg-config --cflags --libs opencv4` | |
//Ruben Estrada Marmolejo | |
//ruben.estrada@hetpro.com.mx | |
//Original idea: https://stackoverflow.com/questions/44752240/how-to-remove-shadow-from-scanned-images-using-opencv/44752405#44752405 | |
#include<opencv4/opencv2/cvconfig.h> | |
#include<opencv2/core/core.hpp> | |
#include<opencv2/ml/ml.hpp> | |
//#include<opencv/cv.h> | |
#include<opencv2/imgproc/imgproc.hpp> |
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
//Compile with: | |
//g++ example.cpp -o salida `pkg-config --cflags --libs opencv4` | |
//Ruben Estrada Marmolejo | |
//ruben.estrada@hetpro.com.mx | |
//Original idea: https://stackoverflow.com/questions/44752240/how-to-remove-shadow-from-scanned-images-using-opencv/44752405#44752405 | |
#include<opencv4/opencv2/cvconfig.h> | |
#include<opencv2/core/core.hpp> | |
#include<opencv2/ml/ml.hpp> | |
//#include<opencv/cv.h> | |
#include<opencv2/imgproc/imgproc.hpp> |
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
char incommingMessage[200]; | |
String receivedLine; | |
uint16_t pointer = 0; | |
bool lineReceived = false; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
memset(incommingMessage, NULL, sizeof(incommingMessage)); | |
receivedLine.reserve(200); |
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 F1 13 | |
#define F2 12 | |
#define F3 14 | |
#define F4 27 | |
#define F5 26 | |
#define F6 25 | |
#define F7 33 | |
#define F8 32 | |
//--------------- | |
#define C1 15 |
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 <Adafruit_NeoPixel.h> //Adafruit NeoPiexel version 1.10.4 | |
#include <OneWire.h> //OneWire by Paul Stoffregen version 2.3.6 | |
#ifdef __AVR__ | |
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket | |
#endif | |
#define PIN 12 // On Trinket or Gemma, suggest changing this to 1 | |
#define relay1 10 | |
#define relay2 8 |
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 <Adafruit_NeoPixel.h> | |
#include <OneWire.h> | |
#define relay1 14 | |
#define relay2 12 | |
#define relay3 4 | |
#define relay4 16 | |
#define NUMPIXELS 1 | |
#define buzzer 32 |