Hardware Reference
In-Depth Information
AddingFeedComponents
Having one sensor feed to Xively is great, but what if you want to add more
sensors? Thankfully, adding additional data is quite easy! You add an analog
temperature sensor to your Arduino to complement the readings from your
light sensor. You could also add any other kind of sensor—even digital I 2 C
and SPI sensors.
Adding an Analog Temperature Sensor
Using the TMP36 temperature sensor that you used in Chapter 3, add a simple
analog temperature sensor to the circuit, as in Figure 14-10. This sensor will be
read by analog input 3.
Figure 14-10: Adding a TMP36 temperature sensor
Adding Additional Sensor Readings to the Datastream
You now need to insert the data from this sensor into the stream of data that is sent
to the Xively server. Essentially, you just need to add an additional datastream to
Search WWH ::




Custom Search