Entradas

Mostrando las entradas etiquetadas como ARDUINO UNO

ARDUINO UNO PLACA DE DESARROLLO

Imagen
Modelado Tarjeta de Desarrollo Arduino En esta entrada presento una tarjeta que encaja perfectamente con la placa Arduino UNO, Leonardo, Duemilanove entre otros. Esta tarjeta nos permitirá desarrollar diferentes proyectos para arduino de una manera más versátil. Para mostrar un poco el uso de la placa he realizado el circuito de la entrada EJEMPLO 3: CONVERSION ANALOGICA DIGITAL Y ENCENDIDO DE LEDS que consiste en prender una cantidad de leds de acuerdo a la cantidad de voltaje que se encuentra en el pin central del potenciómetro. ARDUINO ONE PLATE OF DEVELOPMENT In this entry we present a card that fits perfectly with the Arduino UNO, Leonardo, Duemilanove and others. This card allows us to develop different projects to build a more versatile way. To show a little the use of the plate I made the circuit of the entrance EJEMPLO 3: CONVERSION ANALOGICA DIGITAL Y ENCENDIDO DE LEDS   which consists of turning on a number of LEDs according to the amount of vol...

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 3: CONVERSION ANALOGICA DIGITAL Y ENCENDIDO DE LEDS

Imagen
En este ejemplo se hará una conversión analógica digital al valor de un potenciómetro, y este valor de voltaje se visualizará a través de 5 leds, por lo cual, cada led indicara 1 Voltio, es decir si hay 3 leds encendidos indicara que hay más de 3 voltios y menos que 4. Recordemos que el conversor analógico digital del microcontrolador es de 10 bits lo cual nos da una resolución de 4.88mv. DIGITAL ANALOGUE CONVERSION AND LED ON In this example, a digital analog conversion will be made to the value of a potential, and this voltage value will be visualized through 5 LEDs, therefore, each LED will indicate 1 Volt, that is, if there are 3 LEDs on it indicates that there is more than 3 volts and less than 4. Recall that the digital analog converter of the microcontroller is 10 bits which gives us a resolution of 4.88mv. /*  ------------------------------------------------------   Conversión analógica digital y encendido de leds  -----------------...

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 () ...