Hasher
Junior Member level 1
ds18s20
I'm using PIC18F2420 with DS18S20 temperature sensor.
PIC ==> 10-bit resolution A/D module
TempSensor ==> 9-bit resolution
TempSensor ==> range: -55 C° to 125 C°
I want to read the Temp. Sensor volt as a temperature value.
I did this:
unsigned int volt;
unsigned int temp;
Should I use Op-Amp to increase the o/p analog volt?
Or what is in code is enough?
I'm using PIC18F2420 with DS18S20 temperature sensor.
PIC ==> 10-bit resolution A/D module
TempSensor ==> 9-bit resolution
TempSensor ==> range: -55 C° to 125 C°
I want to read the Temp. Sensor volt as a temperature value.
I did this:
unsigned int volt;
unsigned int temp;
Code:
void main()
{
while(1)
{
volt = ADC_Read(2);
temp = 5*volt*/1024;
}
}
Should I use Op-Amp to increase the o/p analog volt?
Or what is in code is enough?