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 ladoy = A0; // Entrada de referencia para el eje de las Y's. | |
int ladox = A1; // Entrada de referencia para el eje de las X's. | |
int ledup = 13; // Variable entera para led de la parte de arriba. | |
int ledD = 12; // Variable entera para led de la parte de abajo. | |
int ledL = 10; // Variable entera para led de la parte de izquierda. | |
int ledR = 11; // Variable entera para led de la parte de derecha. | |
int valor; | |
int valor2; | |
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
/* | |
Herramientas Tecnologicas Profesionales | |
www.hetpro-store.com | |
Tutorial Original: | |
http://tronixstuff.com/2014/01/08/tutorial-arduino-and-sim900-gsm-modules/ | |
Comandos AT: | |
http://probots.co.in/Manuals/SIM900%20GSM%20Modem%20-%20Starter%20Guide.pdf | |
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 <AccelStepper.h> | |
AccelStepper stepper(1, 9, 8);//(define el tipo de control del motor,pin de paso,pin direccion) | |
int pos = 100; | |
void setup() | |
{ | |
stepper.setMaxSpeed(800); //velocidad maxima permitida | |
stepper.setAcceleration(500);// relacion entre aceleracion/desaceleracion |
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
AccelStepper stepper(1, 9, 8);//(define el tipo de control del motor,pin de paso,pin direccion) |
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
stepper.setMaxSpeed(800); | |
stepper.setAcceleration(500); |
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
if (stepper.distanceToGo() == 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
#include <SFE_BMP180.h> | |
#include <Wire.h> | |
//Se declara una instancia de la librería | |
SFE_BMP180 pressure; | |
//Se declaran las variables. Es necesario tomar en cuenta una presión inicial | |
//esta será la presión que se tome en cuenta en el cálculo de la diferencia de altura | |
double PresionBase; | |
//Leeremos presión y temperatura. Calcularemos la diferencia de altura | |
double Presion = 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
#include <SoftwareSerial.h> | |
SoftwareSerial BT1(3, 2); // RX | TX | |
int x1=0; | |
void setup() | |
{ Serial.begin(9600); | |
BT1.begin(9600); | |
pinMode(13,OUTPUT); | |
pinMode(12,OUTPUT); | |
pinMode(11,OUTPUT); | |
pinMode(10,OUTPUT); |
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 <SoftwareSerial.h> | |
SoftwareSerial BT1(3, 2); // RX | TX | |
char txt; | |
void setup() | |
{ Serial.begin(9600); | |
BT1.begin(115200); | |
} | |
void loop() | |
{if (Serial.available()) | |
{txt = Serial.read(); |
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
void setup() | |
{Serial.begin(9600); | |
BT1.begin(115200); | |
} |