Pages: 1 [2]   Go Down
Author Topic: Sending Float values to Pachube from Arduino  (Read 3361 times)
0 Members and 1 Guest are viewing this topic.
Grand Blanc, MI, USA
Offline Offline
Faraday Member
Karma: 95
Posts: 4092
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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 smiley-grin

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

Offline Offline
Full Member
Karma: 1
Posts: 185
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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];


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

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


« Last Edit: January 10, 2013, 03:16:33 pm by olof_n » Logged

Topsham, Vermont USA
Online Online
Edison Member
Karma: 33
Posts: 1927
... in The Woods In Vermont
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, I have a DHT11 Temperature-Humidity sensor (@Rob's Library) and data going to the web here:

The code for this (And an earlier dead-data test version) are now hosted here:

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  - Check great prices, devices and Arduino-related boards at
HOW-TO: http://ArduinoInfo.Info

Offline Offline
God Member
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice project Terry.
I have a similar one with added rainfall and wind. You can see my feed here  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

Pages: 1 [2]   Go Up
Jump to: