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

@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 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.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Sweden
Offline Offline
Full Member
***
Karma: 1
Posts: 179
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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



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

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 32
Posts: 1867
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Boston
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 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
Logged

Pages: 1 [2]   Go Up
Jump to: