Arduino MKR Connector Carrier (Grove Compatible) + (MKR1000/MKR1010) with Grove Temp & Humid (DHT11) - Compatible..?

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
cgnetics
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Mon Oct 15, 2018 9:56 am

Arduino MKR Connector Carrier (Grove Compatible) + (MKR1000/MKR1010) with Grove Temp & Humid (DHT11) - Compatible..?

Post by cgnetics » Mon Oct 15, 2018 11:51 am

hello everyone,

a pleasant day to you!

i bought the following:
• 1 Seeed Grove temperature & Humidity (DHT11) sensor
• 2 Arduino MKR Connector Carrier (Grove Compatible)

to have a prototype for MKR1000 and MKR1010

when i put it all together
1. MKR-Connector-Carrier + MKR1000 + Grove DHT11
2. MKR-Connector-Carrier + MKR1010 + Grove DHT11

• installed Library on my IDE: Grove Temperature And Humidity Sensor by Seeed Studio Version 1.0.0
• Get the sample sketch DHTtester and modify DHTTYPE to DHT11

Code: Select all

// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain

#include "DHT.h"
#define DHTPIN A0     // what pin we're connected to

#define DHTTYPE DHT11   // DHT 11 
//#define DHTTYPE DHT22   // DHT 22  (AM2302)
//#define DHTTYPE DHT21   // DHT 21 (AM2301)

DHT dht(DHTPIN, DHTTYPE);
• Uploaded sample sketch (DHTtester) to MKR board


The result are below:

1. by the way, i tested Grove-DHT11 on UNO with Seeed Base-Shield and it works excellent!
Humidity: 47.00 % Temperature: 26.00 *C
Humidity: 47.00 % Temperature: 26.00 *C
Humidity: 47.00 % Temperature: 26.00 *C
Humidity: 47.00 % Temperature: 27.00 *C
2. however, on MKR1000
Read fail Failed too read from DHT
Humidity: 0.00 % Temperature: 0.00 *C
Read fail Failed too read from DHT
Humidity: 0.00 % Temperature: 0.00 *C
3. and on MKR1010
Read fail Failed too read from DHT
Humidity: 0.00 % Temperature: 0.00 *C
Read fail Failed too read from DHT
Humidity: 0.00 % Temperature: 0.00 *C

seems it satisfy both conditions (detecting NaN and with value afterwards during loop) but zero value

Code: Select all

// check if returns are valid, if they are NaN (not a number) then something went wrong!
    if (isnan(t) || isnan(h)) 
    {
        Serial.println("Failed to read from DHT");
    } 
    else 
    {
        Serial.print("Humidity: "); 
        Serial.print(h);
        Serial.print(" %\t");
        Serial.print("Temperature: "); 
        Serial.print(t);
        Serial.println(" *C");
    }

please kindly help me with my project,
i can't find any documentation regarding these items,
i worry now if these parts are compatible with each other...

thank you so much..


Post Reply