hello
I’m trying to read data from dht22 modified (use libmraa not wiring) software from http://www.uugear.com/portfolio/read-dht1122-temperature-humidity-sensor-from-raspberry-pi/ but i found that is very hard to read correct data.
After some resarch I found that reading data from GPIO on rock pi via libmraa lasts 13+ us - on raspberry pi it’s only 2-3us. Besides very often data is returned after 100us+ which cause data to be bad.
example:
min 12 max 77 d[0]=1 d[1]=247 d[2]=0 d[3]=236 d[4]=228 Humidity = 50.3 % Temperature = 23.6 *C (74.5 *F)
min 13 max 164 d[0]=1 d[1]=230 d[2]=1 d[3]=217 d[4]=96 Data not good, skip
min 12 max 166 d[0]=1 d[1]=243 d[2]=0 d[3]=217 d[4]=96 Data not good, skip
min 12 max 156 d[0]=7 d[1]=204 d[2]=3 d[3]=175 d[4]=29 Data not good, skip
min 12 max 179 d[0]=1 d[1]=244 d[2]=3 d[3]=179 d[4]=33 Data not good, skip
min 12 max 71 d[0]=1 d[1]=243 d[2]=0 d[3]=236 d[4]=96 Data not good, skip
min 12 max 177 d[0]=1 d[1]=230 d[2]=1 d[3]=217 d[4]=96 Data not good, skip
min 14 max 138 d[0]=3 d[1]=230 d[2]=3 d[3]=175 d[4]=31 Data not good, skip
min 14 max 71 d[0]=1 d[1]=245 d[2]=0 d[3]=236 d[4]=226 Humidity = 50.1 % Temperature = 23.6 *C (74.5 *F)
min 14 max 191 d[0]=2 d[1]=164 d[2]=3 d[3]=179 d[4]=22 Data not good, skip
min 14 max 188 d[0]=3 d[1]=236 d[2]=1 d[3]=179 d[4]=35 Data not good, skip
min - minimum read in us, max- maximum read in us in each series.
Very often first read (after switch from write to read) is after 100-200us
Is there any way to speedup reading or other library to use? or maybe onther way to use dht22?
regards