Hello,
Yes I did that check, I supplied the sensor with a voltage source (9V, it operates from 4 to 30V).
I checked the output, it is 0.20.
I had put an ice box near it, the output dropped from 0.20 to 0.19, then 0.18 then 0.17 and so on.
I had lighten fire near it (controllably), so the output increased from 0.20 to 0.21 to 0.22 and so on, but not at a fast level, perhaps of the surface connected to the sensor.
does the normal output of 0.20V means that the temp is 20C? Here now it is 20C as seen on mobile and as feeling, lol.
So the sensor is working efficiently.
As it was stated, the sensor is connected to PORTA , pin 0:
Code ASM - [expand] |
1
2
3
4
5
6
7
8
| BSF ADCON2,ADFM
MOVLW 0x01
MOVWF R0L
CALL A001
MOVF ADRESL,W
MOVWF 0x019
MOVF ADRESH,W
MOVWF 0x01A |
This was used to save the value of the analog signal (Voltage) entering in PORTA.0 and convert it into decimal ,