Entradas

Mostrando las entradas etiquetadas como TEMPERATURA

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