Page 2 of 2

Re: Thermometer PIC code

Posted: Fri Jan 06, 2017 12:14 am
by Tony
.ASM of the AM2303/DHT11 dual sensor code:

Re: Thermometer PIC code

Posted: Mon Nov 20, 2017 7:54 pm
by Skyraider
Hi Tony,
I ordered the thermometer a couple of weeks ago. Could you tell me if the PIC is programmed with the version that recognize an external DHT22/AM2302 ?
Or should I re-programmed it with the right version?

Thank you in advance for your answer

regards

Re: Thermometer PIC code

Posted: Fri Nov 24, 2017 5:56 am
by Tony
Hi,
I know you've built it by now but for future reference the PIC is supplied preprogrammed.

Re: Thermometer PIC code

Posted: Sat Mar 24, 2018 6:17 pm
by Skyraider
Here is a modified version of the Piccode that is optimized to get the full precision of DHT22 or AM2303 external sensor.
For these sensors, I removed the "smoothing temperature" part and changed a little the code so that the decimal part of the measure is now taken into account.
The results is very good: the thermometer is now very fast to react to temperature change and the precision is top.
The source code is for a PIC16F1827

Re: Thermometer PIC code

Posted: Wed Mar 28, 2018 4:04 am
by Tony
I'll give it a try - thank you for taking the time to modify it, the original DHT22 mod was a quick patch to allow it to be used in place of a DHT11 for a more accurate reading.