Our products, Nanode, wireless, MCUs, electronics and more

A Spin on previous Nanode + Pachube Sketch

Posted: September 23rd, 2011 | Author: | Filed under: Uncategorized | 3 Comments »
Nanode

Nanode

Due to popular demand I made some mods to the sketch I previously posted, which was receiving data from the Wicked Node and posting it to Pachube using the Nanode‘s excellent internet connectedness. The version I’m posting with in this blog entry has no dependence on the WickedReceiver library and instead posts the Nanode’s native Analog sensor input readings to Pachube.

As a technical note on this one, Pachube rate limits the number of posts it will accept and we were exploiting the transmit interval of the Wicked Node in the previous sketch to throttle our posts to Pachube. In this sketch we have to be a bit more explicit in our throttling using the timestamp technique.

Make sure you get the latest and greatest EtherShield Arduino library from Andrew Lindsay’s (@thiseldo) GitHub repository. It contains some important fixes with respect to TCP, DHCP, and DNS that I ran into in my initial development. Check out the code and it should make pretty good sense, all the settings are up top just like before. Enjoy!

Cheers, Vic

Download: PachubeV3_WithoutNode

Pachube

Pachube

 Update: 12/14/2012 – The EtherShield library was retired earlier this year in favor of the EtherCard library. At some point I may get around to making another update to this post, but the EtherCard library already comes with a pretty easy to follow Cosm (the new name for Pachube) sketch. As always, feel free to post to our forum if you have questions.

 


3 Comments on “A Spin on previous Nanode + Pachube Sketch”

  1. 1 WickedDevice Blog » Blog Archive » Nanode + WickedNode + DHCP + DNS + Pachube! said at 1:49 am on September 23rd, 2011:

    [...] out this other blog post for a variation on the sketch that doesn’t use the Wicked Node, but instead posts ADC inputs [...]

  2. 2 Rafael Torrales said at 8:11 pm on October 15th, 2011:

    thanks man, after days lookin for code like this, I founf this one who works, amazing job.

  3. 3 Nanode and Pachube for the rest of us. | CalmDownPony said at 11:49 pm on October 15th, 2011:

    [...] So this code is the Sh1t, this: Victor Aprea, posted a working example about how to send Nanode analog’s sensors data to Pachube, here is the link [...]


Leave a Reply

  • *