Code Monkey home page Code Monkey logo

grove_temper_humidity's Introduction

Grove Temper Humidity TH02 & TH06 Build Status


Grove - Temperature&Humidity Sensor (High-Accuracy & Mini)

This is a multifunctional sensor that gives you temperature and relative humidity information at the same time. It utilizes a TH02 sensor that can meet measurement needs of general purposes. It provides reliable readings when environment humidity condition inbetween 0-80% RH, and temperature condition inbetween 0-70°C, covering needs in most home and daily applications that don't contain extreme conditions.

Usage

1.Git clone this resp to your arduino IDE's lib directory.
2.Open the demo "TH20_demo"

This is a multifunctional sensor that gives you temperature and relative humidity information at the same time. It utilizes a TH06 sensor that can meet measurement needs of general purposes. It provides reliable readings when environment humidity condition inbetween 0-80% RH, and temperature condition inbetween -10-85°C, covering needs in most home and daily applications that don't contain extreme conditions.

Usage

1.Git clone this resp to your arduino IDE's lib directory.
2.Open the demo "TH06_demo"

This demo is licensed under The MIT License. Check LINCESE for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

Analytics

grove_temper_humidity's People

Contributors

casywang avatar ikshitiz avatar killingjacky avatar lanselambor avatar lawliet004 avatar per1234 avatar pillar1989 avatar zzff-sys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grove_temper_humidity's Issues

Using two TH02 Sensors

Hi Guys,
I am pretty new to Arduino and I2C stuff in general.
Could someone give me a hint on how to use two TH02 sensors simultaneously?
I have one sitting on 0x40 and 0x68, but simply do not manage to address them indvidually.

Thanks a lot!!

TH02_dev::TH02_dev() issue with TwoWire()

I am having issues running the demo on the Intel Galileo board. The issue I am getting:
TH02_dev.cpp:37:20: error: no matching function for call to 'TwoWire::TwoWire()'

This is the line where error is coming from:
TH02_dev::TH02_dev()
{

}

Should TH02_dev() be empty?

'TH02' was not declared in this scope

Hi,

I have an issue with this Sketch:

Arduino: 1.8.19 (Mac OS X), Board: "Arduino Uno WiFi Rev2, ATMEGA328"

'TH02' was not declared in this scope....

I'm quite new to coding so I don't know what else you need....

here is the full sketch...

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
void setup()
{
Serial.begin(9600); // start serial for output
Serial.println("TH02_dev demo by seeed studio\n");
/* Power up,delay 150ms,until voltage is stable /
delay(150);
/
Reset HP20x_dev /
TH02.begin();
delay(100);
/
Determine TH02_dev is available or not */
Serial.println("TH02_dev is available.\n");
}
void loop() {

float temper = TH02.ReadTemperature();
Serial.println("Temperature: ");
Serial.print(temper);
Serial.println("C\r\n");
float humidity = TH02.ReadHumidity();
Serial.println("Humidity: ");
Serial.print(humidity);
Serial.println("%\r\n");
delay(1000);

}

Sensor data stuck in T = 24 and H=50

Hello,

first of all I'm new in coding and in IOT stuff, sorry if ii do'nt use the right synthaxe.

I have an issue with this Sketch:

Arduino : 2.1.0 ( windows 10), Board : " Arduino MKR WIFI 1010"

here is the full sketch ( i use the exemple TH02_demo)

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
#include "THSensor_base.h"

#define ShowSerial Serial
#ifdef AVR
#include <SoftwareSerial.h>
SoftwareSerial SSerial(2, 3); // RX, TX
#define COMSerial Serial
#define ShowSerial Serial
TH02_dev TH02;
#endif

#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define COMSerial Serial1
#define ShowSerial SerialUSB
TH02_dev TH02;
#endif

#ifdef ARDUINO_ARCH_STM32F4
#define COMSerial Serial
#define ShowSerial SerialUSB
TH02_dev TH02;
#endif

void setup() {
ShowSerial.begin(9600); // start serial for output

ShowSerial.println("****TH02_dev demo by seeed studio****\n");
/* Power up,delay 150ms,until voltage is stable */
delay(150);
/* Reset HP20x_dev */
TH02.begin();
delay(100);

/* Determine TH02_dev is available or not */
ShowSerial.println("TH02_dev is available.\n");

}

void loop() {
float temper = TH02.ReadTemperature();
ShowSerial.print("Temperature: ");
ShowSerial.print(temper);
ShowSerial.println("C\r\n");
//Serial.print("%\t");

float humidity = TH02.ReadHumidity();
ShowSerial.print("Humidity: ");
ShowSerial.print(humidity);
ShowSerial.println("%\r\n");
delay(1000);

}

my issue is : i always have the sames results, humidity = 24% ans Température = 50°C

and i still have there result if i unplug my sensor :/

I have try other code the results are the same.

For plug my sensor i have follow the documentation and connect

black --> GND
RED--> 5V
white--> SDA
YEllow --> SCL

Thank in advance,

SEnsor data stuck in T = 24 and H=50

Hello,

first of all I'm new in coding and in IOT stuff, sorry if ii do'nt use the right synthaxe.

I have an issue with this Sketch:

Arduino : 2.1.0 ( windows 10), Board : " Arduino MKR WIFI 1010"

here is the full sketch ( i use the exemple TH02_demo)

#include <TH02_dev.h>
#include "Arduino.h"
#include "Wire.h"
#include "THSensor_base.h"

#define ShowSerial Serial
#ifdef __AVR__
    #include <SoftwareSerial.h>
    SoftwareSerial SSerial(2, 3); // RX, TX
    #define COMSerial Serial
    #define ShowSerial Serial
    TH02_dev TH02;
#endif

#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
    #define COMSerial Serial1
    #define ShowSerial SerialUSB
    TH02_dev TH02;
#endif

#ifdef ARDUINO_ARCH_STM32F4
    #define COMSerial Serial
    #define ShowSerial SerialUSB
    TH02_dev TH02;
#endif


void setup() {
    ShowSerial.begin(9600);        // start serial for output

    ShowSerial.println("****TH02_dev demo by seeed studio****\n");
    /* Power up,delay 150ms,until voltage is stable */
    delay(150);
    /* Reset HP20x_dev */
    TH02.begin();
    delay(100);

    /* Determine TH02_dev is available or not */
    ShowSerial.println("TH02_dev is available.\n");
}


void loop() {
    float temper = TH02.ReadTemperature();
    ShowSerial.print("Temperature: ");
    ShowSerial.print(temper);
    ShowSerial.println("C\r\n");
    //Serial.print("%\t");

    float humidity = TH02.ReadHumidity();
    ShowSerial.print("Humidity: ");
    ShowSerial.print(humidity);
    ShowSerial.println("%\r\n");
    delay(1000);
}

my issue is : i always have the sames results, humidity = 24% ans Température = 50°C

and i still have there result if i unplug my sensor :/

I have try other code the results are the same.

For plug my sensor i have follow the documentation and connect

black --> GND
RED--> 5V
white--> SDA
YEllow --> SCL

Thank in advance,

TH02 does not work on Intel Edison

Hello,

@jeferrb and I, we are trying to use the TH02 on Intel Edison, but in environments with A/C (< +22°C ~ +24°C) this code below does not work (program get stuck) after few minutes:

#include <Wire.h>
#include <TH02_dev.h>
#include "rgb_lcd.h"

rgb_lcd lcd;

int counter = 0;

void setup() {
	lcd.begin(16, 2);
}

void loop() {
	float temperature = TH02.ReadTemperature();
	lcd.clear();
	lcd.print("loop() [");
	lcd.print(++counter);
	lcd.print("]");
	lcd.setCursor(0, 1);
	lcd.print(" - Temp: ");
	lcd.print(temperature);
	lcd.print(" C");
}

There is sometime related with this issue below?
eclipse/upm#351

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.