Thermometer PIC code

Tony
Site Admin
Posts: 953
Joined: Tue Jul 24, 2012 8:05 pm

Re: Thermometer PIC code

Post by Tony »

.ASM of the AM2303/DHT11 dual sensor code:
Attachments
AM2303 dual piccode.rar
(10.01 KiB) Downloaded 680 times
Skyraider
Posts: 40
Joined: Sat Nov 11, 2017 1:18 pm

Re: Thermometer PIC code

Post 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
Tony
Site Admin
Posts: 953
Joined: Tue Jul 24, 2012 8:05 pm

Re: Thermometer PIC code

Post by Tony »

Hi,
I know you've built it by now but for future reference the PIC is supplied preprogrammed.
Skyraider
Posts: 40
Joined: Sat Nov 11, 2017 1:18 pm

Re: Thermometer PIC code

Post 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
Attachments
DHT22_AM2303piccode.7z
(12.48 KiB) Downloaded 606 times
Tony
Site Admin
Posts: 953
Joined: Tue Jul 24, 2012 8:05 pm

Re: Thermometer PIC code

Post 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.
Post Reply