Entradas

Mostrando las entradas etiquetadas como FRITZING

EJEMPLO 5: MANEJO DE LCD

Imagen
En este ejemplo se realizará una conversión análoga digital y el valor de esta se visualizará en la lcd. La idea de este ejemplo es aprender a configurar y manejar una lcd de 16x2. EXAMPLE 5: LCD MANAGEMENT In this example, a digital analog conversion will be performed and the value of this will be displayed on the lcd. The idea of ​​this example is to learn how to configure and operate a 16x2 lcd. Figura Configuración de ejemplo 5 (Esquema hecho con Fritzing)  /*   --------------------------------------   Manejo de LCD 16x2   --------------------------------------  La LCD que vamos a utilizar es de caracteres (16x2) esto corresponde a 16 columnas y 2 filas y funciona gracias a un Hitachi HD44780 driver.   El circuito:  * LCD RS pin va conectado al digital pin 12  * LCD Enable pin conectado al digital pin 11  * LCD D4 pin conectado al digital pin 5  * LCD D5 pin conectado al digital pin 4  * ...

EJEMPLO 4: ESCRITURA SERIAL

Imagen
En este ejemplo se convertirá el valor analógico de un lm35, recordemos que este componente mide temperatura y que arroja 10mV por 1 grado, por lo cual, 100mV equivalen a 10⁰C, luego el valor de temperatura será enviado por puerto serial, que puede ser un ordenador u otro equipo que posea este protocolo de comunicación. EXAMPLE 4: SERIAL WRITING In this example the analog value of an lm35 will be converted, it will be recorded that this component measures the temperature and that it throws 10mV by 1 degree, for which, 100mV is equal to 10⁰C, then the temperature value will be sent by serial port, which it can be a team or another team that has this communication protocol. /*  ------------------------------------------------------   Escritura serial  ------------------------------------------------------ Convertiremos la señal analógica de un lm35 y se enviara por el puerto serial */ int lm35 = 0;    // Declaramos la variabl...

EJEMPLO 2 ARDUINO: ENCENDIDO DE UN LED CON PULSADOR

Imagen
Figura Configuración de ejemplo 2 (Esquema hecho con Fritzing)    Este ejemplo consiste en el encendido de un led a través de un pulsador, es decir, que cuando presionemos el pulsador el led encenderá y cuando lo dejemos de pulsar se apagará. IGNITION OF A LED WITH BUTTON This example consists of the activation of a button through a pushbutton, that is, when we press the pushbutton the led in the output and when we leave it, it will turn off. /*  -----------------------------------   Encendido de un LED con pulsador  ----------------------------------- Se encenderá el led cuando presionemos el pulsador y se apagara cuando dejemos de presionarlo   */ int pulsador=2; //Declaramos el pin 2 como pulsador int led=9;      //declaramos el pin 9 como led //------------------------------------ //Función principal //------------------------------------ void setup () ...