Arduino Wifi Temperature Logger

by yanc in Circuits > Arduino

28797 Views, 84 Favorites, 0 Comments

Arduino Wifi Temperature Logger

IMG_2992.JPG

This is a simple demo using the ESP8266 and Cactus Micro (a arduino compatible board) to update a remote server (https://data.sparkfun.com/) using a digital temperature sensor.

Materials

IMG_2990.JPG
IMG_2991.JPG

The Cactus Micro is an arduino compatible dev board, it integrated a WIFI chip ESP8266.

Connecting the Wires Together

tmp_sch.png
cactus_pinout.jpg
FBF8ATCI0RYS6HJ.MEDIUM.jpg
  • Connect esp8266 module is easy. Just plug in to the pins.
  • DS18B20 - DQ(2) -> Cactus pin 14, DQ(2) -> 4.7KR -> VCC(3.3V)

Arduino Setup and Sketch

The sketch code: https://github.com/AprilBrother/cactus-micro/blob/...

For Cactus Micro Rev2, the default firmware for esp8266 is espduino. Please use this sketch instead. https://github.com/AprilBrother/cactus-micro-r2/tree/master/libraries/CactusMicro/examples/temperatureLogger

SparkFun Setup

屏幕快照 2015-01-29 上午10.19.08.png

We create a data stream at SparkFun, follow this link to do this. https://data.sparkfun.com/streams/make

Once you've created your stream, keep the window open so you have easy access to your public and private keys handy - you'll need those to replace the KEY in the Arduino sketch.

Now you are ready to start sending data.