Pages: [1]   Go Down
Author Topic: HIH-4030  (Read 281 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Sorry if I'm asking stupid questions, but I don't understand. I could use some help.

I'm doing a project where I am reporting the relative humidity and then sending that value to Xively data logging website. https://xively.com. I'm able to successfully connect to the website and send it data. However the data that I'm sending to the site is the raw data from the sensor. A raw value may look like anywhere from 375 to 650. I want to send a value like 47% relative humidity. In the code its calculating the voltage and relative humidity and displaying in the serial monitor, it's just not being sent to the website, which is what I want. How do I send to Xively the relative humidty value?

The serial monitor displays the following text.

Starting single datastream upload to Xively...
Read sensor value 635.00

Uncalibrated: Sensor Voltage = 2.59V Relative Humidity = 52.73%
Calibrated: Uploading to Xivelyxivelyclient.put returned200


Thanks,

Chris


* Humidity_ver1_3.ino (2.4 KB - downloaded 5 times.)
« Last Edit: June 10, 2013, 12:47:31 pm by MNGooner76 » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Sorry if I'm asking stupid questions, but I don't understand. I could use some help.

I'm doing a project where I am reporting the relative humidity and then sending that value to Xively data logging website. https://xively.com. I'm able to successfully connect to the website and send it data. However the data that I'm sending to the site is the raw data from the sensor. A raw value may look like anywhere from 375 to 650. I want to send a value like 47% relative humidity. In the code its calculating the voltage and relative humidity and displaying in the serial monitor, it's just not being sent to the website, which is what I want. How do I send to Xively the relative humidty value?
The serial monitor displays the following text.

Starting single datastream upload to Xively...
Read sensor value 635.00

Uncalibrated: Sensor Voltage = 2.59V Relative Humidity = 52.73%
Calibrated: Uploading to Xivelyxivelyclient.put returned200


Thanks,

Chris


* Humidity_ver1_3.ino (2.4 KB - downloaded 4 times.)
« Last Edit: June 10, 2013, 02:36:19 pm by MNGooner76 » Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have to provide links to the non-standard libraries you used:

Code:
#include <HttpClient.h>
#include <Xively.h>
#include <HIH4030.h>
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 615
Posts: 49411
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
In the code its calculating the voltage and relative humidity and displaying in the serial monitor
Do you recognize the code that is doing this?

Perhaps this bit:
Code:
void printSensorData(HIH4030 hygrometer) {
  Serial.print("Sensor Voltage = ");
  Serial.print(hygrometer.vout());
  Serial.print("V  Relative Humidity = ");
  Serial.print(hygrometer.getSensorRH());
  Serial.println("%");
}

Store the values somewhere, and print the stored values. Then, you can use those same values when sending the data to the server.

Quote
How do I send to Xively the relative humidty value?
"How do I use a library that no one has heard of to do what I want?"

Perhaps you start with posting a link to the library. Just a thought.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26343
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Another merged thread.

DO NOT CROSS-POST - IT WASTES TIME.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: