Go Down

Topic: Sending Float values to Pachube from Arduino (Read 3901 times) previous topic - next topic

Jack Christensen

@Terry,

Yeah, I was going for efficiency, but certainly float is perfectly acceptable to beginners, and even beyond. I can be too much of a bit-biter sometimes :D

How is Cosm working for you as far as reliability? I have issues getting every datapoint to the website. I don't expect 100%, but probably at least 99.9% or better, and I haven't been able to achieve that.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

olof_n

#16
Jan 10, 2013, 08:57 pm Last Edit: Jan 10, 2013, 09:16 pm by olof_n Reason: 1
Hi!

I have some projects that send float values with Virtualwire.

In one project I use dtostrf and it has never crashed.
My weatherstation is sending all data in a binary format (byte array).

This is some parts of my code:

struct WeatherData {
 byte year;
 byte month;
 byte day;
 byte hour;
 byte minute;
 byte windspeed;
 byte winddirection;
 unsigned int  pressure;
 unsigned int humidity;
 float rain;
 float temperature;
};
WeatherData WeatherDataArray[144];

memcpy(msg,&WeatherDataArray[bSendCounter],iLen);

vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx();

dtostrf is easier to use and ok for short messages..

/Olof




terryking228

OK, I have a DHT11 Temperature-Humidity sensor (@Rob's Library) and data going to the web here:
https://cosm.com/feeds/97078

The code for this (And an earlier dead-data test version) are now hosted here:
http://arduino-info.wikispaces.com/Cosm-Arduino

It was a few hours and a few of the usual weird error gremlins to work through, but it works.  I plan to update that page with much more how-to and explanation, and work into Control from the web etc. over time.

Any comments, critique, suggestions welcome!  Thanks to everyone for helping...
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Pauly

Nice project Terry.
I have a similar one with added rainfall and wind. You can see my feed here https://cosm.com/feeds/58529.  I also recently got an Air Space Egg which feeds data to COSM as well.   This has NO2 and CO sensors as well as temp & humidity. See more about them at http://www.kickstarter.com/projects/edborden/air-quality-egg

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