lordmag
Junior Member level 3
hi ,
my projet is to make a temperature alert with pic 16f877A
i m using the LM335 sensor to detect the temperature this is the datasheet
the input is RA2/AN2 so i should make the ADC and the code that make the RED LED which is the output RB3 on when the temperature reach 60 °c
notice that this sensor range is between (-50 ° 125 °)
The temperature sensor's voltage output is related to absolute temperature by the following equation: Vout = VoutT0 * T / T0, where T0 is the known reference temperature where VoutT0 was measured. The nominal VoutT0 is equal to T0 * 10 mV/K. So, at 25 C, VoutT0 is nominally 298 K * 10 mV/K = 2.98 V
without the ADC the RED LED is on when the Vout=2,5v T= -23°c
so hellppp me please to do that analogic digital conversation to make the RED LED on when T reach 60°c = 333 k when Vout >= 3,33V the input is RA2/AN2
the pic is 16F877A and i'm using CCS C compiler
thank youu !!
my projet is to make a temperature alert with pic 16f877A
i m using the LM335 sensor to detect the temperature this is the datasheet
the input is RA2/AN2 so i should make the ADC and the code that make the RED LED which is the output RB3 on when the temperature reach 60 °c
notice that this sensor range is between (-50 ° 125 °)
The temperature sensor's voltage output is related to absolute temperature by the following equation: Vout = VoutT0 * T / T0, where T0 is the known reference temperature where VoutT0 was measured. The nominal VoutT0 is equal to T0 * 10 mV/K. So, at 25 C, VoutT0 is nominally 298 K * 10 mV/K = 2.98 V
without the ADC the RED LED is on when the Vout=2,5v T= -23°c
so hellppp me please to do that analogic digital conversation to make the RED LED on when T reach 60°c = 333 k when Vout >= 3,33V the input is RA2/AN2
the pic is 16F877A and i'm using CCS C compiler
thank youu !!