สอบถามควาทละเอียดในการแสดงผลของ DHT 11 ครับ

Started by anurak2528, May 10, 2018, 05:27:46 PM

Previous topic - Next topic

anurak2528

ตอนนี้ผมทำโปรแกรม ควบคุมเครื่องใช้ไฟฟ้า และมอนิเตอร์อุณภูมิ ความชื่น ผ่าน Internet ครับ 

ตอนนี้ ค่าความชื้น และอุณภูมิ ที่แสดงใน  Serial Monitor จะมีทศนิยมที่ลงท้ายด้วย .00 ครับ  คือผมต้องการให้แสดงหน่วยทศนิยมที่ละเอียดขึ้น เช่น .6  .8 .34 ไม่ทราบสามารถทำได้ไหมครับ ต้องแก้ไขหรือปรับเปลี่ยน Library อะไรหรือป่าว  หรือต้องเปลี่ยนตัว DHT เป็น DHT 22 ครับ  รบกวนสอบถามพี่ๆหน่อยครับ

avr_lover

เอาโปรแกรมมาโพสดูครับ ก่อน serial print เอาค่าไปทำอะไรหรือเก็บใส่ register แบบไหนมีปัดเศษไหมDHT11 resolution ตามนี้ครับ
"The DS18B20 is a good temperature sensor. It is 0.5 degrees Celsius accurate, that is about 1 degree Fahrenheit. It can be set to 12-bits, that is 0.0625 degrees Celsius. You can even use 4 of them and calculate the average and (in theory) double the accuracy."