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
/* | |
*********************************************** | |
Tutorial Arduino Bascula Dosificadora | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
Código con el valor de escalado corregido. | |
El valor de escalado lo hemos obtenido con ayuda del | |
sketch de calibración. |
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
/* | |
*********************************************** | |
Tutorial Arduino Bascula Dosificadora | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
Este código es para calcular el valor de escala que debemos usar. | |
Arrancaremos con el siguiente Sketch sin poner peso, | |
abrimos el monitor serie, | |
cuando se estabiliza la carga ya podemos poner un peso próximo al |
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
/* | |
*********************************************** | |
Tutorial Arduino Bascula Dosificadora | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
EXPLICACIÓN | |
El sistema se compone básicamente de una caja donde va alojada | |
una báscula hasta 5kg, un teclado y un display lcd, | |
un controlador Arduino UNO. |
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
/* | |
*********************************************** | |
Tutorial Arduino Sensor Microfono | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
Este ejemplo utiliza un sensor de microfono, | |
en concreto un modulo KY-038. | |
Al detectar un sonido, se activa una salida, en este caso | |
el led interno de la placa. | |
Cuando no detecta se apaga. |
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
/* | |
*********************************************** | |
Tutorial Arduino LCD | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
Demostracion del uso de un display de 16x2 | |
La libreria LiquidCrystal funciona con todos los | |
displays compatibles con el driver Hitachi HD44780. | |
Este ejemplo imprime un mensaje y caracteres personalizados |
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
/* | |
*********************************************** | |
Tutorial Arduino LCD | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
Demostracion del uso de un display de 16x2 | |
La libreria LiquidCrystal funciona con todos los | |
displays compatibles con el driver Hitachi HD44780. | |
Este ejemplo imprime un mensaje y va corriendo las dos lineas |
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
/* | |
*********************************************** | |
Tutorial Arduino LCD | |
https://conbotassucias.wordpress.com/ | |
*********************************************** | |
Demostracion del uso de un display de 16x2 | |
La libreria LiquidCrystal funciona con todos los | |
displays compatibles con el driver Hitachi HD44780. | |
Basado en el ejemplo: |
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
/************************************************ | |
Tutorial Arduino Servo | |
https://conbotassucias.wordpress.com/ | |
************************************************/ | |
#include <Servo.h> // Carga la librería Servo.h que contiene métodos para trabajar con servos | |
Servo myservo; // Crea un objeto servo para controlar el servomotor | |
int potpin = 0; // Pin analógico usado para conectar el potenciómetro | |
int val; // variable para leer el valor del pin analógico |
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
/************************************************ | |
Tutorial Arduino Servo | |
https://conbotassucias.wordpress.com/ | |
************************************************/ | |
#include <Servo.h> | |
Servo miServo; | |
int angulo=90; |
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 <Stepper.h> | |
const int pwmA = 3; | |
const int pwmB = 11; | |
const int dirA = 12; | |
const int dirB = 13; | |
// Cantidad de pasos para una revolución completa. | |
// 360 / Angulo de cada paso (1.8) | |
const int STEPS = 200; |
NewerOlder