Thermometer PIC code
Re: Thermometer PIC code
.ASM of the AM2303/DHT11 dual sensor code:
- Attachments
-
- AM2303 dual piccode.rar
- (10.01 KiB) Downloaded 1126 times
Re: Thermometer PIC code
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
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
Hi,
I know you've built it by now but for future reference the PIC is supplied preprogrammed.
I know you've built it by now but for future reference the PIC is supplied preprogrammed.
Re: Thermometer PIC code
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
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 1045 times
Re: Thermometer PIC code
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.