Tutorial.PachubeClient History

Hide minor edits - Show changes to output

November 08, 2013, at 04:25 PM by Scott Fitzgerald -
Changed lines 1-52 from:
''Examples > Ethernet Library''

!!!Pachube Client
This example shows you how to answer a HTTP request using an Ethernet shield. Specifically, it connects to [[(http://www.)pachube.com]], a free datalogging site. The example requires that you set up a pachube.com account, as well as a pachube feed (for more information on setting up an input feed, please [[http://community.pachube.com/using_the_website#inputs | click here]]). Your Ethernet shield will then connect to that feed and upload sensor data every 10 seconds.

(:div class=BOM :)
!!!Hardware Required
* Arduino Ethernet Shield or Arduino Ethernet
* Shield-compatible Arduino board
* One analog sensor to attached to the Ethernet Shield

'''Software Required'''

*[[(http://www.)pachube.com account]]
* [[http://community.pachube.com/using_the_website#inputs | pachube.com feed ]] that accepts two data items
(:divend:)

!!!Circuit
(:div class=circuit :)

The Ethernet shield allows you to connect a WizNet Ethernet controller to the Arduino via the SPI bus. It uses pins 10, 11, 12, and 13 for the SPI connection to the WizNet. Later models of the Ethernet shield also have an SD Card on board. Digital pin 4 is used to control the slave select pin on the SD card.

The shield should be connected to a network with an ethernet cable. You will need to change the network settings in the program to correspond to your network.

%height=300px%[[Attach:PachubeClient_bb.png | Attach:PachubeClient_bb.png]]

[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

'''''In the above image, your Arduino would be stacked below the Ethernet shield. You could also use an Arduino Ethernet board.'''''

(:divend:)


!!!Schematic
(:div class=circuit :)
%height=300px%[[Attach:PachubeClient_schem.png | Attach:PachubeClient_schem.png]]
(:divend:)

'''''Pictured: One CDS photocell with 10k ohm pull down resistor on analog pin 0.'''''


!!!Code

(:div class=code :)
(:source https://raw.github.com/arduino/Arduino/master/libraries/Ethernet/examples/XivelyClient/XivelyClient.ino lang=arduino tabwidth=4:)
(:divend:)


!!!See Also:
* [[http://www.tigoe.net/pcomp/code/category/arduinowiring/873|Example project]] using Pachube and the Ethernet shield (the code above is more recent, however)
(:include EthernetSeeAlsoIncludes :)
to:
(:redirect XivelyClient:)
November 08, 2013, at 03:55 PM by Scott Fitzgerald -
Changed line 45 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/PachubeClient/PachubeClient.ino lang=arduino tabwidth=4:)
to:
(:source https://raw.github.com/arduino/Arduino/master/libraries/Ethernet/examples/XivelyClient/XivelyClient.ino lang=arduino tabwidth=4:)
September 08, 2012, at 09:39 PM by Scott Fitzgerald -
Deleted lines 0-1:
(:redirect CosmClient:)
May 14, 2012, at 10:21 PM by Tom Igoe -
Added lines 1-2:
(:redirect CosmClient:)
February 27, 2012, at 06:14 PM by Tom Igoe -
Changed lines 39-41 from:
'''''Pictured: One CDS photocell with 10k ohm pull down resistors on analog pins 0.'''''

to:
'''''Pictured: One CDS photocell with 10k ohm pull down resistor on analog pin 0.'''''

February 27, 2012, at 06:12 PM by Tom Igoe -
Changed lines 39-41 from:
'''''Pictured: Two CDS photocells with 10k ohm pull down resistors on analog pins 0 and 1.'''''

to:
'''''Pictured: One CDS photocell with 10k ohm pull down resistors on analog pins 0.'''''

February 27, 2012, at 06:09 PM by Tom Igoe -
Changed line 36 from:
%height=300px%[[Attach:PachubeClient_sch.png | Attach:PachubeClient_sch.png]]
to:
%height=300px%[[Attach:PachubeClient_schem.png | Attach:PachubeClient_schem.png]]
February 27, 2012, at 06:07 PM by Tom Igoe -
Changed lines 25-26 from:
%height=300px%[[Attach:PachubeString_bb.png | Attach:PachubeString_bb.png]]
to:
%height=300px%[[Attach:PachubeClient_bb.png | Attach:PachubeClient_bb.png]]
February 27, 2012, at 05:41 PM by Tom Igoe -
Changed line 8 from:
* Arduino Ethernet Shield
to:
* Arduino Ethernet Shield or Arduino Ethernet
Changed lines 10-11 from:
* Two analog sensors to attach to the Ethernet Shield
to:
* One analog sensor to attached to the Ethernet Shield
Changed lines 25-26 from:
%height=300px%[[Attach:PachubeClient_bb.png | Attach:PachubeClient_bb.png]]
to:
%height=300px%[[Attach:PachubeString_bb.png | Attach:PachubeString_bb.png]]
Changed lines 29-30 from:
'''''In the above image, your Arduino would be stacked below the Ethernet shield.'''''
to:
'''''In the above image, your Arduino would be stacked below the Ethernet shield. You could also use an Arduino Ethernet board.'''''
Deleted line 52:
November 16, 2011, at 04:28 AM by Scott Fitzgerald -
Changed line 45 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/PachubeClient/PachubeClient.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/PachubeClient/PachubeClient.ino lang=arduino tabwidth=4:)
November 01, 2011, at 06:00 PM by Scott Fitzgerald -
Added lines 1-53:
''Examples > Ethernet Library''

!!!Pachube Client
This example shows you how to answer a HTTP request using an Ethernet shield. Specifically, it connects to [[(http://www.)pachube.com]], a free datalogging site. The example requires that you set up a pachube.com account, as well as a pachube feed (for more information on setting up an input feed, please [[http://community.pachube.com/using_the_website#inputs | click here]]). Your Ethernet shield will then connect to that feed and upload sensor data every 10 seconds.

(:div class=BOM :)
!!!Hardware Required
* Arduino Ethernet Shield
* Shield-compatible Arduino board
* Two analog sensors to attach to the Ethernet Shield

'''Software Required'''

*[[(http://www.)pachube.com account]]
* [[http://community.pachube.com/using_the_website#inputs | pachube.com feed ]] that accepts two data items
(:divend:)

!!!Circuit
(:div class=circuit :)

The Ethernet shield allows you to connect a WizNet Ethernet controller to the Arduino via the SPI bus. It uses pins 10, 11, 12, and 13 for the SPI connection to the WizNet. Later models of the Ethernet shield also have an SD Card on board. Digital pin 4 is used to control the slave select pin on the SD card.

The shield should be connected to a network with an ethernet cable. You will need to change the network settings in the program to correspond to your network.

%height=300px%[[Attach:PachubeClient_bb.png | Attach:PachubeClient_bb.png]]

[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

'''''In the above image, your Arduino would be stacked below the Ethernet shield.'''''

(:divend:)


!!!Schematic
(:div class=circuit :)
%height=300px%[[Attach:PachubeClient_sch.png | Attach:PachubeClient_sch.png]]
(:divend:)

'''''Pictured: Two CDS photocells with 10k ohm pull down resistors on analog pins 0 and 1.'''''


!!!Code

(:div class=code :)
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/PachubeClient/PachubeClient.pde lang=arduino tabwidth=4:)
(:divend:)


!!!See Also:
* [[http://www.tigoe.net/pcomp/code/category/arduinowiring/873|Example project]] using Pachube and the Ethernet shield (the code above is more recent, however)
(:include EthernetSeeAlsoIncludes :)

Share