Closed RobTillaart closed 1 year ago
Does the CO2 match the testcode you got from aosong?
17:10:00.136 -> CO2:1894PPM 17:10:02.221 -> CO2:1897PPM 17:10:04.308 -> CO2:1901PPM 17:10:06.374 -> CO2:1904PPM 17:10:08.486 -> CO2:1907PPM 17:10:10.561 -> CO2:1910PPM
What happens if you breath towards the sensor? Does it peak? And slowly falls back?
17:11:22.785 -> 1805 12048 17:11:24.868 -> 1801 12048 17:11:26.982 -> 1798 12045 17:11:29.058 -> 1795 12047 17:11:31.168 -> 1792 12051 17:11:33.262 -> 1789 12053 17:11:35.335 -> 1786 12050 17:11:37.430 -> 1783 12054 17:11:39.537 -> 1780 12054 17:11:41.616 -> 1777 12056 17:11:43.729 -> 1774 12059 17:11:45.786 -> 1771 12058 17:11:47.913 -> 1769 12056 17:11:49.992 -> 1767 12054 17:11:52.101 -> 1763 12056 17:11:54.172 -> 1761 12057 17:11:56.251 -> 1759 12063 17:11:58.366 -> 1757 12059 17:12:00.451 -> 1756 12061 17:12:02.546 -> 1755 12061 17:12:04.698 -> 1754 12063 17:12:13.129 -> CO2:1751PPM 17:12:15.218 -> CO2:1750PPM 17:12:17.286 -> CO2:1749PPM 17:12:19.382 -> CO2:1749PPM 17:12:21.479 -> CO2:1748PPM 17:12:23.561 -> CO2:1747PPM 17:12:25.619 -> CO2:1747PPM 17:12:27.716 -> CO2:1747PPM 17:12:29.795 -> CO2:1746PPM 17:12:31.879 -> CO2:1746PPM 17:12:33.968 -> CO2:1746PPM 17:12:36.063 -> CO2:1745PPM 17:12:38.139 -> CO2:1745PPM 17:12:40.234 -> CO2:1745PPM 17:12:42.375 -> CO2:1745PPM 17:12:44.378 -> CO2:1744PPM
First few from this code last few from ASAIR
Ok that confirms the Concentration CO2 is working.
What is the current temperature in the room?
Ok that confirms the Concentration CO2 is working.
What is the current temperature in the room?
~27 C
So we have a bit pattern value ~12000 that should represent 27. Assuming it is the outside temperature and that the raw bit pattern has scale Celsius.
Dividing by 512 gives a temp in the right order of magnitude.
Dividing 12000 by 27 gives a factor 444 which is a non expected number (powers of two are).
It could be that the bit pattern 12000 also include status bits so not all bits are temperature. The datasheet does not tell (or I missed it).
As I don't have appropriate documentation the temperature mapping will remain unsolved. If you can provide a table with 10 or more raw measurements at (substantial) different real temperatures (e.g. measured with a DS18B20) the mapping from raw to real can possibly resolved. The derived formula / mapping should be confirmed with at least two other ACD10 sensors.
In short getTemperature() will return raw temperature and we cannot convert it to Celsius (or F or K)
As there are no questions anymore I close this issue.
remarks can be made here