fastback86
Member
https://www.electro-tech-online.com/articles/digital-temerature-sensor.409/
I thought I would give this a try to experiment with the one wire sensors. I had a few issues compiling it with MPLAB 8.91 and had to delete and re-arrange to get it build. Once programmed, I built the circuit. Upon power up it displays "000.0" then it displays "2.8" degrees C (34F) and it's about 19 C (67) in my house. If it matters I have a DS1820 instead of the DS18B20 if that matters. It appears to respond to changes in temperature its just way off. The code I modified is attached and the original code is in the link. I get this message from the builder:
Message[305] C:\PK2 LESSONS\LPC DEMO BOARD\16F628A TEMP GAUGE\16F628A.ASM 343 : Using default destination of 1 (file).
Did I mess something in the code? I also had to change a few things in the _config line.
I thought I would give this a try to experiment with the one wire sensors. I had a few issues compiling it with MPLAB 8.91 and had to delete and re-arrange to get it build. Once programmed, I built the circuit. Upon power up it displays "000.0" then it displays "2.8" degrees C (34F) and it's about 19 C (67) in my house. If it matters I have a DS1820 instead of the DS18B20 if that matters. It appears to respond to changes in temperature its just way off. The code I modified is attached and the original code is in the link. I get this message from the builder:
Message[305] C:\PK2 LESSONS\LPC DEMO BOARD\16F628A TEMP GAUGE\16F628A.ASM 343 : Using default destination of 1 (file).
Did I mess something in the code? I also had to change a few things in the _config line.
Attachments
Last edited: