Go Down

Topic: HIH-4030 (Read 343 times) previous topic - next topic

Jun 10, 2013, 04:54 pm Last Edit: Jun 10, 2013, 07:47 pm by MNGooner76 Reason: 1
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


#1
Jun 10, 2013, 09:28 pm Last Edit: Jun 10, 2013, 09:36 pm by MNGooner76 Reason: 1
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


pylon

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

Code: [Select]
#include <HttpClient.h>
#include <Xively.h>
#include <HIH4030.h>

PaulS

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: [Select]
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.

AWOL

Another merged thread.

DO NOT CROSS-POST - IT WASTES TIME.
"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.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy