Termometro Digital Usando Pic16F876A

Páginas: 2 (281 palabras) Publicado: 20 de septiembre de 2011
UNIVERSIDAD AUTONOMA DE NUEVO LEON

FACULTAD DE INGENIERIA MECANICA Y ELECTRICA

SENSORES Y ACTUADORES

PROYECTO FINAL:
ESTACION METEOROLOGICA

ALUMNO:

1412175 JUAN JAZIEL LIMON BELMARES1465961 JONATAN PEREZ TORRES
1454167 CARMEN JUDITH VAZQUEZ OLVER
1453716 JULIAN ANDRES OLIVIA VELA

N1-1204

SAN NICOLAS DE LOS GARZA, NUEVO LEON A 25 DE MAYO DEL 2010

Termómetro DigitalMateriales

• PIC16F876A

• Cristal de cuarzo 4 MHz

• Sensor de temperatura LM35DT

• 3 display 7 segmentos

• 2 diodos led

• Capacitores 33 pf, 1 y .47 uf• Regulador de voltaje 7805

Diagrama eléctrico

Para alimentar el PIC16F876A el voltaje aplicado debe ser lo más exacto a 5 volts, debido a que el microcontrolador necesita el voltaje dereferencia de 5 volts para hacer la conversión análoga digital.

El XT (cristal se conecta en el pin 9 y 10). Lo que realiza el cristal es indicarle al PIC a que velocidad debe trabajar, sin XT el PIC nofuncionara.

PIN 2 entrada de señal analógica del LM35DT, RB0-RB7 y RC0-RC7 salidas lógicas (5 volts), voltaje de alimentación al PIN 20, tierra a PIN 8 y 19.

Se utilizo el compilador MicroCpara programar el microcontrolador, el lenguaje de programación es C, el programador que se utilizo se llama Master Prog.

int i, j, h, q, x, temperatura;
float temp;
long tlong;

void main() {INTCON=0; //Deshabilita interrupciones

TRISA=0x1; //AN0 configurado como entrada

ADCON0=0x85; //AN0 entrada analogica, fosc/32

ADCON1=0x80;//Vref=Vdd

TRISB=0; //Puerto B configurado como salida

TRISC=0; //Puerto C configurado como salida

Delay_ms(50);

while(1){temp=ADC_read(0); Delay_ms(100);

tlong=(temp*1023)/5; Delay_ms(100);

temp=(tlong*300)/614; Delay_ms(100);

temperatura=(temp/1000)*5;...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Reporte de termometro digital usando LM35
  • Termometro digital
  • los termometros digitales
  • Termometro digital
  • Termometro Digital
  • Termometro digital
  • TERMOMETRO DIGITAL
  • termometro digital

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS