I've decided to start creating micro projects to help keep the Arduino learning and playing from coming to a stand still. The project from three weeks ago was to get a temperature sensor reading the temperature in my basement, and then making the value available online. Using the one wire DS18B20 temperature sensor, I was able to easily read the temperature. I purchased an Ethernet shield for the Arduino a while back and was finally able to make use of it for this project.
Here is the code that is running on the Arduino: https://github.com/jimgeisler/TemperatureServer

The picture shows two DS18B20's hooked up in parasitic mode, although the code is only ever reading and saving the last value in the chain of sensors.
I then built a PhoneGap app for my Android phone that does a REST call to the Arduino to pull the value. Here is a screenshot of the very simple interface:

No comments:
Post a Comment