Hi,
We are getting a new batch of GrovePi’s with updated Firmware but cannot be sure if you have the one with the new firmware or the old one. Please do try updating the firmware once.
Hi there, My setup (DHT Pro on D4) has the same symptoms. I just received the Grove Pi from Dexter’s fulfillment from Amazon (http://www.amazon.com/dp/B00I3VN3RA/ref=pe_385040_30332200_TE_item). Could it be that you guys still have Grove Pi’s with old firmware at the Amazon fulfillment center?
Dear Karan,
I have plugged my “Temperature&Humidity Sensor (High Accuracy and mini) v1.0” on D4 (but I have tried D8-D7-D3-D2-A0). The output I receive is always the same:
temperature nan humidity 0.0
I have tried different values for the dht second parameter.
I have tested other sensors (light sensor,luminance)using the analogic ports (A0-A1-A2) they work (using grovepi.analogRead(0), etc)
[temp,humidity] = grovepi.dht(sensor,0)
print "0:temperature ",temp, "humidity ",humidity
time.sleep(1)
if math.isnan(temp) or math.isnan(humidity):
[temp,humidity] = grovepi.dht(sensor,1)
print "1:temperature ",temp, "humidity ",humidity
time.sleep(1)
if math.isnan(temp) or math.isnan(humidity):
[temp,humidity] = grovepi.dht(sensor,2)
print "2:temperature ",temp, "humidity ",humidity
time.sleep(1)
if math.isnan(temp) or math.isnan(humidity):
[temp,humidity] = grovepi.dht(sensor,3)
print "3:temperature ",temp, "humidity ",humidity
time.sleep(1)
(note this program has been run consecutively several times)
Thanks for any help.
The sensor that you are trying to use can be connected to the I2C port but there is no code available to read/write the sensor. You might have to port the arduino library to work with the python code.
Hey,
The reading might be wrong because the function takes an argument to select what type of sensor you are using. Can you add a link to the sensor that you are using.
Yeah it work like charm. I’m using the GrovePi+ with a DHT11 (blue one).
i have change [temp,hum] = dht(dht_sensor_port,1)
to
[temp,hum] = dht(dht_sensor_port,0) # for DHT11